Searched refs:nan_f16 (Results 1 – 4 of 4) sorted by relevance
/external/FP16/test/ |
D | alt-from-fp32-value.cc | 303 const uint16_t nan_f16 = fp16_alt_from_fp32_value(nan_value); in TEST() local 306 ASSERT_EQ(nan_f16 & UINT16_C(0x8000), 0) << in TEST() 309 "F16(F32) = 0x" << std::setw(4) << nan_f16; in TEST() 312 ASSERT_EQ(nan_f16 & UINT16_C(0x7C00), UINT16_C(0x7C00)) << in TEST() 315 "F16(F32) = 0x" << std::setw(4) << nan_f16; in TEST() 318 ASSERT_NE(nan_f16 & UINT16_C(0x03FF), 0) << in TEST() 321 "F16(F32) = 0x" << std::setw(4) << nan_f16; in TEST() 329 const uint16_t nan_f16 = fp16_alt_from_fp32_value(nan_value); in TEST() local 332 ASSERT_EQ(nan_f16 & UINT16_C(0x8000), UINT16_C(0x8000)) << in TEST() 335 "F16(F32) = 0x" << std::setw(4) << nan_f16; in TEST() [all …]
|
D | ieee-to-fp32-bits.cc | 235 const uint16_t nan_f16 = UINT16_C(0x7C00) | m; in TEST() local 236 const uint32_t nan_f32 = fp16_ieee_to_fp32_bits(nan_f16); in TEST() 241 "F16 = 0x" << std::setw(4) << nan_f16 << ", " << in TEST() 247 "F16 = 0x" << std::setw(4) << nan_f16 << ", " << in TEST() 253 "F16 = 0x" << std::setw(4) << nan_f16 << ", " << in TEST() 260 const uint16_t nan_f16 = UINT16_C(0xFC00) | m; in TEST() local 261 const uint32_t nan_f32 = fp16_ieee_to_fp32_bits(nan_f16); in TEST() 266 "F16 = 0x" << std::setw(4) << nan_f16 << ", " << in TEST() 272 "F16 = 0x" << std::setw(4) << nan_f16 << ", " << in TEST() 278 "F16 = 0x" << std::setw(4) << nan_f16 << ", " << in TEST()
|
D | ieee-from-fp32-value.cc | 303 const uint16_t nan_f16 = fp16_ieee_from_fp32_value(nan_value); in TEST() local 306 ASSERT_EQ(nan_f16 & UINT16_C(0x8000), 0) << in TEST() 309 "F16(F32) = 0x" << std::setw(4) << nan_f16; in TEST() 312 ASSERT_EQ(nan_f16 & UINT16_C(0x7C00), UINT16_C(0x7C00)) << in TEST() 315 "F16(F32) = 0x" << std::setw(4) << nan_f16; in TEST() 318 ASSERT_NE(nan_f16 & UINT16_C(0x03FF), 0) << in TEST() 321 "F16(F32) = 0x" << std::setw(4) << nan_f16; in TEST() 329 const uint16_t nan_f16 = fp16_ieee_from_fp32_value(nan_value); in TEST() local 332 ASSERT_EQ(nan_f16 & UINT16_C(0x8000), UINT16_C(0x8000)) << in TEST() 335 "F16(F32) = 0x" << std::setw(4) << nan_f16; in TEST() [all …]
|
D | ieee-to-fp32-value.cc | 316 const uint16_t nan_f16 = UINT16_C(0x7C00) | m; in TEST() local 317 const float nan_f32 = fp16_ieee_to_fp32_value(nan_f16); in TEST() 324 "F16 = 0x" << std::setw(4) << nan_f16 << ", " << in TEST() 330 "F16 = 0x" << std::setw(4) << nan_f16 << ", " << in TEST() 339 const uint16_t nan_f16 = UINT16_C(0xFC00) | m; in TEST() local 340 const float nan_f32 = fp16_ieee_to_fp32_value(nan_f16); in TEST() 347 "F16 = 0x" << std::setw(4) << nan_f16 << ", " << in TEST() 353 "F16 = 0x" << std::setw(4) << nan_f16 << ", " << in TEST()
|