/third_party/boost/libs/math/test/ |
D | test_sign.cpp | 29 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 …]
|
D | test_legacy_nonfinite.cpp | 44 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()
|
D | test_lexical_cast.cpp | 36 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/ |
D | test_sf_import_c99.cpp | 58 #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 …]
|
D | test_cpp_bin_float.cpp | 219 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 …]
|
D | test_fpclassify.cpp | 303 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/ |
D | real2.cpp | 90 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/ |
D | real2.cpp | 114 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/ |
D | mtest.c | 47 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/ |
D | sign.hpp | 30 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/ |
D | fmax.c | 10 if (signbit(x) != signbit(y)) in fmax() 11 return signbit(x) ? y : x; in fmax()
|
D | fmin.c | 10 if (signbit(x) != signbit(y)) in fmin() 11 return signbit(x) ? x : y; in fmin()
|
D | fmaxf.c | 10 if (signbit(x) != signbit(y)) in fmaxf() 11 return signbit(x) ? y : x; in fmaxf()
|
D | fminf.c | 10 if (signbit(x) != signbit(y)) in fminf() 11 return signbit(x) ? x : y; in fminf()
|
D | fmaxl.c | 17 if (signbit(x) != signbit(y)) in fmaxl() 18 return signbit(x) ? y : x; in fmaxl()
|
D | fminl.c | 17 if (signbit(x) != signbit(y)) in fminl() 18 return signbit(x) ? x : y; in fminl()
|
D | nexttowardf.c | 14 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/ |
D | fmin.c | 10 if (signbit(x) != signbit(y)) in fmin() 11 return signbit(x) ? x : y; in fmin()
|
D | fminf.c | 10 if (signbit(x) != signbit(y)) in fminf() 11 return signbit(x) ? x : y; in fminf()
|
D | fmaxf.c | 10 if (signbit(x) != signbit(y)) in fmaxf() 11 return signbit(x) ? y : x; in fmaxf()
|
D | fmax.c | 10 if (signbit(x) != signbit(y)) in fmax() 11 return signbit(x) ? y : x; in fmax()
|
D | fminl.c | 17 if (signbit(x) != signbit(y)) in fminl() 18 return signbit(x) ? x : y; in fminl()
|
D | fmaxl.c | 17 if (signbit(x) != signbit(y)) in fmaxl() 18 return signbit(x) ? y : x; in fmaxl()
|
D | nexttowardf.c | 14 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/ |
D | sf_sign_incl_test.cpp | 24 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()
|