Skip to content

Commit 8b3b520

Browse files
committed
Fix #35
1 parent d64cc36 commit 8b3b520

2 files changed

Lines changed: 16 additions & 21 deletions

File tree

amd64/fenv.h

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
#ifndef _FENV_H_
3030
#define _FENV_H_
3131

32-
#include "include/cdefs-compat.h"
33-
#include "include/types-compat.h"
32+
#include "include/cdefs-compat.h"
33+
#include "include/types-compat.h"
3434

3535
#ifndef __fenv_static
3636
#define __fenv_static static
@@ -93,7 +93,7 @@ extern const fenv_t __fe_dfl_env;
9393
#define __ldmxcsr(__csr) __asm __volatile("ldmxcsr %0" : : "m" (__csr))
9494
#define __stmxcsr(__csr) __asm __volatile("stmxcsr %0" : "=m" (*(__csr)))
9595

96-
__fenv_static __attribute__((always_inline)) inline int
96+
__fenv_static __attribute__((always_inline)) DLLEXPORT inline int
9797
feclearexcept(int __excepts)
9898
{
9999
fenv_t __env;
@@ -111,7 +111,7 @@ feclearexcept(int __excepts)
111111
return (0);
112112
}
113113

114-
__fenv_static inline int
114+
__fenv_static DLLEXPORT inline int
115115
fegetexceptflag(fexcept_t *__flagp, int __excepts)
116116
{
117117
uint32_t __mxcsr;
@@ -123,10 +123,10 @@ fegetexceptflag(fexcept_t *__flagp, int __excepts)
123123
return (0);
124124
}
125125

126-
int fesetexceptflag(const fexcept_t *__flagp, int __excepts);
127-
int feraiseexcept(int __excepts);
126+
DLLEXPORT int fesetexceptflag(const fexcept_t *__flagp, int __excepts);
127+
DLLEXPORT int feraiseexcept(int __excepts);
128128

129-
__fenv_static __attribute__((always_inline)) inline int
129+
__fenv_static __attribute__((always_inline)) DLLEXPORT inline int
130130
fetestexcept(int __excepts)
131131
{
132132
uint32_t __mxcsr;
@@ -137,7 +137,7 @@ fetestexcept(int __excepts)
137137
return ((__status | __mxcsr) & __excepts);
138138
}
139139

140-
__fenv_static inline int
140+
__fenv_static DLLEXPORT inline int
141141
fegetround(void)
142142
{
143143
uint16_t __control;
@@ -152,7 +152,7 @@ fegetround(void)
152152
return (__control & _ROUND_MASK);
153153
}
154154

155-
__fenv_static inline int
155+
__fenv_static DLLEXPORT inline int
156156
fesetround(int __round)
157157
{
158158
uint32_t __mxcsr;
@@ -174,10 +174,10 @@ fesetround(int __round)
174174
return (0);
175175
}
176176

177-
int fegetenv(fenv_t *__envp);
178-
int feholdexcept(fenv_t *__envp);
177+
DLLEXPORT int fegetenv(fenv_t *__envp);
178+
DLLEXPORT int feholdexcept(fenv_t *__envp);
179179

180-
__fenv_static inline int
180+
__fenv_static DLLEXPORT inline int
181181
fesetenv(const fenv_t *__envp)
182182
{
183183

@@ -194,15 +194,15 @@ fesetenv(const fenv_t *__envp)
194194
return (0);
195195
}
196196

197-
int feupdateenv(const fenv_t *__envp);
197+
DLLEXPORT int feupdateenv(const fenv_t *__envp);
198198

199199
#if __BSD_VISIBLE
200200

201-
int feenableexcept(int __mask);
202-
int fedisableexcept(int __mask);
201+
DLLEXPORT int feenableexcept(int __mask);
202+
DLLEXPORT int fedisableexcept(int __mask);
203203

204204
/* We currently provide no external definition of fegetexcept(). */
205-
static inline int
205+
static inline DLLEXPORT int
206206
fegetexcept(void)
207207
{
208208
uint16_t __control;

src/w_cabsf.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
* Placed into the Public Domain, 1994.
66
*/
77

8-
#ifndef lint
9-
static const char rcsid[] =
10-
"$FreeBSD: src/lib/msun/src/w_cabsf.c,v 1.3 2001/06/13 15:16:30 ru Exp $";
11-
#endif /* not lint */
12-
138
#include <complex.h>
149
#include <openlibm.h>
1510
#include "math_private.h"

0 commit comments

Comments
 (0)