Skip to content

Commit

Permalink
Mark Sleef_rempitabq* constants as static
Browse files Browse the repository at this point in the history
Without marking it static, it fails to compile when including multiple
sleefinline_*.h into the same compilation unit.
  • Loading branch information
luhenry committed Apr 15, 2024
1 parent 60e76d2 commit b9262ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libm/sleefinline_header.h.org
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#ifndef __SLEEF_REMPITAB__
#define __SLEEF_REMPITAB__
const double Sleef_rempitabdp[] = {
static const double Sleef_rempitabdp[] = {
0.15915494309189531785, 1.7916237278037667488e-17, 2.5454160968749269937e-33, 2.1132476107887107169e-49,
0.03415494309189533173, 4.0384494702232122736e-18, 1.0046721413651383112e-33, 2.1132476107887107169e-49,
0.03415494309189533173, 4.0384494702232122736e-18, 1.0046721413651383112e-33, 2.1132476107887107169e-49,
Expand Down
2 changes: 1 addition & 1 deletion src/quad/sleefquadinline_header.h.org
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#ifndef __SLEEF_QREMPITAB__
#define __SLEEF_QREMPITAB__
const double Sleef_rempitabqp[] = {
static const double Sleef_rempitabqp[] = {
0.15915494308865163475, 114.12758349655632628, 87.820147804392036051, 27.423136899138626177,
14.254027919272630243, 85.935026329207175877, 114.27691102886092267, 37.750191829592949944,
2.4546589403216785286, 111.34725244651053799, 62.908236858707823558, 87.408456635555921821,
Expand Down

0 comments on commit b9262ee

Please sign in to comment.