/external/swiftshader/third_party/SPIRV-Tools/test/ |
D | hex_float_test.cpp | 254 EXPECT_THAT(GetParam(), Eq(res.getAsFloat())); in TEST_P() 263 EXPECT_THAT(GetParam(), Eq(res.getAsFloat())); in TEST_P() 370 EXPECT_THAT(FloatProxy<float>(1.f).getAsFloat(), Eq(1.0f)); in TEST() 371 EXPECT_THAT(FloatProxy<float>(32.f).getAsFloat(), Eq(32.0f)); in TEST() 372 EXPECT_THAT(FloatProxy<float>(-1.f).getAsFloat(), Eq(-1.0f)); in TEST() 373 EXPECT_THAT(FloatProxy<float>(0.f).getAsFloat(), Eq(0.0f)); in TEST() 374 EXPECT_THAT(FloatProxy<float>(-0.f).getAsFloat(), Eq(-0.0f)); in TEST() 375 EXPECT_THAT(FloatProxy<float>(1.2e32f).getAsFloat(), Eq(1.2e32f)); in TEST() 377 EXPECT_TRUE(std::isinf(FloatProxy<float>(uint32_t(0xFF800000)).getAsFloat())); in TEST() 378 EXPECT_TRUE(std::isinf(FloatProxy<float>(uint32_t(0x7F800000)).getAsFloat())); in TEST() [all …]
|
D | parse_number_test.cpp | 195 EXPECT_EQ(1e38f, f.value().getAsFloat()); in TEST() 197 EXPECT_EQ(-1e38f, f.value().getAsFloat()); in TEST() 240 EXPECT_EQ(1e38, f.value().getAsFloat()); in TEST() 242 EXPECT_EQ(-1e38, f.value().getAsFloat()); in TEST() 244 EXPECT_EQ(1e40, f.value().getAsFloat()); in TEST() 246 EXPECT_EQ(-1e40, f.value().getAsFloat()); in TEST() 261 EXPECT_EQ(uint16_t{0x8000}, f.value().getAsFloat().get_value()); in TEST() 263 EXPECT_EQ(uint16_t{0x3c00}, f.value().getAsFloat().get_value()); in TEST()
|
/external/deqp-deps/SPIRV-Tools/test/ |
D | hex_float_test.cpp | 254 EXPECT_THAT(GetParam(), Eq(res.getAsFloat())); in TEST_P() 263 EXPECT_THAT(GetParam(), Eq(res.getAsFloat())); in TEST_P() 370 EXPECT_THAT(FloatProxy<float>(1.f).getAsFloat(), Eq(1.0f)); in TEST() 371 EXPECT_THAT(FloatProxy<float>(32.f).getAsFloat(), Eq(32.0f)); in TEST() 372 EXPECT_THAT(FloatProxy<float>(-1.f).getAsFloat(), Eq(-1.0f)); in TEST() 373 EXPECT_THAT(FloatProxy<float>(0.f).getAsFloat(), Eq(0.0f)); in TEST() 374 EXPECT_THAT(FloatProxy<float>(-0.f).getAsFloat(), Eq(-0.0f)); in TEST() 375 EXPECT_THAT(FloatProxy<float>(1.2e32f).getAsFloat(), Eq(1.2e32f)); in TEST() 377 EXPECT_TRUE(std::isinf(FloatProxy<float>(uint32_t(0xFF800000)).getAsFloat())); in TEST() 378 EXPECT_TRUE(std::isinf(FloatProxy<float>(uint32_t(0x7F800000)).getAsFloat())); in TEST() [all …]
|
D | parse_number_test.cpp | 195 EXPECT_EQ(1e38f, f.value().getAsFloat()); in TEST() 197 EXPECT_EQ(-1e38f, f.value().getAsFloat()); in TEST() 240 EXPECT_EQ(1e38, f.value().getAsFloat()); in TEST() 242 EXPECT_EQ(-1e38, f.value().getAsFloat()); in TEST() 244 EXPECT_EQ(1e40, f.value().getAsFloat()); in TEST() 246 EXPECT_EQ(-1e40, f.value().getAsFloat()); in TEST() 261 EXPECT_EQ(uint16_t{0x8000}, f.value().getAsFloat().get_value()); in TEST() 263 EXPECT_EQ(uint16_t{0x3c00}, f.value().getAsFloat().get_value()); in TEST()
|
/external/deqp-deps/glslang/gtests/ |
D | HexFloat.cpp | 332 EXPECT_THAT(FloatProxy<float>(1.f).getAsFloat(), Eq(1.0f)); in TEST() 333 EXPECT_THAT(FloatProxy<float>(32.f).getAsFloat(), Eq(32.0f)); in TEST() 334 EXPECT_THAT(FloatProxy<float>(-1.f).getAsFloat(), Eq(-1.0f)); in TEST() 335 EXPECT_THAT(FloatProxy<float>(0.f).getAsFloat(), Eq(0.0f)); in TEST() 336 EXPECT_THAT(FloatProxy<float>(-0.f).getAsFloat(), Eq(-0.0f)); in TEST() 337 EXPECT_THAT(FloatProxy<float>(1.2e32f).getAsFloat(), Eq(1.2e32f)); in TEST() 339 EXPECT_TRUE(std::isinf(FloatProxy<float>(uint32_t(0xFF800000)).getAsFloat())); in TEST() 340 EXPECT_TRUE(std::isinf(FloatProxy<float>(uint32_t(0x7F800000)).getAsFloat())); in TEST() 341 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0xFFC00000)).getAsFloat())); in TEST() 342 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0xFF800100)).getAsFloat())); in TEST() [all …]
|
/external/deqp-deps/SPIRV-Tools/source/util/ |
D | hex_float.h | 82 static float getAsFloat(const uint_type& t) { return BitwiseCast<float>(t); } 102 static double getAsFloat(const uint_type& t) { 124 static Float16 getAsFloat(const uint_type& t) { return Float16(t); } 158 T getAsFloat() const { return FloatProxyTraits<T>::getAsFloat(data_); } 177 bool isNan() { return FloatProxyTraits<T>::isNan(getAsFloat()); } 179 bool isInfinity() { return FloatProxyTraits<T>::isInfinity(getAsFloat()); } 891 if (Float16::isInfinity(value.value().getAsFloat())) { 1124 auto float_val = value.getAsFloat();
|
D | parse_number.cpp | 159 emit(static_cast<uint32_t>(hVal.value().getAsFloat().get_value())); in ParseAndEncodeFloatingPointNumber()
|
/external/swiftshader/third_party/SPIRV-Tools/source/util/ |
D | hex_float.h | 82 static float getAsFloat(const uint_type& t) { return BitwiseCast<float>(t); } 102 static double getAsFloat(const uint_type& t) { 124 static Float16 getAsFloat(const uint_type& t) { return Float16(t); } 158 T getAsFloat() const { return FloatProxyTraits<T>::getAsFloat(data_); } 177 bool isNan() { return FloatProxyTraits<T>::isNan(getAsFloat()); } 179 bool isInfinity() { return FloatProxyTraits<T>::isInfinity(getAsFloat()); } 891 if (Float16::isInfinity(value.value().getAsFloat())) { 1124 auto float_val = value.getAsFloat();
|
D | parse_number.cpp | 159 emit(static_cast<uint32_t>(hVal.value().getAsFloat().get_value())); in ParseAndEncodeFloatingPointNumber()
|
/external/deqp-deps/glslang/SPIRV/ |
D | hex_float.h | 138 T getAsFloat() const { return BitwiseCast<T>(data_); } 144 bool isNan() { return FloatProxyTraits<T>::isNan(getAsFloat()); } 146 bool isInfinity() { return FloatProxyTraits<T>::isInfinity(getAsFloat()); } 821 if (Float16::isInfinity(value.value().getAsFloat())) { 1054 auto float_val = value.getAsFloat();
|
D | SpvBuilder.cpp | 946 unsigned value = f16Val.value().getAsFloat().get_value(); in makeFloat16Constant()
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | constants.h | 241 return a.getAsFloat(); in GetFloatValue() 253 return a.getAsFloat(); in GetDoubleValue()
|
D | folding_rules.cpp | 188 if (!IsValidResult(result.getAsFloat())) return 0; in Reciprocal() 192 if (!IsValidResult(result.getAsFloat())) return 0; in Reciprocal() 425 double dval = val.getAsFloat(); \ in PerformFloatingPointOperation() 430 float fval = val.getAsFloat(); \ in PerformFloatingPointOperation()
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | constants.h | 241 return a.getAsFloat(); in GetFloatValue() 253 return a.getAsFloat(); in GetDoubleValue()
|
D | folding_rules.cpp | 188 if (!IsValidResult(result.getAsFloat())) return 0; in Reciprocal() 192 if (!IsValidResult(result.getAsFloat())) return 0; in Reciprocal() 425 double dval = val.getAsFloat(); \ in PerformFloatingPointOperation() 430 float fval = val.getAsFloat(); \ in PerformFloatingPointOperation()
|
/external/swiftshader/src/OpenGL/compiler/ |
D | ConstantUnion.h | 104 float getAsFloat() const in getAsFloat() function
|
D | OutputASM.cpp | 2461 parameter.value[i] = constants[component + 0].getAsFloat(); in source() 2465 parameter.value[i] = constants[component + i].getAsFloat(); in source()
|