Skip to content

Commit b12ff3f

Browse files
committed
remove unused extern consts
1 parent c1e5791 commit b12ff3f

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

libc/src/__support/math/exp10f_utils.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -105,20 +105,6 @@ struct Exp10Base : public ExpBase {
105105
}
106106
};
107107

108-
constexpr int LOG_P1_BITS = 6;
109-
constexpr int LOG_P1_SIZE = 1 << LOG_P1_BITS;
110-
111-
// N[Table[Log[2, 1 + x], {x, 0/64, 63/64, 1/64}], 40]
112-
extern const double LOG_P1_LOG2[LOG_P1_SIZE];
113-
114-
// N[Table[1/(1 + x), {x, 0/64, 63/64, 1/64}], 40]
115-
extern const double LOG_P1_1_OVER[LOG_P1_SIZE];
116-
117-
// Taylor series expansion for Log[2, 1 + x] splitted to EVEN AND ODD numbers
118-
// K_LOG2_ODD starts from x^3
119-
extern const double K_LOG2_ODD[4];
120-
extern const double K_LOG2_EVEN[4];
121-
122108
// Output of range reduction for exp_b: (2^(mid + hi), lo)
123109
// where:
124110
// b^x = 2^(mid + hi) * b^lo

libc/src/math/generic/explogxf.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,20 @@
1818

1919
namespace LIBC_NAMESPACE_DECL {
2020

21+
constexpr int LOG_P1_BITS = 6;
22+
constexpr int LOG_P1_SIZE = 1 << LOG_P1_BITS;
23+
24+
// N[Table[Log[2, 1 + x], {x, 0/64, 63/64, 1/64}], 40]
25+
extern const double LOG_P1_LOG2[LOG_P1_SIZE];
26+
27+
// N[Table[1/(1 + x), {x, 0/64, 63/64, 1/64}], 40]
28+
extern const double LOG_P1_1_OVER[LOG_P1_SIZE];
29+
30+
// Taylor series expansion for Log[2, 1 + x] splitted to EVEN AND ODD numbers
31+
// K_LOG2_ODD starts from x^3
32+
extern const double K_LOG2_ODD[4];
33+
extern const double K_LOG2_EVEN[4];
34+
2135
// The function correctly calculates sinh(x) and cosh(x) by calculating exp(x)
2236
// and exp(-x) simultaneously.
2337
// To compute e^x, we perform the following range

0 commit comments

Comments
 (0)