Home
last modified time | relevance | path

Searched refs:signbit (Results 1 – 25 of 162) sorted by relevance

1234567

/third_party/boost/libs/math/test/
Dtest_sign.cpp29 BOOST_CHECK_EQUAL((boost::math::signbit)(a), 0); in test_spots()
37 (boost::math::copysign)(b, (boost::math::signbit)(b) ? RealType(1.) : RealType(-1.) )); in test_spots()
43 BOOST_CHECK_EQUAL((boost::math::signbit)(a), 0); in test_spots()
48 BOOST_CHECK((boost::math::signbit)(a) != 0); in test_spots()
53 BOOST_CHECK_EQUAL((boost::math::signbit)(a), 0); in test_spots()
58 BOOST_CHECK((boost::math::signbit)(a) != 0); in test_spots()
66 BOOST_CHECK_EQUAL((boost::math::signbit)(a), 0); in test_spots()
73 BOOST_CHECK((boost::math::signbit)(a) != 0); in test_spots()
83 BOOST_CHECK_EQUAL((boost::math::signbit)(a), 0); in test_spots()
88 BOOST_CHECK((boost::math::signbit)((boost::math::changesign)(a)) != 0); in test_spots()
[all …]
Dtest_legacy_nonfinite.cpp44 using boost::math::signbit;
154 BOOST_CHECK(!(signbit)(b5)); in legacy_test_nan_impl()
155 BOOST_CHECK(!(signbit)(b6)); in legacy_test_nan_impl()
156 BOOST_CHECK(!(signbit)(b7)); in legacy_test_nan_impl()
157 BOOST_CHECK(!(signbit)(b8)); in legacy_test_nan_impl()
158 BOOST_CHECK(!(signbit)(b9)); in legacy_test_nan_impl()
159 BOOST_CHECK(!(signbit)(b10)); in legacy_test_nan_impl()
160 BOOST_CHECK(!(signbit)(b11)); // Johan V3 1.#SNAN failed MSVC 10. in legacy_test_nan_impl()
Dtest_lexical_cast.cpp36 using boost::math::signbit;
101 BOOST_CHECK(!(signbit)(lexical_cast<ValType>(s1))); in lexical_cast_test_impl()
105 BOOST_CHECK(!(signbit)(lexical_cast<ValType>(s4))); in lexical_cast_test_impl()
107 BOOST_CHECK(!(signbit)(lexical_cast<ValType>(s5))); in lexical_cast_test_impl()
109 BOOST_CHECK((signbit)(lexical_cast<ValType>(s6))); in lexical_cast_test_impl()
113 BOOST_CHECK((signbit)(lexical_cast<ValType>(s9))); in lexical_cast_test_impl()
115 BOOST_CHECK((signbit)(lexical_cast<ValType>(s10))); in lexical_cast_test_impl()
/third_party/boost/libs/multiprecision/test/
Dtest_sf_import_c99.cpp58 #ifdef signbit
59 #undef signbit
183 BOOST_CHECK(signbit(val) == 0); in test()
184 BOOST_CHECK(signbit(val + 2) == 0); in test()
186 BOOST_CHECK(signbit(val)); in test()
187 BOOST_CHECK(signbit(val * 2)); in test()
215 BOOST_CHECK(signbit(changesign(val))); in test()
216 BOOST_CHECK(signbit(changesign(val * 2))); in test()
248 if (signbit(s)) in test()
510 …) + isfinite(val) + isinf(val) + islessgreater(val, s) + isnormal(val) + signbit(val) + isgreater(… in test()
[all …]
Dtest_cpp_bin_float.cpp219 BOOST_CHECK(boost::math::signbit(min_val * -min_val)); in test_special_cases()
220 BOOST_CHECK(boost::math::signbit(min_val * min_val) == 0); in test_special_cases()
221 BOOST_CHECK(boost::math::signbit(-min_val * -min_val) == 0); in test_special_cases()
222 BOOST_CHECK(boost::math::signbit(-min_val * min_val)); in test_special_cases()
223 BOOST_CHECK(boost::math::signbit(min_val / max_val) == 0); in test_special_cases()
224 BOOST_CHECK(boost::math::signbit(min_val / -max_val)); in test_special_cases()
225 BOOST_CHECK(boost::math::signbit(-min_val / -max_val) == 0); in test_special_cases()
226 BOOST_CHECK(boost::math::signbit(-min_val / max_val)); in test_special_cases()
227 BOOST_CHECK(boost::math::signbit(min_val / 2) == 0); in test_special_cases()
228 BOOST_CHECK(boost::math::signbit(min_val / -2)); in test_special_cases()
[all …]
Dtest_fpclassify.cpp303 BOOST_CHECK((::boost::math::signbit)(one) == 0); in test()
304 BOOST_CHECK((::boost::math::signbit)(minus_one) > 0); in test()
305 BOOST_CHECK((::boost::math::signbit)(zero) == 0); in test()
306 BOOST_CHECK((::boost::math::signbit)(one + 2) == 0); in test()
307 BOOST_CHECK((::boost::math::signbit)(minus_one - 30) > 0); in test()
310 BOOST_CHECK((::boost::math::signbit)(boost::math::changesign(one)) > 0); in test()
312 BOOST_CHECK((::boost::math::signbit)(boost::math::changesign(minus_one)) == 0); in test()
315 BOOST_CHECK((::boost::math::signbit)(boost::math::changesign(one + 2)) > 0); in test()
317 BOOST_CHECK((::boost::math::signbit)(boost::math::changesign(minus_one - 30)) == 0); in test()
321 BOOST_CHECK((::boost::math::signbit)(boost::math::copysign(one, one)) == 0); in test()
[all …]
/third_party/boost/libs/spirit/test/x3/
Dreal2.cpp90 using boost::spirit::x3::signbit; // Boost version is broken in main()
95 FP_INFINITE == fpclassify(d) && signbit(d)); in main()
97 FP_INFINITE == fpclassify(d) && signbit(d)); in main()
101 FP_INFINITE == fpclassify(d) && signbit(d)); in main()
103 FP_INFINITE == fpclassify(d) && signbit(d)); in main()
107 FP_NAN == fpclassify(d) && signbit(d)); in main()
110 FP_NAN == fpclassify(d) && signbit(d)); in main()
114 FP_NAN == fpclassify(d) && signbit(d)); in main()
117 FP_NAN == fpclassify(d) && signbit(d)); in main()
/third_party/boost/libs/spirit/test/qi/
Dreal2.cpp114 using boost::spirit::detail::signbit; // Boost version is broken in main()
119 FP_INFINITE == fpclassify(d) && signbit(d)); in main()
121 FP_INFINITE == fpclassify(d) && signbit(d)); in main()
125 FP_INFINITE == fpclassify(d) && signbit(d)); in main()
127 FP_INFINITE == fpclassify(d) && signbit(d)); in main()
131 FP_NAN == fpclassify(d) && signbit(d)); in main()
134 FP_NAN == fpclassify(d) && signbit(d)); in main()
138 FP_NAN == fpclassify(d) && signbit(d)); in main()
141 FP_NAN == fpclassify(d) && signbit(d)); in main()
/third_party/musl/libc-test/src/common/
Dmtest.c47 if (signbit(got) == signbit(want)) in ulperrf()
63 if (signbit(got) == signbit(want)) in ulperr()
82 if (signbit(got) == signbit(want)) in ulperrl()
/third_party/boost/boost/math/special_functions/
Dsign.hpp30 return (std::signbit)(x) ? 1 : 0; in signbit_impl()
59 return (boost::math::signbit)(static_cast<double>(x)); in signbit_impl()
63 return (boost::math::signbit)(static_cast<double>(x)); in signbit_impl()
153 template<class T> int (signbit)(T x)
165 return (z == 0) ? 0 : (boost::math::signbit)(z) ? -1 : 1; in BOOST_NO_MACRO_EXPAND()
184 …return (boost::math::signbit)(static_cast<result_type>(x)) != (boost::math::signbit)(static_cast<r… in BOOST_NO_MACRO_EXPAND()
/third_party/musl/src/math/
Dfmax.c10 if (signbit(x) != signbit(y)) in fmax()
11 return signbit(x) ? y : x; in fmax()
Dfmin.c10 if (signbit(x) != signbit(y)) in fmin()
11 return signbit(x) ? x : y; in fmin()
Dfmaxf.c10 if (signbit(x) != signbit(y)) in fmaxf()
11 return signbit(x) ? y : x; in fmaxf()
Dfminf.c10 if (signbit(x) != signbit(y)) in fminf()
11 return signbit(x) ? x : y; in fminf()
Dfmaxl.c17 if (signbit(x) != signbit(y)) in fmaxl()
18 return signbit(x) ? y : x; in fmaxl()
Dfminl.c17 if (signbit(x) != signbit(y)) in fminl()
18 return signbit(x) ? x : y; in fminl()
Dnexttowardf.c14 if (signbit(y)) in nexttowardf()
17 if (signbit(x)) in nexttowardf()
22 if (signbit(x)) in nexttowardf()
/third_party/musl/porting/liteos_a/kernel/src/math/
Dfmin.c10 if (signbit(x) != signbit(y)) in fmin()
11 return signbit(x) ? x : y; in fmin()
Dfminf.c10 if (signbit(x) != signbit(y)) in fminf()
11 return signbit(x) ? x : y; in fminf()
Dfmaxf.c10 if (signbit(x) != signbit(y)) in fmaxf()
11 return signbit(x) ? y : x; in fmaxf()
Dfmax.c10 if (signbit(x) != signbit(y)) in fmax()
11 return signbit(x) ? y : x; in fmax()
Dfminl.c17 if (signbit(x) != signbit(y)) in fminl()
18 return signbit(x) ? x : y; in fminl()
Dfmaxl.c17 if (signbit(x) != signbit(y)) in fmaxl()
18 return signbit(x) ? y : x; in fmaxl()
Dnexttowardf.c14 if (signbit(y)) in nexttowardf()
17 if (signbit(x)) in nexttowardf()
22 if (signbit(x)) in nexttowardf()
/third_party/boost/libs/math/test/compile_test/
Dsf_sign_incl_test.cpp24 check_result<int>(boost::math::signbit<float>(f)); in compile_and_link_test()
25 check_result<int>(boost::math::signbit<double>(d)); in compile_and_link_test()
27 check_result<int>(boost::math::signbit<long double>(l)); in compile_and_link_test()

1234567