Skip to content

Commit 7031f25

Browse files
committed
Adjust trig range reduction table size.
1 parent ef73fac commit 7031f25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libc/src/math/generic/range_reduction_double_fma.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ LIBC_INLINE unsigned LargeRangeReduction::fast(double x, DoubleDouble &u) {
8080
// b = D(sin(k * pi/128) - a);
8181
// print("{", b, ",", a, "},");
8282
// };
83-
LIBC_INLINE constexpr DoubleDouble SIN_K_PI_OVER_128[256] = {
83+
LIBC_INLINE constexpr DoubleDouble SIN_K_PI_OVER_128[] = {
8484
{0, 0},
8585
{-0x1.b1d63091a013p-64, 0x1.92155f7a3667ep-6},
8686
{-0x1.912bd0d569a9p-61, 0x1.91f65f10dd814p-5},

libc/src/math/generic/range_reduction_double_nofma.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ LIBC_INLINE unsigned LargeRangeReduction::fast(double x, DoubleDouble &u) {
8181
// b = round(sin(k * pi/128) - a, D, RN);
8282
// print("{", b, ",", a, "},");
8383
// };
84-
LIBC_INLINE constexpr DoubleDouble SIN_K_PI_OVER_128[256] = {
84+
LIBC_INLINE constexpr DoubleDouble SIN_K_PI_OVER_128[] = {
8585
{0, 0},
8686
{0x1.f938a73db97fbp-58, 0x1.92155f7a3667cp-6},
8787
{-0x1.912bd0d569a9p-61, 0x1.91f65f10dd814p-5},

0 commit comments

Comments
 (0)