| 678 | |
| 679 | template<typename T> |
| 680 | void test_asin_impl(float asin_max) { |
| 681 | FL_CHECK_CLOSE(T::asin(T(0.0f)).to_float(), 0.0f, asin_max); |
| 682 | FL_CHECK_CLOSE(T::asin(T(1.0f)).to_float(), 1.5708f, asin_max); |
| 683 | FL_CHECK_CLOSE(T::asin(T(0.5f)).to_float(), 0.5236f, asin_max); |
| 684 | } |
| 685 | |
| 686 | template<typename T> |
| 687 | void test_acos_impl(float acos_max) { |