Home
last modified time | relevance | path

Searched defs:fp16 (Results 1 – 25 of 81) sorted by relevance

1234

/aosp_15_r20/external/FP16/bench/
H A Dieee-element.cc46 uint16_t fp16 = UINT16_C(0x7C00); in fp16_ieee_to_fp32_bits() local
57 uint16_t fp16 = UINT16_C(0x7C00); in fp16_ieee_to_fp32_value() local
94 uint16_t fp16 = UINT16_C(0x7C00); in TH_halfbits2float() local
106 uint16_t fp16 = UINT16_C(0x7C00); in npy_halfbits_to_floatbits() local
117 uint16_t fp16 = UINT16_C(0x7C00); in Eigen_half_to_float() local
130 uint16_t fp16 = UINT16_C(0x7C00); in Float16Compressor_decompress() local
141 uint16_t fp16 = UINT16_C(0x7C00); in half_float_detail_half2float_table() local
154 uint16_t fp16 = UINT16_C(0x7C00); in half_float_detail_half2float_branch() local
172 const uint16_t fp16 = fp16_ieee_from_fp32_value(fp32_from_bits(fp32)); in fp16_ieee_from_fp32_value() local
184 const uint16_t fp16 = static_cast<uint16_t>( in fp16_ieee_from_fp32_hardware() local
[all …]
H A Dfrom-ieee-array.cc35 std::vector<uint16_t> fp16(state.range(0)); in fp16_ieee_to_fp32_bits() local
60 std::vector<uint16_t> fp16(state.range(0)); in fp16_ieee_to_fp32_value() local
86 std::vector<uint16_t> fp16(state.range(0)); in fp16_ieee_to_fp32_psimd() local
116 std::vector<uint16_t> fp16(state.range(0)); in fp16_ieee_to_fp32x2_psimd() local
147 std::vector<uint16_t> fp16(state.range(0)); in hardware_mm_cvtph_ps() local
174 std::vector<uint16_t> fp16(state.range(0)); in hardware_mm256_cvtph_ps() local
203 std::vector<uint16_t> fp16(state.range(0)); in hardware_vcvt_f32_f16() local
248 std::vector<uint16_t> fp16(state.range(0)); in TH_halfbits2float() local
273 std::vector<uint16_t> fp16(state.range(0)); in npy_halfbits_to_floatbits() local
298 std::vector<uint16_t> fp16(state.range(0)); in Eigen_half_to_float() local
[all …]
H A Dto-ieee-array.cc36 std::vector<uint16_t> fp16(state.range(0)); in fp16_ieee_from_fp32_value() local
61 std::vector<uint16_t> fp16(state.range(0)); in hardware_mm_cvtps_ph() local
87 std::vector<uint16_t> fp16(state.range(0)); in hardware_mm256_cvtps_ph() local
115 std::vector<uint16_t> fp16(state.range(0)); in hardware_vcvt_f16_f32() local
159 std::vector<uint16_t> fp16(state.range(0)); in TH_float2halfbits() local
183 std::vector<uint16_t> fp16(state.range(0)); in npy_floatbits_to_halfbits() local
207 std::vector<uint16_t> fp16(state.range(0)); in Eigen_float_to_half_rtne() local
231 std::vector<uint16_t> fp16(state.range(0)); in Float16Compressor_compress() local
255 std::vector<uint16_t> fp16(state.range(0)); in half_float_detail_float2half_table() local
281 std::vector<uint16_t> fp16(state.range(0)); in half_float_detail_float2half_branch() local
/aosp_15_r20/prebuilts/vndk/v30/arm/include/frameworks/native/libs/math/include/math/
Dhalf.h58 struct fp16 { struct
60 explicit constexpr fp16() noexcept : bits(0) { } in fp16() function
61 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() function
62 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
63 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
64 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
65 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
66 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
67 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v33/x86/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() function
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() function
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v34/x86_64/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() argument
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() function
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v31/arm/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() argument
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() argument
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v34/arm64/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() argument
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() argument
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v31/x86_64/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() argument
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() function
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v32/arm/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() function
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() function
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v30/x86_64/include/frameworks/native/libs/math/include/math/
Dhalf.h58 struct fp16 { struct
60 explicit constexpr fp16() noexcept : bits(0) { } in fp16() argument
61 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() function
62 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
63 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
64 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
65 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
66 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
67 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v34/x86/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() argument
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() argument
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v34/arm/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() argument
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() function
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v30/x86/include/frameworks/native/libs/math/include/math/
Dhalf.h58 struct fp16 { struct
60 explicit constexpr fp16() noexcept : bits(0) { } in fp16() argument
61 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() function
62 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
63 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
64 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
65 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
66 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
67 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v32/x86_64/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() argument
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() function
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v32/x86/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() argument
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() function
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v32/arm64/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() argument
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() argument
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v33/arm64/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() function
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() function
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v33/arm/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() function
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() argument
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v33/x86_64/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() argument
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() function
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v31/arm64/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() function
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() argument
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v31/x86/include/frameworks/native/libs/math/include/math/
Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() argument
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() function
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/prebuilts/vndk/v30/arm64/include/frameworks/native/libs/math/include/math/
Dhalf.h58 struct fp16 { struct
60 explicit constexpr fp16() noexcept : bits(0) { } in fp16() argument
61 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() function
62 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
63 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
64 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
65 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
66 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
67 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/frameworks/native/libs/math/include/math/
H A Dhalf.h59 struct fp16 { struct
61 explicit constexpr fp16() noexcept : bits(0) { } in fp16() function
62 explicit constexpr fp16(uint16_t b) noexcept : bits(b) { } in fp16() argument
63 void setS(unsigned int s) noexcept { bits = uint16_t((bits & 0x7FFF) | (s<<15)); } in setS()
64 void setE(unsigned int s) noexcept { bits = uint16_t((bits & 0xE3FF) | (s<<10)); } in setE()
65 void setM(unsigned int s) noexcept { bits = uint16_t((bits & 0xFC00) | (s<< 0)); } in setM()
66 constexpr unsigned int getS() const noexcept { return bits >> 15u; } in getS()
67 constexpr unsigned int getE() const noexcept { return (bits >> 10u) & 0x1Fu; } in getE()
68 constexpr unsigned int getM() const noexcept { return bits & 0x3FFu; } in getM()
/aosp_15_r20/external/FP16/test/
H A Dieee-to-fp32x2-psimd.cc16 const psimd_u16 fp16 = { in TEST() local
69 const psimd_u16 fp16 = { in TEST() local
188 const psimd_u16 fp16 = { in TEST() local
309 const psimd_u16 fp16 = { in TEST() local
370 const psimd_u16 fp16 = { in TEST() local
429 const psimd_u16 fp16 = { in TEST() local
487 const psimd_u16 fp16 = { in TEST() local

1234