Home
last modified time | relevance | path

Searched refs:getAsFloat (Results 1 – 25 of 27) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/
Dhex_float_test.cpp254 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 …]
Dparse_number_test.cpp195 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()
/third_party/skia/third_party/externals/spirv-tools/test/
Dhex_float_test.cpp254 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 …]
Dparse_number_test.cpp195 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()
/third_party/spirv-tools/test/
Dhex_float_test.cpp254 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 …]
Dparse_number_test.cpp195 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()
/third_party/glslang/gtests/
DHexFloat.cpp332 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 …]
/third_party/flutter/skia/third_party/externals/spirv-tools/test/
Dhex_float_test.cpp334 EXPECT_THAT(FloatProxy<float>(1.f).getAsFloat(), Eq(1.0f)); in TEST()
335 EXPECT_THAT(FloatProxy<float>(32.f).getAsFloat(), Eq(32.0f)); in TEST()
336 EXPECT_THAT(FloatProxy<float>(-1.f).getAsFloat(), Eq(-1.0f)); in TEST()
337 EXPECT_THAT(FloatProxy<float>(0.f).getAsFloat(), Eq(0.0f)); in TEST()
338 EXPECT_THAT(FloatProxy<float>(-0.f).getAsFloat(), Eq(-0.0f)); in TEST()
339 EXPECT_THAT(FloatProxy<float>(1.2e32f).getAsFloat(), Eq(1.2e32f)); in TEST()
341 EXPECT_TRUE(std::isinf(FloatProxy<float>(uint32_t(0xFF800000)).getAsFloat())); in TEST()
342 EXPECT_TRUE(std::isinf(FloatProxy<float>(uint32_t(0x7F800000)).getAsFloat())); in TEST()
343 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0xFFC00000)).getAsFloat())); in TEST()
344 EXPECT_TRUE(std::isnan(FloatProxy<float>(uint32_t(0xFF800100)).getAsFloat())); in TEST()
[all …]
Dparse_number_test.cpp197 EXPECT_EQ(1e38f, f.value().getAsFloat()); in TEST()
199 EXPECT_EQ(-1e38f, f.value().getAsFloat()); in TEST()
242 EXPECT_EQ(1e38, f.value().getAsFloat()); in TEST()
244 EXPECT_EQ(-1e38, f.value().getAsFloat()); in TEST()
246 EXPECT_EQ(1e40, f.value().getAsFloat()); in TEST()
248 EXPECT_EQ(-1e40, f.value().getAsFloat()); in TEST()
263 EXPECT_EQ(uint16_t{0x8000}, f.value().getAsFloat().get_value()); in TEST()
265 EXPECT_EQ(uint16_t{0x3c00}, f.value().getAsFloat().get_value()); in TEST()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/
Dhex_float.h82 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())) {
1138 auto float_val = value.getAsFloat();
Dparse_number.cpp159 emit(static_cast<uint32_t>(hVal.value().getAsFloat().get_value())); in ParseAndEncodeFloatingPointNumber()
/third_party/spirv-tools/source/util/
Dhex_float.h82 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();
Dparse_number.cpp159 emit(static_cast<uint32_t>(hVal.value().getAsFloat().get_value())); in ParseAndEncodeFloatingPointNumber()
/third_party/skia/third_party/externals/spirv-tools/source/util/
Dhex_float.h82 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())) {
1138 auto float_val = value.getAsFloat();
Dparse_number.cpp159 emit(static_cast<uint32_t>(hVal.value().getAsFloat().get_value())); in ParseAndEncodeFloatingPointNumber()
/third_party/glslang/SPIRV/
Dhex_float.h138 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();
/third_party/flutter/skia/third_party/externals/spirv-tools/source/util/
Dhex_float.h125 T getAsFloat() const { return BitwiseCast<T>(data_); }
131 bool isNan() { return FloatProxyTraits<T>::isNan(getAsFloat()); }
133 bool isInfinity() { return FloatProxyTraits<T>::isInfinity(getAsFloat()); }
819 if (Float16::isInfinity(value.value().getAsFloat())) {
1052 auto float_val = value.getAsFloat();
Dparse_number.cpp157 emit(static_cast<uint32_t>(hVal.value().getAsFloat().get_value())); in ParseAndEncodeFloatingPointNumber()
/third_party/spirv-tools/source/opt/
Dconstants.h249 return a.getAsFloat(); in GetFloatValue()
261 return a.getAsFloat(); in GetDoubleValue()
Dfolding_rules.cpp228 if (!IsValidResult(result.getAsFloat())) return 0; in Reciprocal()
232 if (!IsValidResult(result.getAsFloat())) return 0; in Reciprocal()
465 double dval = val.getAsFloat(); \ in PerformFloatingPointOperation()
470 float fval = val.getAsFloat(); \ in PerformFloatingPointOperation()
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dconstants.h249 return a.getAsFloat(); in GetFloatValue()
261 return a.getAsFloat(); in GetDoubleValue()
Dfolding_rules.cpp282 if (!IsValidResult(result.getAsFloat())) return 0; in Reciprocal()
286 if (!IsValidResult(result.getAsFloat())) return 0; in Reciprocal()
519 double dval = val.getAsFloat(); \ in PerformFloatingPointOperation()
524 float fval = val.getAsFloat(); \ in PerformFloatingPointOperation()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dconstants.h249 return a.getAsFloat(); in GetFloatValue()
261 return a.getAsFloat(); in GetDoubleValue()
Dfolding_rules.cpp282 if (!IsValidResult(result.getAsFloat())) return 0; in Reciprocal()
286 if (!IsValidResult(result.getAsFloat())) return 0; in Reciprocal()
519 double dval = val.getAsFloat(); \ in PerformFloatingPointOperation()
524 float fval = val.getAsFloat(); \ in PerformFloatingPointOperation()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DConstantUnion.h104 float getAsFloat() const in getAsFloat() function

12