Home
last modified time | relevance | path

Searched refs:float16 (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/
H A Dexcept_value_utils.h128 template <> LIBC_INLINE float16 round_result_slightly_down(float16 value_rn) { in round_result_slightly_down()
130 tmp -= FPBits<float16>::min_normal().get_val(); in round_result_slightly_down()
131 return cast<float16>(tmp); in round_result_slightly_down()
134 template <> LIBC_INLINE float16 round_result_slightly_up(float16 value_rn) { in round_result_slightly_up()
136 tmp += FPBits<float16>::min_normal().get_val(); in round_result_slightly_up()
137 return cast<float16>(tmp); in round_result_slightly_up()
H A DBasicOperations.h50 template <> LIBC_INLINE float16 max(float16 x, float16 y) { in max()
54 template <> LIBC_INLINE float16 max(float16 x, float16 y) { in max()
55 FPBits<float16> x_bits(x); in max()
56 FPBits<float16> y_bits(y); in max()
90 template <> LIBC_INLINE float16 min(float16 x, float16 y) { in min()
94 template <> LIBC_INLINE float16 min(float16 x, float16 y) { in min()
95 FPBits<float16> x_bits(x); in min()
96 FPBits<float16> y_bits(y); in min()
H A Dcast.h37 || cpp::is_same_v<OutType, float16> || in cast()
38 cpp::is_same_v<InType, float16> in cast()
H A Ddyadic_float.h414 || cpp::is_same_v<T, float16> in as()
H A DFPBits.h806 else if constexpr (cpp::is_same_v<UnqualT, float16>)
/freebsd/contrib/llvm-project/libc/src/__support/math/
H A Dexpf16.h34 static constexpr float16 expf16(float16 x) { in expf16()
36 constexpr fputil::ExceptValues<float16, 2> EXPF16_EXCEPTS_LO = {{ in expf16()
44 constexpr fputil::ExceptValues<float16, 3> EXPF16_EXCEPTS_HI = {{ in expf16()
55 using FPBits = fputil::FPBits<float16>; in expf16()
120 return fputil::cast<float16>( in expf16()
132 return fputil::cast<float16>(exp_hi_mid * exp_lo); in expf16()
H A Dfrexpf16.h24 static constexpr float16 frexpf16(float16 x, int *exp) { in frexpf16()
H A Dldexpf16.h24 static constexpr float16 ldexpf16(float16 x, int exp) { in ldexpf16()
H A Dexpf16_utils.h50 static constexpr ExpRangeReduction exp_range_reduction(float16 x) { in exp_range_reduction()
/freebsd/contrib/llvm-project/clang/lib/Headers/
H A Dopencl-c.h3951 char16 __ovld __cnfn convert_char16_rte(float16);
3952 char16 __ovld __cnfn convert_char16_sat_rte(float16);
3953 char16 __ovld __cnfn convert_char16_rtz(float16);
3954 char16 __ovld __cnfn convert_char16_sat_rtz(float16);
3955 char16 __ovld __cnfn convert_char16_rtp(float16);
3956 char16 __ovld __cnfn convert_char16_sat_rtp(float16);
3957 char16 __ovld __cnfn convert_char16_rtn(float16);
3958 char16 __ovld __cnfn convert_char16_sat_rtn(float16);
3959 char16 __ovld __cnfn convert_char16(float16);
3960 char16 __ovld __cnfn convert_char16_sat(float16);
[all …]
H A Dopencl-c-base.h213 typedef float float16 __attribute__((ext_vector_type(16))); typedef
640 #define as_float16(x) __builtin_astype((x), float16)
/freebsd/contrib/llvm-project/libc/src/__support/
H A Dcomplex_type.h35 template <> struct make_complex<float16> {
61 using type = float16;
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_atomic.cpp1245 MIN_MAX_CRITICAL(float16, max, QUAD_LEGACY, <, 16r,
1247 MIN_MAX_CRITICAL(float16, min, QUAD_LEGACY, >, 16r,
1250 MIN_MAX_CRITICAL(float16, max_a16, Quad_a16_t, <, 16r,
1252 MIN_MAX_CRITICAL(float16, min_a16, Quad_a16_t, >, 16r,
1335 ATOMIC_CRITICAL(float16, add, QUAD_LEGACY, +, 16r,
1337 ATOMIC_CRITICAL(float16, sub, QUAD_LEGACY, -, 16r,
1339 ATOMIC_CRITICAL(float16, mul, QUAD_LEGACY, *, 16r,
1341 ATOMIC_CRITICAL(float16, div, QUAD_LEGACY, /, 16r,
1344 ATOMIC_CRITICAL(float16, add_a16, Quad_a16_t, +, 16r,
1346 ATOMIC_CRITICAL(float16, sub_a16, Quad_a16_t, -, 16r,
[all …]
/freebsd/contrib/llvm-project/libc/src/__support/macros/properties/
H A Dtypes.h55 using float16 = _Float16; variable
/freebsd/contrib/llvm-project/libc/src/__support/CPP/type_traits/
H A Dis_floating_point.h33 float16
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/
H A DLowLevelType.h85 static constexpr LLT float16() { in float16() function
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCombinerHelper.cpp468 ScalarDestTy != LLT::float16()) || in matchCombineFmulWithSelectToFldexp()
H A DAMDGPULegalizerInfo.cpp311 constexpr LLT V2F16 = LLT::fixed_vector(2, LLT::float16());
3243 if (Ty == LLT::float16() && in legalizeFMad()
3795 const LLT F16 = LLT::float16(); in legalizeFPow()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64RegisterBankInfo.cpp572 return MRI.getType(MI.getOperand(2).getReg()) == LLT::float16(); in onlyUsesFP()