/external/deqp-deps/SPIRV-Tools/source/util/ |
D | hex_float.h | 39 class Float16 { 41 Float16(uint16_t v) : val(v) {} in Float16() function 42 Float16() = default; 43 static bool isNan(const Float16& val) { in isNan() 47 static bool isInfinity(const Float16& val) { in isInfinity() 50 Float16(const Float16& other) { val = other.val; } in Float16() function 54 static Float16 max() { return Float16(0x7bff); } in max() 56 static Float16 lowest() { return Float16(0xfbff); } in lowest() 114 struct FloatProxyTraits<Float16> { 116 static bool isNan(Float16 f) { return Float16::isNan(f); } [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/util/ |
D | hex_float.h | 39 class Float16 { 41 Float16(uint16_t v) : val(v) {} in Float16() function 42 Float16() = default; 43 static bool isNan(const Float16& val) { in isNan() 47 static bool isInfinity(const Float16& val) { in isInfinity() 50 Float16(const Float16& other) { val = other.val; } in Float16() function 54 static Float16 max() { return Float16(0x7bff); } in max() 56 static Float16 lowest() { return Float16(0xfbff); } in lowest() 114 struct FloatProxyTraits<Float16> { 116 static bool isNan(Float16 f) { return Float16::isNan(f); } [all …]
|
/external/vixl/src/ |
D | utils-vixl.cc | 36 const Float16 kFP16DefaultNaN = RawbitsToFloat16(0x7e00); 39 const Float16 kFP16PositiveZero = RawbitsToFloat16(0x0); 40 const Float16 kFP16NegativeZero = RawbitsToFloat16(0x8000); 43 const Float16 kFP16PositiveInfinity = RawbitsToFloat16(0x7c00); 44 const Float16 kFP16NegativeInfinity = RawbitsToFloat16(0xfc00); 52 bool IsZero(Float16 value) { in IsZero() 58 uint16_t Float16ToRawbits(Float16 value) { return value.rawbits_; } in Float16ToRawbits() 74 Float16 RawbitsToFloat16(uint16_t bits) { in RawbitsToFloat16() 75 Float16 f; in RawbitsToFloat16() 168 int Float16Classify(Float16 value) { in Float16Classify() [all …]
|
D | utils-vixl.h | 233 class Float16 { 235 explicit Float16(double dvalue); 236 Float16() : rawbits_(0x0) {} in Float16() function 237 friend uint16_t Float16ToRawbits(Float16 value); 238 friend Float16 RawbitsToFloat16(uint16_t bits); 245 uint16_t Float16ToRawbits(Float16 value); 260 Float16 RawbitsToFloat16(uint16_t bits); 278 class SimFloat16 : public Float16 { 283 SimFloat16(double dvalue) : Float16(dvalue) {} // NOLINT(runtime/explicit) in SimFloat16() 284 SimFloat16(Float16 f) { // NOLINT(runtime/explicit) in SimFloat16() [all …]
|
/external/deqp-deps/glslang/SPIRV/ |
D | hex_float.h | 43 class Float16 { 45 Float16(uint16_t v) : val(v) {} in Float16() function 46 Float16() {} in Float16() function 47 static bool isNan(const Float16& val) { in isNan() 51 static bool isInfinity(const Float16& val) { in isInfinity() 54 Float16(const Float16& other) { val = other.val; } in Float16() function 58 static Float16 max() { return Float16(0x7bff); } in max() 60 static Float16 lowest() { return Float16(0xfbff); } in lowest() 100 struct FloatProxyTraits<Float16> { 102 static bool isNan(Float16 f) { return Float16::isNan(f); } [all …]
|
/external/deqp-deps/glslang/gtests/ |
D | HexFloat.cpp | 28 using spvutils::Float16; 545 return spvutils::HexFloat<spvutils::FloatProxy<spvutils::Float16>>(f) in unbiased_half_exponent() 739 using HF16 = spvutils::HexFloat<spvutils::FloatProxy<spvutils::Float16>>; in TEST_P() 808 using HF16 = spvutils::HexFloat<spvutils::FloatProxy<spvutils::Float16>>; in TEST_P() 867 using HF16 = spvutils::HexFloat<spvutils::FloatProxy<spvutils::Float16>>; in TEST_P() 927 using HF16 = spvutils::HexFloat<spvutils::FloatProxy<spvutils::Float16>>; in TEST_P() 972 using HF16 = spvutils::HexFloat<spvutils::FloatProxy<spvutils::Float16>>; in TEST() 1077 ::testing::TestWithParam<FloatParseCase<Float16>>; 1081 HexFloat<FloatProxy<Float16>> parsed_value(0); in TEST_P() 1095 ::testing::ValuesIn(std::vector<FloatParseCase<Float16>>{ [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/test/ |
D | hex_float_test.cpp | 583 return HexFloat<FloatProxy<Float16>>(f).getUnbiasedNormalizedExponent(); in unbiased_half_exponent() 784 using HF16 = HexFloat<FloatProxy<Float16>>; in TEST_P() 853 using HF16 = HexFloat<FloatProxy<Float16>>; in TEST_P() 911 using HF16 = HexFloat<FloatProxy<Float16>>; in TEST_P() 1027 using HF16 = HexFloat<FloatProxy<Float16>>; in TEST_P() 1071 using HF16 = HexFloat<FloatProxy<Float16>>; in TEST() 1175 ::testing::TestWithParam<FloatParseCase<Float16>>; 1179 HexFloat<FloatProxy<Float16>> parsed_value(0); in TEST_P() 1193 ::testing::ValuesIn(std::vector<FloatParseCase<Float16>>{ 1195 BadFloatParseCase<Float16>("abc", false, uint16_t{0}), [all …]
|
/external/deqp-deps/SPIRV-Tools/test/ |
D | hex_float_test.cpp | 583 return HexFloat<FloatProxy<Float16>>(f).getUnbiasedNormalizedExponent(); in unbiased_half_exponent() 784 using HF16 = HexFloat<FloatProxy<Float16>>; in TEST_P() 853 using HF16 = HexFloat<FloatProxy<Float16>>; in TEST_P() 911 using HF16 = HexFloat<FloatProxy<Float16>>; in TEST_P() 1027 using HF16 = HexFloat<FloatProxy<Float16>>; in TEST_P() 1071 using HF16 = HexFloat<FloatProxy<Float16>>; in TEST() 1175 ::testing::TestWithParam<FloatParseCase<Float16>>; 1179 HexFloat<FloatProxy<Float16>> parsed_value(0); in TEST_P() 1193 ::testing::ValuesIn(std::vector<FloatParseCase<Float16>>{ 1195 BadFloatParseCase<Float16>("abc", false, uint16_t{0}), [all …]
|
/external/vixl/test/aarch64/ |
D | test-utils-aarch64.h | 52 extern const Float16 kFP16SignallingNaN; 53 extern const Float16 kFP16QuietNaN; 113 inline Float16 hreg(unsigned code) const { in hreg() 212 bool EqualFP16(Float16 expected, const RegisterDump*, uint16_t result); 222 bool EqualFP16(Float16 expected,
|
D | test-utils-aarch64.cc | 47 const Float16 kFP16SignallingNaN = RawbitsToFloat16(0x7c01); 52 const Float16 kFP16QuietNaN = RawbitsToFloat16(0x7e01); 92 bool EqualFP16(Float16 expected, const RegisterDump*, Float16 result) { in EqualFP16() 194 bool EqualFP16(Float16 expected, in EqualFP16()
|
D | test-assembler-aarch64.cc | 10456 __ Fmov(h24, Float16(-5.0)); in TEST() 10457 __ Fmov(h25, Float16(2049.0)); in TEST() 10478 ASSERT_EQUAL_FP16(Float16(-5.0), h23); in TEST() 10530 __ Fmov(h8, Float16(1024.0)); in TEST() 10652 ASSERT_EQUAL_FP16(Float16(4.25), h0); in TEST() 10653 ASSERT_EQUAL_FP16(Float16(1.0), h1); in TEST() 10654 ASSERT_EQUAL_FP16(Float16(1.0), h2); in TEST() 10659 ASSERT_EQUAL_FP16(Float16(10.0), h7); in TEST() 10788 ASSERT_EQUAL_FP16(Float16(2.25), h0); in TEST() 10789 ASSERT_EQUAL_FP16(Float16(1.0), h1); in TEST() [all …]
|
/external/deqp/modules/gles3/functional/ |
D | es3fShaderPackingFunctionTests.cpp | 574 *inVal = tcu::Vec2(tcu::Float16(inVal->x()).asFloat(), tcu::Float16(inVal->y()).asFloat()); in iterate() 596 const deUint16 ref0 = (deUint16)tcu::Float16(inputs[valNdx].x()).bits(); in iterate() 597 const deUint16 ref1 = (deUint16)tcu::Float16(inputs[valNdx].y()).bits(); in iterate() 652 inputs.push_back((tcu::Float16( 0.0f).bits() << 16) | tcu::Float16( 1.0f).bits()); in iterate() 653 inputs.push_back((tcu::Float16( 1.0f).bits() << 16) | tcu::Float16( 0.0f).bits()); in iterate() 654 inputs.push_back((tcu::Float16(-1.0f).bits() << 16) | tcu::Float16( 0.5f).bits()); in iterate() 655 inputs.push_back((tcu::Float16( 0.5f).bits() << 16) | tcu::Float16(-0.5f).bits()); in iterate() 671 …const deUint16 value = tcu::Float16::construct(s, exp ? exp : 1 /* avoid denorm */, (deUint16)((1… in iterate() 701 const float ref0 = tcu::Float16(in0).asFloat(); in iterate() 702 const float ref1 = tcu::Float16(in1).asFloat(); in iterate()
|
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktShaderPackingFunctionTests.cpp | 646 *inVal = tcu::Vec2(tcu::Float16(inVal->x()).asFloat(), tcu::Float16(inVal->y()).asFloat()); in iterate() 667 const deUint16 ref0 = (deUint16)tcu::Float16(inputs[valNdx].x()).bits(); in iterate() 668 const deUint16 ref1 = (deUint16)tcu::Float16(inputs[valNdx].y()).bits(); in iterate() 755 inputs.push_back((tcu::Float16( 0.0f).bits() << 16) | tcu::Float16( 1.0f).bits()); in iterate() 756 inputs.push_back((tcu::Float16( 1.0f).bits() << 16) | tcu::Float16( 0.0f).bits()); in iterate() 757 inputs.push_back((tcu::Float16(-1.0f).bits() << 16) | tcu::Float16( 0.5f).bits()); in iterate() 758 inputs.push_back((tcu::Float16( 0.5f).bits() << 16) | tcu::Float16(-0.5f).bits()); in iterate() 760 inputs.push_back((tcu::Float16(composeHalfFloat(POSITIVE, 0u, 1u)).bits() << 16) in iterate() 761 | tcu::Float16(composeHalfFloat(NEGATIVE, 0u, 1u)).bits()); in iterate() 763 …inputs.push_back((tcu::Float16(composeHalfFloat(NEGATIVE, 0u, 1u << (mantBits - 1u))).bits() << 16) in iterate() [all …]
|
/external/deqp/modules/gles31/functional/ |
D | es31fShaderPackingFunctionTests.cpp | 578 *inVal = tcu::Vec2(tcu::Float16(inVal->x()).asFloat(), tcu::Float16(inVal->y()).asFloat()); in iterate() 600 const deUint16 ref0 = (deUint16)tcu::Float16(inputs[valNdx].x()).bits(); in iterate() 601 const deUint16 ref1 = (deUint16)tcu::Float16(inputs[valNdx].y()).bits(); in iterate() 656 inputs.push_back((tcu::Float16( 0.0f).bits() << 16) | tcu::Float16( 1.0f).bits()); in iterate() 657 inputs.push_back((tcu::Float16( 1.0f).bits() << 16) | tcu::Float16( 0.0f).bits()); in iterate() 658 inputs.push_back((tcu::Float16(-1.0f).bits() << 16) | tcu::Float16( 0.5f).bits()); in iterate() 659 inputs.push_back((tcu::Float16( 0.5f).bits() << 16) | tcu::Float16(-0.5f).bits()); in iterate() 675 …const deUint16 value = tcu::Float16::construct(s, exp ? exp : 1 /* avoid denorm */, (deUint16)((1… in iterate() 705 const float ref0 = tcu::Float16(in0).asFloat(); in iterate() 706 const float ref1 = tcu::Float16(in1).asFloat(); in iterate()
|
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmInstructionTests.cpp | 2924 inputFloats16[ndx] = tcu::Float16(inputFloats[ndx]).bits(); in createOpPhiVartypeTests() 2925 outputFloats16[ndx] = tcu::Float16(outputFloats[ndx]).bits(); in createOpPhiVartypeTests() 6085 struct fp16isNan { bool operator()(const tcu::Float16 in1, const tcu::Float16) { return in1.isNa… in operator ()() 6086 struct fp16isInf { bool operator()(const tcu::Float16 in1, const tcu::Float16) { return in1.isIn… in operator ()() 6087 struct fp16isEqual { bool operator()(const tcu::Float16 in1, const tcu::Float16 in2) { return in1… in operator ()() 6088 struct fp16isUnequal { bool operator()(const tcu::Float16 in1, const tcu::Float16 in2) { return in… in operator ()() 6089 struct fp16isLess { bool operator()(const tcu::Float16 in1, const tcu::Float16 in2) { return in1.… in operator ()() 6090 struct fp16isGreater { bool operator()(const tcu::Float16 in1, const tcu::Float16 in2) { return in… in operator ()() 6091 struct fp16isLessOrEqual { bool operator()(const tcu::Float16 in1, const tcu::Float16 in2) { return… in operator ()() 6092 struct fp16isGreaterOrEqual { bool operator()(const tcu::Float16 in1, const tcu::Float16 in2) { ret… in operator ()() [all …]
|
D | vktSpvAsmWorkgroupMemoryTests.cpp | 42 using tcu::Float16; 74 if (Float16(results[i]).isNaN() && Float16(expected[i]).isNaN()) in checkResultsFloat16()
|
/external/deqp/modules/gles3/accuracy/ |
D | es3aVaryingInterpolationTests.cpp | 132 tcu::Float16 fp16(val); in isValidFloat() 300 float minF16 = tcu::Float16((deUint16)((0u<<15) | (0x1cu<<10) | 0x0u)).asFloat(); in init() 301 float maxF16 = tcu::Float16((deUint16)((1u<<15) | (0x1cu<<10) | 0x0u)).asFloat(); in init()
|
/external/deqp/modules/gles2/accuracy/ |
D | es2aVaryingInterpolationTests.cpp | 130 tcu::Float16 fp16(val); in isValidFloat() 294 float minF16 = tcu::Float16((deUint16)((0u<<15) | (0x1cu<<10) | 0x0u)).asFloat(); in init() 295 float maxF16 = tcu::Float16((deUint16)((1u<<15) | (0x1cu<<10) | 0x0u)).asFloat(); in init()
|
/external/deqp/framework/referencerenderer/ |
D | rrVertexAttrib.cpp | 120 dst[0] = tcu::Float16(aligned[0]).asFloat(); in readHalf() 121 if (size >= 2) dst[1] = tcu::Float16(aligned[1]).asFloat(); in readHalf() 122 if (size >= 3) dst[2] = tcu::Float16(aligned[2]).asFloat(); in readHalf() 123 if (size >= 4) dst[3] = tcu::Float16(aligned[3]).asFloat(); in readHalf()
|
/external/vixl/src/aarch64/ |
D | instructions-aarch64.cc | 165 Float16 Instruction::Imm8ToFloat16(uint32_t imm8) { in Imm8ToFloat16() 192 Float16 Instruction::GetImmFP16() const { return Imm8ToFloat16(GetImmFP()); } in GetImmFP16() 216 Float16 Instruction::GetImmNEONFP16() const { in GetImmNEONFP16()
|
/external/swiftshader/third_party/SPIRV-Tools/source/ |
D | parsed_operand.cpp | 44 *out << spvtools::utils::FloatProxy<spvtools::utils::Float16>( in EmitNumericLiteral()
|
/external/deqp-deps/SPIRV-Tools/source/ |
D | parsed_operand.cpp | 44 *out << spvtools::utils::FloatProxy<spvtools::utils::Float16>( in EmitNumericLiteral()
|
/external/deqp/external/openglcts/modules/gl/ |
D | gl3cTextureSwizzleTests.cpp | 51 static const glw::GLhalf data_float16_one[] = { tcu::Float16(1.0).bits() }; 52 static const glw::GLhalf data_float16_zero[] = { tcu::Float16(0.0).bits() }; 102 static const glw::GLhalf src_data_r16f[] = { tcu::Float16(1.0).bits() }; 103 static const glw::GLhalf src_data_rg16f[] = { tcu::Float16(1.0).bits(), tcu::Float16(-1.0).bi… 104 static const glw::GLhalf src_data_rgb16f[] = { tcu::Float16(1.0).bits(), tcu::Float16(-1.0).bi… 105 tcu::Float16(2.0).bits() }; 106 static const glw::GLhalf src_data_rgba16f[] = { tcu::Float16(1.0).bits(), tcu::Float16(-1.0).bits(), 107 tcu::Float16(2.0).bits(), tcu::Float16(-2.0).bits() }; 117 static const glw::GLhalf exp_data_r11f_g11f_b10f[] = { tcu::Float16(0.5).bits(), tcu::Float16(0.75)… 118 tcu::Float16(0.25).bits() }; [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | algebraic_simplifier_proof_distributive_property.py | 40 FLOAT_TY = z3.Float16
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/CodeView/ |
D | TypeIndex.cpp | 53 {"__half*", SimpleTypeKind::Float16},
|