File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
include/boost/decimal/detail/cmath Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ constexpr auto atan_impl(T x) noexcept
5353 {
5454 const bool is_smallish { x <= T { 6 } };
5555
56- // The portion of the algorithm for arc-tangent of large-valued argument
57- // is based on Chapter 11, page 194 of Cody and Waite, "Software Manual
56+ // The portion of the algorithm for arc-tangent regarding scaling large-valued
57+ // argument is based on Chapter 11, page 194 of Cody and Waite, "Software Manual
5858 // for the Elementary Functions", Prentice Hall, 1980.
5959
6060 const T
@@ -65,8 +65,6 @@ constexpr auto atan_impl(T x) noexcept
6565 : x
6666 };
6767
68- constexpr T my_pi_over_six { numbers::pi_v<T> / static_cast <int >(INT8_C (6 )) };
69-
7068 constexpr T half { 5 , -1 };
7169 constexpr T three_halves { 15 , -1 };
7270
@@ -80,6 +78,8 @@ constexpr auto atan_impl(T x) noexcept
8078
8179 if (!is_smallish)
8280 {
81+ constexpr T my_pi_over_six { numbers::pi_v<T> / static_cast <int >(INT8_C (6 )) };
82+
8383 result += my_pi_over_six;
8484 }
8585 }
You can’t perform that action at this time.
0 commit comments