Home
last modified time | relevance | path

Searched refs:minus_half (Results 1 – 4 of 4) sorted by relevance

/third_party/boost/libs/safe_numerics/test/
Dtest_rational.cpp75 rational<int_type> minus_half(-1,2); in main() local
76 assert(-half == minus_half); in main()
77 assert(abs(minus_half) == half); in main()
89 cout << "abs(" << minus_half << ")=" << half << endl; in main()
/third_party/boost/libs/rational/test/
Drational_example.cpp68 rational<int> minus_half(-1,2); in main() local
69 assert(-half == minus_half); in main()
70 assert(abs(minus_half) == half); in main()
86 cout << "abs(" << minus_half << ")=" << half << endl; in main()
/third_party/boost/libs/gil/test/core/channel/
Dscoped_channel_value.cpp87 struct minus_half { static double apply() { return -0.5; } }; in test_scoped_channel_value_halfs() struct
89 using halfs = gil::scoped_channel_value<double, minus_half, plus_half>; in test_scoped_channel_value_halfs()
92 BOOST_GIL_TEST_IS_CLOSE(gil::channel_traits<halfs>::min_value(), minus_half::apply(), epsilon); in test_scoped_channel_value_halfs()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_arit.c923 LLVMValueRef minus_half = LLVMBuildNeg(builder, half, ""); in lp_build_mul_norm() local
925 half = lp_build_select(&bld, sign, minus_half, half); in lp_build_mul_norm()