Home
last modified time | relevance | path

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

123

/external/OpenCL-CTS/test_common/harness/
DerrorHelpers.cpp358 HALF_MANT_DIG - 1 - std::max(ilogb(reference), HALF_MIN_EXP - 1); in Ulp_Error_Half_Float()
366 HALF_MANT_DIG - 1 - std::max(ilogb(reference) - 1, HALF_MIN_EXP - 1); in Ulp_Error_Half_Float()
439 FLT_MANT_DIG - 1 - std::max(ilogb(reference), FLT_MIN_EXP - 1); in Ulp_Error()
448 FLT_MANT_DIG - 1 - std::max(ilogb(reference) - 1, FLT_MIN_EXP - 1); in Ulp_Error()
Dcompat.h162 int ilogb(double x);
382 se exp + ilogb((double)0x##int) \
383 - ilogb((double)(0x##int##fract##ULL)))
/external/clang/lib/Headers/
D__clang_cuda_math_forward_declares.h99 __DEVICE__ int ilogb(double);
100 __DEVICE__ int ilogb(float);
215 using ::ilogb;
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/numerics/c.math/
Dconstexpr-cxx2b-clang.pass.cpp65 ASSERT_NOT_CONSTEXPR_CXX23(std::ilogb(1.0f) == 0); in main()
66 ASSERT_NOT_CONSTEXPR_CXX23(std::ilogb(1.0) == 0); in main()
67 ASSERT_NOT_CONSTEXPR_CXX23(std::ilogb(1.0L) == 0); in main()
Dconstexpr-cxx2b-gcc.pass.cpp62 ASSERT_NOT_CONSTEXPR_CXX23(std::ilogb(1.0f) == 0); in main()
63 ASSERT_CONSTEXPR_CXX23(std::ilogb(1.0) == 0); in main()
64 ASSERT_NOT_CONSTEXPR_CXX23(std::ilogb(1.0L) == 0); in main()
/external/musl/src/math/
Dsignificand.c6 return scalbn(x, -ilogb(x)); in significand()
Dlogb.c16 return ilogb(x); in logb()
Dilogb.c4 int ilogb(double x) in ilogb() function
Dilogbl.c7 return ilogb(x); in ilogbl()
/external/rust/crates/libm/src/math/
Dmod.rs141 mod ilogb; module
251 pub use self::ilogb::ilogb;
Dilogb.rs5 pub fn ilogb(x: f64) -> i32 { in ilogb() function
/external/musl/include/
Dtgmath.h177 #undef ilogb
240 #define ilogb(x) __tg_real_nocast(ilogb, (x)) macro
/external/llvm/unittests/ADT/
DAPFloatTest.cpp2822 TEST(APFloatTest, ilogb) { in TEST() argument
2823 EXPECT_EQ(-1074, ilogb(APFloat::getSmallest(APFloat::IEEEdouble, false))); in TEST()
2824 EXPECT_EQ(-1074, ilogb(APFloat::getSmallest(APFloat::IEEEdouble, true))); in TEST()
2825 EXPECT_EQ(-1023, ilogb(APFloat(APFloat::IEEEdouble, "0x1.ffffffffffffep-1024"))); in TEST()
2826 EXPECT_EQ(-1023, ilogb(APFloat(APFloat::IEEEdouble, "0x1.ffffffffffffep-1023"))); in TEST()
2827 EXPECT_EQ(-1023, ilogb(APFloat(APFloat::IEEEdouble, "-0x1.ffffffffffffep-1023"))); in TEST()
2828 EXPECT_EQ(-51, ilogb(APFloat(APFloat::IEEEdouble, "0x1p-51"))); in TEST()
2829 EXPECT_EQ(-1023, ilogb(APFloat(APFloat::IEEEdouble, "0x1.c60f120d9f87cp-1023"))); in TEST()
2830 EXPECT_EQ(-2, ilogb(APFloat(APFloat::IEEEdouble, "0x0.ffffp-1"))); in TEST()
2831 EXPECT_EQ(-1023, ilogb(APFloat(APFloat::IEEEdouble, "0x1.fffep-1023"))); in TEST()
[all …]
/external/llvm/include/llvm/ADT/
DAPFloat.h516 friend int ilogb(const APFloat &Arg);
650 int ilogb(const APFloat &Arg);
/external/libcxx/test/std/depr/depr.c.headers/
Dmath_h.pass.cpp80 Ambiguous ilogb(Ambiguous){ return Ambiguous(); } in ilogb() function
1069 static_assert((std::is_same<decltype(ilogb((float)0)), int>::value), ""); in test_ilogb()
1070 static_assert((std::is_same<decltype(ilogb((bool)0)), int>::value), ""); in test_ilogb()
1071 static_assert((std::is_same<decltype(ilogb((unsigned short)0)), int>::value), ""); in test_ilogb()
1072 static_assert((std::is_same<decltype(ilogb((int)0)), int>::value), ""); in test_ilogb()
1073 static_assert((std::is_same<decltype(ilogb((unsigned int)0)), int>::value), ""); in test_ilogb()
1074 static_assert((std::is_same<decltype(ilogb((long)0)), int>::value), ""); in test_ilogb()
1075 static_assert((std::is_same<decltype(ilogb((unsigned long)0)), int>::value), ""); in test_ilogb()
1076 static_assert((std::is_same<decltype(ilogb((long long)0)), int>::value), ""); in test_ilogb()
1077 static_assert((std::is_same<decltype(ilogb((unsigned long long)0)), int>::value), ""); in test_ilogb()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DAPFloat.h446 friend int ilogb(const IEEEFloat &Arg);
583 int ilogb(const IEEEFloat &Arg);
679 friend int ilogb(const DoubleAPFloat &Arg);
1201 friend int ilogb(const APFloat &Arg) { return ilogb(Arg.getIEEE()); } in ilogb() function
/external/cronet/buildtools/third_party/libc++/trunk/test/std/depr/depr.c.headers/
Dmath_h.pass.cpp81 Ambiguous ilogb(Ambiguous){ return Ambiguous(); } in ilogb() function
545 ASSERT_SAME_TYPE(decltype(ilogb(Ambiguous())), Ambiguous); in test_ilogb()
546 assert(ilogb(1) == 0); in test_ilogb()
790 ASSERT_SAME_TYPE(decltype(::ilogb(T())), int); in operator ()()
791 (void)::ilogb(T()); in operator ()()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPFloat.h457 friend int ilogb(const IEEEFloat &Arg);
592 int ilogb(const IEEEFloat &Arg);
1075 friend int ilogb(const APFloat &Arg) { return ilogb(Arg.getIEEE()); } in ilogb() function
/external/clang/test/CodeGen/
Dlibcall-declarations.c103 int ilogb(double);
282 F(hypot), F(hypotf), F(hypotl), F(ilogb), F(ilogbf),
/external/libcxx/test/std/numerics/c.math/
Dcmath.pass.cpp83 Ambiguous ilogb(Ambiguous){ return Ambiguous(); } in ilogb() function
1120 static_assert((std::is_same<decltype(std::ilogb((float)0)), int>::value), ""); in test_ilogb()
1121 static_assert((std::is_same<decltype(std::ilogb((bool)0)), int>::value), ""); in test_ilogb()
1122 static_assert((std::is_same<decltype(std::ilogb((unsigned short)0)), int>::value), ""); in test_ilogb()
1123 static_assert((std::is_same<decltype(std::ilogb((int)0)), int>::value), ""); in test_ilogb()
1124 static_assert((std::is_same<decltype(std::ilogb((unsigned int)0)), int>::value), ""); in test_ilogb()
1125 static_assert((std::is_same<decltype(std::ilogb((long)0)), int>::value), ""); in test_ilogb()
1126 static_assert((std::is_same<decltype(std::ilogb((unsigned long)0)), int>::value), ""); in test_ilogb()
1127 static_assert((std::is_same<decltype(std::ilogb((long long)0)), int>::value), ""); in test_ilogb()
1128 static_assert((std::is_same<decltype(std::ilogb((unsigned long long)0)), int>::value), ""); in test_ilogb()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/numerics/c.math/
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()
1152 static_assert((std::is_same<decltype(std::ilogb((unsigned short)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()
1156 static_assert((std::is_same<decltype(std::ilogb((unsigned long)0)), int>::value), ""); in test_ilogb()
1157 static_assert((std::is_same<decltype(std::ilogb((long long)0)), int>::value), ""); in test_ilogb()
1158 static_assert((std::is_same<decltype(std::ilogb((unsigned long long)0)), int>::value), ""); in test_ilogb()
[all …]
/external/compiler-rt/test/builtins/Unit/ppc/
Dqadd_test.c1831 int exponent = ilogb(r.hi); in testAccuracy()
Dqsub_test.c1833 int exponent = ilogb(r.hi); in testAccuracy()
Dqdiv_test.c754 int exponent = ilogb(r.hi); in testAccuracy()
Dqmul_test.c752 int exponent = ilogb(r.hi); in testAccuracy()

123