Home
last modified time | relevance | path

Searched refs:ilogb (Results 1 – 25 of 62) sorted by relevance

123

/llvm-project-15.0.7/libc/test/src/math/
H A Dilogb_test.cpp19 test_special_numbers<double>(&__llvm_libc::ilogb); in TEST_F()
23 test_powers_of_two<double>(&__llvm_libc::ilogb); in TEST_F()
27 test_some_integers<double>(&__llvm_libc::ilogb); in TEST_F()
31 test_subnormal_range<double>(&__llvm_libc::ilogb); in TEST_F()
35 test_normal_range<double>(&__llvm_libc::ilogb); in TEST_F()
/llvm-project-15.0.7/libclc/generic/lib/math/
H A Dilogb.cl28 _CLC_OVERLOAD _CLC_DEF int ilogb(float x) {
41 // FP_ILOGBNAN can change without requiring changes to ilogb() code.
47 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, int, ilogb, float);
52 _CLC_OVERLOAD _CLC_DEF int ilogb(double x) {
65 // FP_ILOGBNAN can change without requiring changes to ilogb() code.
71 _CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, int, ilogb, double);
/llvm-project-15.0.7/libc/src/math/generic/
H A Dilogb.cpp15 LLVM_LIBC_FUNCTION(int, ilogb, (double x)) { return fputil::ilogb(x); }
H A Dilogbf.cpp15 LLVM_LIBC_FUNCTION(int, ilogbf, (float x)) { return fputil::ilogb(x); }
H A Dilogbl.cpp15 LLVM_LIBC_FUNCTION(int, ilogbl, (long double x)) { return fputil::ilogb(x); }
H A DCMakeLists.txt598 ilogb
600 ilogb.cpp
602 ../ilogb.h
/llvm-project-15.0.7/clang/lib/Headers/
H A D__clang_cuda_math_forward_declares.h85 __DEVICE__ int ilogb(double);
86 __DEVICE__ int ilogb(float);
228 using ::ilogb;
H A D__clang_cuda_cmath.h266 __CUDA_CLANG_FN_INTEGER_OVERLOAD_1(int, ilogb)
395 using ::ilogb;
H A D__clang_hip_cmath.h229 __DEF_FUN1(int, ilogb)
508 __HIP_OVERLOAD1(int, ilogb)
678 using ::ilogb;
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/
H A Dtype-promotion-in-math-fn.cpp31 double ilogb(double);
146 ilogb(a); in check_all_fns()
/llvm-project-15.0.7/libclc/generic/include/clc/math/
H A Dilogb.inc1 _CLC_OVERLOAD _CLC_DECL __CLC_INTN ilogb(__CLC_GENTYPE x);
H A Dilogb.h1 #define __CLC_BODY <clc/math/ilogb.inc>
/llvm-project-15.0.7/libc/src/math/
H A Dilogb.h14 int ilogb(double x);
H A DCMakeLists.txt116 add_math_entrypoint_object(ilogb)
/llvm-project-15.0.7/clang/test/SemaOpenCL/
H A Dhalf.cl26 …(void)ilogb(*p); // expected-error{{loading directly from pointer to type '__private half' require…
58 (void)ilogb(*p);
/llvm-project-15.0.7/clang/test/Headers/Inputs/include/
H A Dcmath66 int ilogb(double);
67 int ilogb(float);
187 using ::ilogb;
/llvm-project-15.0.7/clang/lib/Headers/openmp_wrappers/
H A Dcmath53 __DEVICE__ int ilogb(float __x) { return ::ilogbf(__x); }
108 __DEVICE__ int ilogb(float __x) { return ::ilogbf(__x); }
/llvm-project-15.0.7/libcxx/test/std/depr/depr.c.headers/
H A Dmath_h.pass.cpp80 Ambiguous ilogb(Ambiguous){ return Ambiguous(); } in ilogb() function
1098 static_assert((std::is_same<decltype(ilogb((float)0)), int>::value), ""); in test_ilogb()
1099 static_assert((std::is_same<decltype(ilogb((bool)0)), int>::value), ""); in test_ilogb()
1101 static_assert((std::is_same<decltype(ilogb((int)0)), int>::value), ""); in test_ilogb()
1102 static_assert((std::is_same<decltype(ilogb((unsigned int)0)), int>::value), ""); in test_ilogb()
1103 static_assert((std::is_same<decltype(ilogb((long)0)), int>::value), ""); in test_ilogb()
1104 static_assert((std::is_same<decltype(ilogb((unsigned long)0)), int>::value), ""); in test_ilogb()
1105 static_assert((std::is_same<decltype(ilogb((long long)0)), int>::value), ""); in test_ilogb()
1107 static_assert((std::is_same<decltype(ilogb((double)0)), int>::value), ""); in test_ilogb()
1108 static_assert((std::is_same<decltype(ilogb((long double)0)), int>::value), ""); in test_ilogb()
[all …]
/llvm-project-15.0.7/libclc/clspv/lib/
H A DSOURCES32 ../../generic/lib/math/ilogb.cl
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dlibcall-declarations.c103 int ilogb(double);
282 F(hypot), F(hypotf), F(hypotl), F(ilogb), F(ilogbf),
/llvm-project-15.0.7/libc/src/__support/FPUtil/
H A DManipulationFunctions.h75 static inline int ilogb(T x) { in ilogb() function
/llvm-project-15.0.7/libcxx/test/std/numerics/c.math/
H A Dcmath.pass.cpp82 Ambiguous ilogb(Ambiguous){ return Ambiguous(); } in ilogb() function
1150 static_assert((std::is_same<decltype(std::ilogb((float)0)), int>::value), ""); in test_ilogb()
1151 static_assert((std::is_same<decltype(std::ilogb((bool)0)), int>::value), ""); in test_ilogb()
1153 static_assert((std::is_same<decltype(std::ilogb((int)0)), int>::value), ""); in test_ilogb()
1154 static_assert((std::is_same<decltype(std::ilogb((unsigned int)0)), int>::value), ""); in test_ilogb()
1155 static_assert((std::is_same<decltype(std::ilogb((long)0)), int>::value), ""); in test_ilogb()
1157 static_assert((std::is_same<decltype(std::ilogb((long long)0)), int>::value), ""); in test_ilogb()
1159 static_assert((std::is_same<decltype(std::ilogb((double)0)), int>::value), ""); in test_ilogb()
1160 static_assert((std::is_same<decltype(std::ilogb((long double)0)), int>::value), ""); in test_ilogb()
1163 static_assert((std::is_same<decltype(ilogb(Ambiguous())), Ambiguous>::value), ""); in test_ilogb()
[all …]
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DAPFloatTest.cpp3250 TEST(APFloatTest, ilogb) { in TEST() argument
3256 EXPECT_EQ(-51, ilogb(APFloat(APFloat::IEEEdouble(), "0x1p-51"))); in TEST()
3264 EXPECT_EQ(0, ilogb(APFloat(APFloat::IEEEsingle(), "0x1p+0"))); in TEST()
3265 EXPECT_EQ(0, ilogb(APFloat(APFloat::IEEEsingle(), "-0x1p+0"))); in TEST()
3266 EXPECT_EQ(42, ilogb(APFloat(APFloat::IEEEsingle(), "0x1p+42"))); in TEST()
3267 EXPECT_EQ(-42, ilogb(APFloat(APFloat::IEEEsingle(), "0x1p-42"))); in TEST()
3270 ilogb(APFloat::getInf(APFloat::IEEEsingle(), false))); in TEST()
3272 ilogb(APFloat::getInf(APFloat::IEEEsingle(), true))); in TEST()
3276 ilogb(APFloat::getZero(APFloat::IEEEsingle(), true))); in TEST()
3278 ilogb(APFloat::getNaN(APFloat::IEEEsingle(), false))); in TEST()
[all …]
/llvm-project-15.0.7/flang/runtime/
H A Dnumeric.cpp75 return std::ilogb(x) + 1; in Exponent()
131 return std::ldexp(std::abs(x), PREC - (std::ilogb(x) + 1)); in RRSpacing()
221 int expo{std::ilogb(x) + 1}; in SetExponent()
243 static_cast<T>(1.0), std::ilogb(x) + 1 - PREC); // 2**(e-p) in Spacing()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPFloat.h451 friend int ilogb(const IEEEFloat &Arg);
594 int ilogb(const IEEEFloat &Arg);
1250 friend int ilogb(const APFloat &Arg) { return ilogb(Arg.getIEEE()); } in ilogb() function

123