Skip to content

Commit f7c5ad7

Browse files
committed
add DLLEXPORT to files in src and int isopenlibm() = 1 function"
1 parent 522eacc commit f7c5ad7

203 files changed

Lines changed: 306 additions & 263 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Make.files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$(CUR_SRCS) = \
1+
$(CUR_SRCS) = common.c \
22
e_acos.c e_acosf.c e_acosh.c e_acoshf.c e_asin.c e_asinf.c \
33
e_atan2.c e_atan2f.c e_atanh.c e_atanhf.c e_cosh.c e_coshf.c e_exp.c \
44
e_expf.c e_fmod.c e_fmodf.c e_gamma.c e_gamma_r.c e_gammaf.c \

src/common.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#include "math_private.h"
2+
DLLEXPORT int isopenlibm() {
3+
return 1;
4+
}

src/e_acos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ qS2 = 2.02094576023350569471e+00, /* 0x40002AE5, 0x9C598AC8 */
6161
qS3 = -6.88283971605453293030e-01, /* 0xBFE6066C, 0x1B8D0159 */
6262
qS4 = 7.70381505559019352791e-02; /* 0x3FB3B8C5, 0xB12E9282 */
6363

64-
double
64+
DLLEXPORT double
6565
__ieee754_acos(double x)
6666
{
6767
double z,p,q,r,w,s,c,df;

src/e_acosf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pS1 = -4.2743422091e-02,
3131
pS2 = -8.6563630030e-03,
3232
qS1 = -7.0662963390e-01;
3333

34-
float
34+
DLLEXPORT float
3535
__ieee754_acosf(float x)
3636
{
3737
float z,p,q,r,w,s,c,df;

src/e_acosh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static const double
3636
one = 1.0,
3737
ln2 = 6.93147180559945286227e-01; /* 0x3FE62E42, 0xFEFA39EF */
3838

39-
double
39+
DLLEXPORT double
4040
__ieee754_acosh(double x)
4141
{
4242
double t;

src/e_acoshf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static const float
2323
one = 1.0,
2424
ln2 = 6.9314718246e-01; /* 0x3f317218 */
2525

26-
float
26+
DLLEXPORT float
2727
__ieee754_acoshf(float x)
2828
{
2929
float t;

src/e_acosl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static const long double
4040
pi = 3.14159265358979323846264338327950280e+00L;
4141
#endif
4242

43-
long double
43+
DLLEXPORT long double
4444
acosl(long double x)
4545
{
4646
union IEEEl2bits u;

src/e_asin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ qS2 = 2.02094576023350569471e+00, /* 0x40002AE5, 0x9C598AC8 */
6767
qS3 = -6.88283971605453293030e-01, /* 0xBFE6066C, 0x1B8D0159 */
6868
qS4 = 7.70381505559019352791e-02; /* 0x3FB3B8C5, 0xB12E9282 */
6969

70-
double
70+
DLLEXPORT double
7171
__ieee754_asin(double x)
7272
{
7373
double t=0.0,w,p,q,c,r,s;

src/e_asinf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ qS1 = -7.0662963390e-01;
3131
static const double
3232
pio2 = 1.570796326794896558e+00;
3333

34-
float
34+
DLLEXPORT float
3535
__ieee754_asinf(float x)
3636
{
3737
double s;

src/e_asinl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ static const long double
3030
one = 1.00000000000000000000e+00,
3131
huge = 1.000e+300;
3232

33-
long double
33+
DLLEXPORT long double
3434
asinl(long double x)
3535
{
3636
union IEEEl2bits u;

0 commit comments

Comments
 (0)