Home
last modified time | relevance | path

Searched refs:fp16_alt_from_fp32_value (Results 1 – 5 of 5) sorted by relevance

/external/FP16/test/
Dalt-from-fp32-value.cc42 EXPECT_EQ(min_po2_f16, fp16_alt_from_fp32_value(min_po2_value)) << in TEST()
45 "F16(F32) = 0x" << std::setw(4) << fp16_alt_from_fp32_value(min_po2_value) << ", " << in TEST()
50 EXPECT_EQ(eighths_f16, fp16_alt_from_fp32_value(eighths_value)) << in TEST()
53 "F16(F32) = 0x" << std::setw(4) << fp16_alt_from_fp32_value(eighths_value) << ", " << in TEST()
58 EXPECT_EQ(quarter_f16, fp16_alt_from_fp32_value(quarter_value)) << in TEST()
61 "F16(F32) = 0x" << std::setw(4) << fp16_alt_from_fp32_value(quarter_value) << ", " << in TEST()
66 EXPECT_EQ(half_f16, fp16_alt_from_fp32_value(half_value)) << in TEST()
69 "F16(F32) = 0x" << std::setw(4) << fp16_alt_from_fp32_value(half_value) << ", " << in TEST()
74 EXPECT_EQ(one_f16, fp16_alt_from_fp32_value(one_value)) << in TEST()
77 "F16(F32) = 0x" << std::setw(4) << fp16_alt_from_fp32_value(one_value) << ", " << in TEST()
[all …]
/external/FP16/bench/
Dalt-element.cc78 static void fp16_alt_from_fp32_value(benchmark::State& state) { in fp16_alt_from_fp32_value() function
81 const uint16_t fp16 = fp16_alt_from_fp32_value(fp32_from_bits(fp32)); in fp16_alt_from_fp32_value()
87 BENCHMARK(fp16_alt_from_fp32_value);
Dto-alt-array.cc23 static void fp16_alt_from_fp32_value(benchmark::State& state) { in fp16_alt_from_fp32_value() function
38 output[i] = fp16_alt_from_fp32_value(input[i]); in fp16_alt_from_fp32_value()
45 BENCHMARK(fp16_alt_from_fp32_value)->RangeMultiplier(2)->Range(1<<10, 64<<20);
Dfrom-alt-array.cc26 [&rng]{ return fp16_alt_from_fp32_value(rng()); }); in fp16_alt_to_fp32_bits()
51 [&rng]{ return fp16_alt_from_fp32_value(rng()); }); in fp16_alt_to_fp32_value()
77 [&rng]{ return fp16_alt_from_fp32_value(rng()); }); in fp16_alt_to_fp32_psimd()
107 [&rng]{ return fp16_alt_from_fp32_value(rng()); }); in fp16_alt_to_fp32x2_psimd()
/external/FP16/include/fp16/
Dfp16.h430 static inline uint16_t fp16_alt_from_fp32_value(float f) { in fp16_alt_from_fp32_value() function