Searched refs:truncate_fp (Results 1 – 10 of 10) sorted by relevance
27 assert(f == truncate_fp((16807 - E::min()) / (E::max() - E::min() + F(1)))); in main()34 assert(f == truncate_fp((16807 - E::min()) / (E::max() - E::min() + F(1)))); in main()41 assert(f == truncate_fp((16807 - E::min()) / (E::max() - E::min() + F(1)))); in main()48 assert(f == truncate_fp((16807 - E::min()) / (E::max() - E::min() + F(1)))); in main()55 assert(f == truncate_fp((16807 - E::min()) / (E::max() - E::min() + F(1)))); in main()63 assert(f == truncate_fp((16807 - E::min()) / (E::max() - E::min() + F(1)))); in main()70 assert(f == truncate_fp((16807 - E::min()) / (E::max() - E::min() + F(1)))); in main()77 assert(f == truncate_fp( in main()87 assert(f == truncate_fp( in main()97 assert(f == truncate_fp( in main()
27 assert(f == truncate_fp((16807 - E::min()) / (static_cast<F>(E::max() - E::min()) + F(1)))); in main()34 assert(f == truncate_fp((16807 - E::min()) / (static_cast<F>(E::max() - E::min()) + F(1)))); in main()41 assert(f == truncate_fp((16807 - E::min()) / (static_cast<F>(E::max() - E::min()) + F(1)))); in main()48 assert(f == truncate_fp((16807 - E::min()) / (static_cast<F>(E::max() - E::min()) + F(1)))); in main()55 assert(f == truncate_fp((16807 - E::min()) / (static_cast<F>(E::max() - E::min()) + F(1)))); in main()63 assert(f == truncate_fp((16807 - E::min()) / (static_cast<F>(E::max() - E::min()) + F(1)))); in main()70 assert(f == truncate_fp((16807 - E::min()) / (static_cast<F>(E::max() - E::min()) + F(1)))); in main()77 assert(f == truncate_fp( in main()87 assert(f == truncate_fp( in main()97 assert(f == truncate_fp( in main()
9 inline long double truncate_fp(long double val) { in truncate_fp() function14 inline double truncate_fp(double val) { in truncate_fp() function19 inline float truncate_fp(float val) { in truncate_fp() function
10 inline long double truncate_fp(long double val) { in truncate_fp() function15 inline double truncate_fp(double val) { in truncate_fp() function20 inline float truncate_fp(float val) { in truncate_fp() function
44 assert(s1 / s2 == truncate_fp(20./3)); in main()
45 assert(s1 / s2 == truncate_fp(20./3)); in main()
866 assert(truncate_fp(cbrt(1)) == 1); in test_cbrt()
834 assert(truncate_fp(cbrt(1)) == 1); in test_cbrt()
864 assert(truncate_fp(std::cbrt(1)) == 1); in test_cbrt()
902 assert(truncate_fp(std::cbrt(1)) == 1); in test_cbrt()