Skip to content

Commit 18f475d

Browse files
committed
add DLLEXPORT to i387 and amd64 assembly (win32 target) and ld80/ld128 files
1 parent f7c5ad7 commit 18f475d

12 files changed

Lines changed: 18 additions & 14 deletions

File tree

amd64/bsd_asm.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969

7070
#elif defined(__WIN32__)
7171
#define _ENTRY(x) _START_ENTRY; \
72-
.globl CNAME(x); .def CNAME(x); .scl 2; .type 32; .endef; CNAME(x):
72+
.globl CNAME(x); .section .drectve; .ascii " -export:" #x; \
73+
.section .text; .def CNAME(x); .scl 2; .type 32; .endef; CNAME(x):
7374
#define END(x) .end
7475

7576
#endif

i387/bsd_asm.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282
#define CNAME(csym) _##csym
8383
#define HIDENAME(asmsym) .asmsym
8484
#define _ENTRY(x) _START_ENTRY; \
85-
.globl CNAME(x); .def CNAME(x); .scl 2; .type 32; .endef; CNAME(x):
85+
.globl CNAME(x); .section .drectve; .ascii " -export:" #x; \
86+
.section .text; .def CNAME(x); .scl 2; .type 32; .endef; CNAME(x):
8687
#define END(x) .end
8788
#endif
8889

ld128/k_cosl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ C9 = 0.4110317413744594971475941557607804508039e-18,
4747
C10 = -0.8896592467191938803288521958313920156409e-21,
4848
C11 = 0.1601061435794535138244346256065192782581e-23;
4949

50-
long double
50+
DLLEXPORT long double
5151
__kernel_cosl(long double x, long double y)
5252
{
5353
long double hz,z,r,w;

ld128/k_sinl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ S10 = 0.19572940011906109418080609928334380560135358385256e-19,
4545
S11 = -0.38680813379701966970673724299207480965452616911420e-22,
4646
S12 = 0.64038150078671872796678569586315881020659912139412e-25;
4747

48-
long double
48+
DLLEXPORT long double
4949
__kernel_sinl(long double x, long double y, int iy)
5050
{
5151
long double z,r,v;

ld128/k_tanl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ T53 = 0.0000000015468200913196612, /* 0x1a92fc98c29554.0p-82 */
6161
T55 = -0.00000000061311613386849674, /* -0x151106cbc779a9.0p-83 */
6262
T57 = 1.4912469681508012e-10; /* 0x147edbdba6f43a.0p-85 */
6363

64-
long double
64+
DLLEXPORT long double
6565
__kernel_tanl(long double x, long double y, int iy) {
6666
long double z, r, v, w, s;
6767
long double osign;

ld128/s_exp2l.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
#include "fpmath.h"
3434
#include "openlibm.h"
35+
#include "math_private.h"
3536

3637
#define TBLBITS 7
3738
#define TBLSIZE (1 << TBLBITS)
@@ -353,7 +354,7 @@ static const float eps[TBLSIZE] = {
353354
* Gal, S. and Bachelis, B. An Accurate Elementary Mathematical Library
354355
* for the IEEE Floating Point Standard. TOMS 17(1), 26-46 (1991).
355356
*/
356-
long double
357+
DLLEXPORT long double
357358
exp2l(long double x)
358359
{
359360
union IEEEl2bits u, v;

ld128/s_nanl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
#include "openlibm.h"
3030

3131
#include "fpmath.h"
32-
#include "../src/math_private.h"
32+
#include "math_private.h"
3333

34-
long double
34+
DLLEXPORT long double
3535
nanl(const char *s)
3636
{
3737
union {

ld80/k_cosl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ C5 = 0.0000000020876754400407278, /* 0x11eed8caaeccf1.0p-81 */
6565
C6 = -1.1470297442401303e-11, /* -0x19393412bd1529.0p-89 */
6666
C7 = 4.7383039476436467e-14; /* 0x1aac9d9af5c43e.0p-97 */
6767

68-
long double
68+
DLLEXPORT long double
6969
__kernel_cosl(long double x, long double y)
7070
{
7171
long double hz,z,r,w;

ld80/k_sinl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ S6 = 1.6059006598854211e-10, /* 0x161242b90243b5.0p-85 */
4949
S7 = -7.6429779983024564e-13, /* -0x1ae42ebd1b2e00.0p-93 */
5050
S8 = 2.6174587166648325e-15; /* 0x179372ea0b3f64.0p-101 */
5151

52-
long double
52+
DLLEXPORT long double
5353
__kernel_sinl(long double x, long double y, int iy)
5454
{
5555
long double z,r,v;

ld80/k_tanl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ T29 = 0.0000078293456938132840, /* 0x106b59141a6cb3.0p-69 */
6969
T31 = -0.0000032609076735050182, /* -0x1b5abef3ba4b59.0p-71 */
7070
T33 = 0.0000023261313142559411; /* 0x13835436c0c87f.0p-71 */
7171

72-
long double
72+
DLLEXPORT long double
7373
__kernel_tanl(long double x, long double y, int iy) {
7474
long double z, r, v, w, s;
7575
long double osign;

0 commit comments

Comments
 (0)