Home
last modified time | relevance | path

Searched refs:mpfr (Results 1 – 25 of 45) sorted by relevance

12

/external/eigen/unsupported/Eigen/
DMPRealSupport27 * via the <a href="http://www.holoborodko.com/pavel/mpfr">MPFR C++</a>
28 …* library which itself is built upon <a href="http://www.mpfr.org/">MPFR</a>/<a href="http://gmpli…
40 using namespace mpfr;
62 template<> struct NumTraits<mpfr::mpreal>
63 : GenericNumTraits<mpfr::mpreal>
75 typedef mpfr::mpreal Real;
76 typedef mpfr::mpreal NonInteger;
78 …static inline Real highest (long Precision = mpfr::mpreal::get_default_prec()) { return mpfr::ma…
79 …static inline Real lowest (long Precision = mpfr::mpreal::get_default_prec()) { return -mpfr::ma…
82 …static inline Real Pi (long Precision = mpfr::mpreal::get_default_prec()) { return mpfr::con…
[all …]
/external/llvm-project/libc/test/src/math/
Dexp2f_test.cpp29 namespace mpfr = __llvm_libc::testing::mpfr;
91 EXPECT_MPFR_MATCH(mpfr::Operation::Exp2, x, __llvm_libc::exp2f(x), 1.0); in TEST()
95 EXPECT_MPFR_MATCH(mpfr::Operation::Exp2, x, __llvm_libc::exp2f(x), 1.0); in TEST()
99 EXPECT_MPFR_MATCH(mpfr::Operation::Exp2, x, __llvm_libc::exp2f(x), 1.0); in TEST()
103 EXPECT_MPFR_MATCH(mpfr::Operation::Exp2, x, __llvm_libc::exp2f(x), 1.0); in TEST()
107 EXPECT_MPFR_MATCH(mpfr::Operation::Exp2, x, __llvm_libc::exp2f(x), 1.0); in TEST()
111 EXPECT_MPFR_MATCH(mpfr::Operation::Exp2, x, __llvm_libc::exp2f(x), 1.0); in TEST()
123 EXPECT_MPFR_MATCH(mpfr::Operation::Exp2, x, __llvm_libc::exp2f(x), 1.0); in TEST()
128 EXPECT_MPFR_MATCH(mpfr::Operation::Exp2, x, __llvm_libc::exp2f(x), 1.0); in TEST()
148 ASSERT_MPFR_MATCH(mpfr::Operation::Exp2, x, __llvm_libc::exp2f(x), 1.0); in TEST()
Dsincosf_test.cpp33 namespace mpfr = __llvm_libc::testing::mpfr;
94 ASSERT_MPFR_MATCH(mpfr::Operation::Cos, x, cos, 1.0); in TEST()
95 ASSERT_MPFR_MATCH(mpfr::Operation::Sin, x, sin, 1.0); in TEST()
105 EXPECT_MPFR_MATCH(mpfr::Operation::Cos, x, result_cos, 1.0); in TEST()
106 EXPECT_MPFR_MATCH(mpfr::Operation::Sin, x, result_sin, 1.0); in TEST()
113 EXPECT_MPFR_MATCH(mpfr::Operation::Cos, x, result_cos, 1.0); in TEST()
114 EXPECT_MPFR_MATCH(mpfr::Operation::Sin, x, result_sin, 1.0); in TEST()
126 EXPECT_MPFR_MATCH(mpfr::Operation::Cos, x, cos, 1.0); in TEST()
127 EXPECT_MPFR_MATCH(mpfr::Operation::Sin, x, sin, 1.0); in TEST()
Dsinf_test.cpp33 namespace mpfr = __llvm_libc::testing::mpfr;
79 ASSERT_MPFR_MATCH(mpfr::Operation::Sin, x, __llvm_libc::sinf(x), 1.0); in TEST()
85 EXPECT_MPFR_MATCH(mpfr::Operation::Sin, x, __llvm_libc::sinf(x), 1.0); in TEST()
93 EXPECT_MPFR_MATCH(mpfr::Operation::Sin, x, result, 1.0); in TEST()
99 EXPECT_MPFR_MATCH(mpfr::Operation::Sin, x, result, 1.0); in TEST()
108 EXPECT_MPFR_MATCH(mpfr::Operation::Sin, x, __llvm_libc::sinf(x), 1.0); in TEST()
Dcosf_test.cpp33 namespace mpfr = __llvm_libc::testing::mpfr;
79 ASSERT_MPFR_MATCH(mpfr::Operation::Cos, x, __llvm_libc::cosf(x), 1.0); in TEST()
87 EXPECT_MPFR_MATCH(mpfr::Operation::Cos, x, result, 1.0); in TEST()
92 EXPECT_MPFR_MATCH(mpfr::Operation::Cos, x, result, 1.0); in TEST()
101 ASSERT_MPFR_MATCH(mpfr::Operation::Cos, x, __llvm_libc::cosf(x), 1.0); in TEST()
Dexpf_test.cpp29 namespace mpfr = __llvm_libc::testing::mpfr;
108 ASSERT_MPFR_MATCH(mpfr::Operation::Exp, x, __llvm_libc::expf(x), 1.0); in TEST()
112 ASSERT_MPFR_MATCH(mpfr::Operation::Exp, x, __llvm_libc::expf(x), 1.0); in TEST()
116 ASSERT_MPFR_MATCH(mpfr::Operation::Exp, x, __llvm_libc::expf(x), 1.0); in TEST()
120 ASSERT_MPFR_MATCH(mpfr::Operation::Exp, x, __llvm_libc::expf(x), 1.0); in TEST()
140 ASSERT_MPFR_MATCH(mpfr::Operation::Exp, x, __llvm_libc::expf(x), 1.0); in TEST()
DRemQuoTest.h19 namespace mpfr = __llvm_libc::testing::mpfr; variable
105 mpfr::BinaryOutput<T> result; in testSubnormalRange()
106 mpfr::BinaryInput<T> input{x, y}; in testSubnormalRange()
108 ASSERT_MPFR_MATCH(mpfr::Operation::RemQuo, input, result, 0.0); in testSubnormalRange()
119 mpfr::BinaryOutput<T> result; in testNormalRange()
120 mpfr::BinaryInput<T> input{x, y}; in testNormalRange()
130 ASSERT_MPFR_MATCH(mpfr::Operation::RemQuo, input, result, 0.0); in testNormalRange()
Dsqrtl_test.cpp18 namespace mpfr = __llvm_libc::testing::mpfr;
42 ASSERT_MPFR_MATCH(mpfr::Operation::Sqrt, static_cast<long double>(denormal), in TEST()
50 ASSERT_MPFR_MATCH(mpfr::Operation::Sqrt, x, __llvm_libc::sqrtl(x), 0.5); in TEST()
63 ASSERT_MPFR_MATCH(mpfr::Operation::Sqrt, x, __llvm_libc::sqrtl(x), 0.5); in TEST()
Dsqrtf_test.cpp18 namespace mpfr = __llvm_libc::testing::mpfr;
42 ASSERT_MPFR_MATCH(mpfr::Operation::Sqrt, float(denormal), in TEST()
50 ASSERT_MPFR_MATCH(mpfr::Operation::Sqrt, x, __llvm_libc::sqrtf(x), 0.5); in TEST()
63 ASSERT_MPFR_MATCH(mpfr::Operation::Sqrt, x, __llvm_libc::sqrtf(x), 0.5); in TEST()
Dsqrt_test.cpp18 namespace mpfr = __llvm_libc::testing::mpfr;
42 ASSERT_MPFR_MATCH(mpfr::Operation::Sqrt, double(denormal), in TEST()
50 ASSERT_MPFR_MATCH(mpfr::Operation::Sqrt, x, __llvm_libc::sqrt(x), 0.5); in TEST()
63 ASSERT_MPFR_MATCH(mpfr::Operation::Sqrt, x, __llvm_libc::sqrt(x), 0.5); in TEST()
DHypotTest.h19 namespace mpfr = __llvm_libc::testing::mpfr; variable
56 mpfr::BinaryInput<T> input{x, y}; in testSubnormalRange()
57 ASSERT_MPFR_MATCH(mpfr::Operation::Hypot, input, result, 0.5); in testSubnormalRange()
69 mpfr::BinaryInput<T> input{x, y}; in testNormalRange()
70 ASSERT_MPFR_MATCH(mpfr::Operation::Hypot, input, result, 0.5); in testNormalRange()
Dfabs_test.cpp20 namespace mpfr = __llvm_libc::testing::mpfr;
40 ASSERT_MPFR_MATCH(mpfr::Operation::Abs, x, __llvm_libc::fabs(x), 0.0); in TEST()
Dfabsf_test.cpp20 namespace mpfr = __llvm_libc::testing::mpfr;
40 ASSERT_MPFR_MATCH(mpfr::Operation::Abs, x, __llvm_libc::fabsf(x), 0.0); in TEST()
Dfabsl_test.cpp20 namespace mpfr = __llvm_libc::testing::mpfr;
40 ASSERT_MPFR_MATCH(mpfr::Operation::Abs, x, __llvm_libc::fabsl(x), 0.0); in TEST()
Dfrexpl_test.cpp18 namespace mpfr = __llvm_libc::testing::mpfr;
100 mpfr::BinaryOutput<long double> result; in TEST()
105 ASSERT_MPFR_MATCH(mpfr::Operation::Frexp, x, result, 0.0); in TEST()
Dfloor_test.cpp20 namespace mpfr = __llvm_libc::testing::mpfr;
74 ASSERT_MPFR_MATCH(mpfr::Operation::Floor, x, __llvm_libc::floor(x), 0.0); in TEST()
Dceil_test.cpp18 namespace mpfr = __llvm_libc::testing::mpfr;
74 ASSERT_MPFR_MATCH(mpfr::Operation::Ceil, x, __llvm_libc::ceil(x), 0.0); in TEST()
Dtruncf_test.cpp18 namespace mpfr = __llvm_libc::testing::mpfr;
74 ASSERT_MPFR_MATCH(mpfr::Operation::Trunc, x, __llvm_libc::truncf(x), 0.0); in TEST()
Dround_test.cpp18 namespace mpfr = __llvm_libc::testing::mpfr;
74 ASSERT_MPFR_MATCH(mpfr::Operation::Round, x, __llvm_libc::round(x), 0.0); in TEST()
Dtruncl_test.cpp18 namespace mpfr = __llvm_libc::testing::mpfr;
74 ASSERT_MPFR_MATCH(mpfr::Operation::Trunc, x, __llvm_libc::truncl(x), 0.0); in TEST()
Droundl_test.cpp18 namespace mpfr = __llvm_libc::testing::mpfr;
74 ASSERT_MPFR_MATCH(mpfr::Operation::Round, x, __llvm_libc::roundl(x), 0.0); in TEST()
Dceilf_test.cpp18 namespace mpfr = __llvm_libc::testing::mpfr;
74 ASSERT_MPFR_MATCH(mpfr::Operation::Ceil, x, __llvm_libc::ceilf(x), 0.0); in TEST()
Dtrunc_test.cpp18 namespace mpfr = __llvm_libc::testing::mpfr;
74 ASSERT_MPFR_MATCH(mpfr::Operation::Trunc, x, __llvm_libc::trunc(x), 0.0); in TEST()
Dfloorl_test.cpp20 namespace mpfr = __llvm_libc::testing::mpfr;
74 ASSERT_MPFR_MATCH(mpfr::Operation::Floor, x, __llvm_libc::floorl(x), 0.0); in TEST()
/external/eigen/cmake/
DFindMPFR.cmake2 # See http://www.mpfr.org/
24 mpfr.h
51 file(READ "${MPFR_INCLUDES}/mpfr.h" _mpfr_version_header)
76 find_library(MPFR_LIBRARIES mpfr PATHS $ENV{GMPDIR} ${LIB_INSTALL_DIR})

12