/external/llvm-project/libc/test/src/math/ |
D | exp2f_test.cpp | 25 using __llvm_libc::fputil::valueFromBits; 35 isQuietNaN(__llvm_libc::exp2f(valueFromBits(BitPatterns::aQuietNaN)))); in TEST() 39 __llvm_libc::exp2f(valueFromBits(BitPatterns::aNegativeQuietNaN)))); in TEST() 43 __llvm_libc::exp2f(valueFromBits(BitPatterns::aSignallingNaN)))); in TEST() 47 __llvm_libc::exp2f(valueFromBits(BitPatterns::aNegativeSignallingNaN)))); in TEST() 51 valueAsBits(__llvm_libc::exp2f(valueFromBits(BitPatterns::inf)))); in TEST() 55 valueFromBits(BitPatterns::negInf)))); in TEST() 59 valueAsBits(__llvm_libc::exp2f(valueFromBits(BitPatterns::zero)))); in TEST() 63 valueFromBits(BitPatterns::negZero)))); in TEST() 70 valueAsBits(__llvm_libc::exp2f(valueFromBits(0x7f7fffffU)))); in TEST() [all …]
|
D | expf_test.cpp | 25 using __llvm_libc::fputil::valueFromBits; 35 isQuietNaN(__llvm_libc::expf(valueFromBits(BitPatterns::aQuietNaN)))); in TEST() 39 __llvm_libc::expf(valueFromBits(BitPatterns::aNegativeQuietNaN)))); in TEST() 43 __llvm_libc::expf(valueFromBits(BitPatterns::aSignallingNaN)))); in TEST() 47 __llvm_libc::expf(valueFromBits(BitPatterns::aNegativeSignallingNaN)))); in TEST() 51 valueAsBits(__llvm_libc::expf(valueFromBits(BitPatterns::inf)))); in TEST() 55 valueAsBits(__llvm_libc::expf(valueFromBits(BitPatterns::negInf)))); in TEST() 59 valueAsBits(__llvm_libc::expf(valueFromBits(BitPatterns::zero)))); in TEST() 63 valueFromBits(BitPatterns::negZero)))); in TEST() 70 valueAsBits(__llvm_libc::expf(valueFromBits(0x7f7fffffU)))); in TEST() [all …]
|
D | sinf_test.cpp | 27 using __llvm_libc::fputil::valueFromBits; 39 isQuietNaN(__llvm_libc::sinf(valueFromBits(BitPatterns::aQuietNaN)))); in TEST() 43 __llvm_libc::sinf(valueFromBits(BitPatterns::aNegativeQuietNaN)))); in TEST() 47 __llvm_libc::sinf(valueFromBits(BitPatterns::aSignallingNaN)))); in TEST() 51 __llvm_libc::sinf(valueFromBits(BitPatterns::aNegativeSignallingNaN)))); in TEST() 55 valueAsBits(__llvm_libc::sinf(valueFromBits(BitPatterns::zero)))); in TEST() 59 valueFromBits(BitPatterns::negZero)))); in TEST() 63 EXPECT_TRUE(isQuietNaN(__llvm_libc::sinf(valueFromBits(BitPatterns::inf)))); in TEST() 68 isQuietNaN(__llvm_libc::sinf(valueFromBits(BitPatterns::negInf)))); in TEST() 76 float x = valueFromBits(v); in TEST() [all …]
|
D | cosf_test.cpp | 27 using __llvm_libc::fputil::valueFromBits; 39 isQuietNaN(__llvm_libc::cosf(valueFromBits(BitPatterns::aQuietNaN)))); in TEST() 43 __llvm_libc::cosf(valueFromBits(BitPatterns::aNegativeQuietNaN)))); in TEST() 47 __llvm_libc::cosf(valueFromBits(BitPatterns::aSignallingNaN)))); in TEST() 51 __llvm_libc::cosf(valueFromBits(BitPatterns::aNegativeSignallingNaN)))); in TEST() 55 valueAsBits(__llvm_libc::cosf(valueFromBits(BitPatterns::zero)))); in TEST() 59 valueFromBits(BitPatterns::negZero)))); in TEST() 63 EXPECT_TRUE(isQuietNaN(__llvm_libc::cosf(valueFromBits(BitPatterns::inf)))); in TEST() 68 isQuietNaN(__llvm_libc::cosf(valueFromBits(BitPatterns::negInf)))); in TEST() 76 float x = valueFromBits(v); in TEST() [all …]
|
D | sincosf_test.cpp | 27 using __llvm_libc::fputil::valueFromBits; 39 __llvm_libc::sincosf(valueFromBits(BitPatterns::aQuietNaN), &sin, &cos); in TEST() 44 __llvm_libc::sincosf(valueFromBits(BitPatterns::aNegativeQuietNaN), &sin, in TEST() 50 __llvm_libc::sincosf(valueFromBits(BitPatterns::aSignallingNaN), &sin, &cos); in TEST() 55 __llvm_libc::sincosf(valueFromBits(BitPatterns::aNegativeSignallingNaN), &sin, in TEST() 61 __llvm_libc::sincosf(valueFromBits(BitPatterns::zero), &sin, &cos); in TEST() 66 __llvm_libc::sincosf(valueFromBits(BitPatterns::negZero), &sin, &cos); in TEST() 72 __llvm_libc::sincosf(valueFromBits(BitPatterns::inf), &sin, &cos); in TEST() 78 __llvm_libc::sincosf(valueFromBits(BitPatterns::negInf), &sin, &cos); in TEST() 88 float x = valueFromBits(v); in TEST() [all …]
|
D | logb_test.cpp | 18 using __llvm_libc::fputil::valueFromBits; 26 valueAsBits(__llvm_libc::logb(valueFromBits(BitPatterns::aQuietNaN)))); in TEST() 29 valueFromBits(BitPatterns::aNegativeQuietNaN)))); in TEST() 33 __llvm_libc::logb(valueFromBits(BitPatterns::aSignallingNaN)))); in TEST() 36 valueFromBits(BitPatterns::aNegativeSignallingNaN)))); in TEST() 39 valueAsBits(__llvm_libc::logb(valueFromBits(BitPatterns::inf)))); in TEST() 41 valueAsBits(__llvm_libc::logb(valueFromBits(BitPatterns::negInf)))); in TEST() 44 valueAsBits(__llvm_libc::logb(valueFromBits(BitPatterns::zero)))); in TEST() 46 valueFromBits(BitPatterns::negZero)))); in TEST() 91 double x = valueFromBits(v); in TEST()
|
D | logbf_test.cpp | 18 using __llvm_libc::fputil::valueFromBits; 26 valueAsBits(__llvm_libc::logbf(valueFromBits(BitPatterns::aQuietNaN)))); in TEST() 29 valueFromBits(BitPatterns::aNegativeQuietNaN)))); in TEST() 33 valueFromBits(BitPatterns::aSignallingNaN)))); in TEST() 36 valueFromBits(BitPatterns::aNegativeSignallingNaN)))); in TEST() 39 valueAsBits(__llvm_libc::logbf(valueFromBits(BitPatterns::inf)))); in TEST() 41 valueFromBits(BitPatterns::negInf)))); in TEST() 44 valueAsBits(__llvm_libc::logbf(valueFromBits(BitPatterns::zero)))); in TEST() 46 valueFromBits(BitPatterns::negZero)))); in TEST() 91 float x = valueFromBits(v); in TEST()
|
D | modff_test.cpp | 19 using __llvm_libc::fputil::valueFromBits; 29 valueFromBits(BitPatterns::aQuietNaN), &integral))); in TEST() 32 valueFromBits(BitPatterns::aNegativeQuietNaN), &integral))); in TEST() 36 valueFromBits(BitPatterns::aSignallingNaN), &integral))); in TEST() 40 valueFromBits(BitPatterns::aNegativeSignallingNaN), &integral))); in TEST() 43 valueAsBits(__llvm_libc::modff(valueFromBits(BitPatterns::inf), in TEST() 48 valueAsBits(__llvm_libc::modff(valueFromBits(BitPatterns::negInf), in TEST() 53 valueAsBits(__llvm_libc::modff(valueFromBits(BitPatterns::zero), in TEST() 58 valueAsBits(__llvm_libc::modff(valueFromBits(BitPatterns::negZero), in TEST() 124 float x = valueFromBits(v); in TEST()
|
D | modf_test.cpp | 19 using __llvm_libc::fputil::valueFromBits; 28 valueAsBits(__llvm_libc::modf(valueFromBits(BitPatterns::aQuietNaN), in TEST() 32 valueFromBits(BitPatterns::aNegativeQuietNaN), &integral))); in TEST() 36 valueFromBits(BitPatterns::aSignallingNaN), &integral))); in TEST() 40 valueFromBits(BitPatterns::aNegativeSignallingNaN), &integral))); in TEST() 44 __llvm_libc::modf(valueFromBits(BitPatterns::inf), &integral))); in TEST() 48 valueAsBits(__llvm_libc::modf(valueFromBits(BitPatterns::negInf), in TEST() 53 valueAsBits(__llvm_libc::modf(valueFromBits(BitPatterns::zero), in TEST() 58 valueAsBits(__llvm_libc::modf(valueFromBits(BitPatterns::negZero), in TEST() 120 double x = valueFromBits(v); in TEST()
|
D | frexp_test.cpp | 22 using __llvm_libc::fputil::valueFromBits; 34 valueFromBits(BitPatterns::aQuietNaN), &exponent))); in TEST() 37 valueFromBits(BitPatterns::aNegativeQuietNaN), &exponent))); in TEST() 41 valueFromBits(BitPatterns::aSignallingNaN), &exponent))); in TEST() 45 valueFromBits(BitPatterns::aNegativeSignallingNaN), &exponent))); in TEST() 48 valueFromBits(BitPatterns::inf), &exponent))); in TEST() 50 valueAsBits(__llvm_libc::frexp(valueFromBits(BitPatterns::negInf), in TEST() 54 valueAsBits(__llvm_libc::frexp(valueFromBits(BitPatterns::zero), in TEST() 58 valueAsBits(__llvm_libc::frexp(valueFromBits(BitPatterns::negZero), in TEST()
|
D | frexpf_test.cpp | 22 using __llvm_libc::fputil::valueFromBits; 34 valueFromBits(BitPatterns::aQuietNaN), &exponent))); in TEST() 37 valueFromBits(BitPatterns::aNegativeQuietNaN), &exponent))); in TEST() 41 valueFromBits(BitPatterns::aSignallingNaN), &exponent))); in TEST() 45 valueFromBits(BitPatterns::aNegativeSignallingNaN), &exponent))); in TEST() 48 valueFromBits(BitPatterns::inf), &exponent))); in TEST() 50 valueAsBits(__llvm_libc::frexpf(valueFromBits(BitPatterns::negInf), in TEST() 54 valueAsBits(__llvm_libc::frexpf(valueFromBits(BitPatterns::zero), in TEST() 58 valueAsBits(__llvm_libc::frexpf(valueFromBits(BitPatterns::negZero), in TEST()
|
/external/llvm-project/libc/utils/FPUtil/ |
D | FloatOperations.h | 32 static inline FloatTypeT<BitsType> valueFromBits(BitsType bits) { in valueFromBits() function
|