From c3b18b10961253b7902436879d2d40cfa1b56087 Mon Sep 17 00:00:00 2001 From: Tony Kelman Date: Sat, 27 Feb 2016 02:32:03 -0800 Subject: [PATCH] Revert "Fix #35" This reverts commit 8b3b52067563a5a212a7fbacf360907fe2dc5e57. This was causing dllexport-related errors on win64 --- include/openlibm_fenv_amd64.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/include/openlibm_fenv_amd64.h b/include/openlibm_fenv_amd64.h index df3ceab..4a78588 100644 --- a/include/openlibm_fenv_amd64.h +++ b/include/openlibm_fenv_amd64.h @@ -95,7 +95,7 @@ extern const fenv_t __fe_dfl_env; #define __ldmxcsr(__csr) __asm __volatile("ldmxcsr %0" : : "m" (__csr)) #define __stmxcsr(__csr) __asm __volatile("stmxcsr %0" : "=m" (*(__csr))) -__fenv_static __attribute__((always_inline)) DLLEXPORT inline int +__fenv_static __attribute__((always_inline)) inline int feclearexcept(int __excepts) { fenv_t __env; @@ -113,7 +113,7 @@ feclearexcept(int __excepts) return (0); } -__fenv_static DLLEXPORT inline int +__fenv_static inline int fegetexceptflag(fexcept_t *__flagp, int __excepts) { uint32_t __mxcsr; @@ -125,10 +125,10 @@ fegetexceptflag(fexcept_t *__flagp, int __excepts) return (0); } -DLLEXPORT int fesetexceptflag(const fexcept_t *__flagp, int __excepts); -DLLEXPORT int feraiseexcept(int __excepts); +int fesetexceptflag(const fexcept_t *__flagp, int __excepts); +int feraiseexcept(int __excepts); -__fenv_static __attribute__((always_inline)) DLLEXPORT inline int +__fenv_static __attribute__((always_inline)) inline int fetestexcept(int __excepts) { uint32_t __mxcsr; @@ -139,7 +139,7 @@ fetestexcept(int __excepts) return ((__status | __mxcsr) & __excepts); } -__fenv_static DLLEXPORT inline int +__fenv_static inline int fegetround(void) { uint16_t __control; @@ -154,7 +154,7 @@ fegetround(void) return (__control & _ROUND_MASK); } -__fenv_static DLLEXPORT inline int +__fenv_static inline int fesetround(int __round) { uint32_t __mxcsr; @@ -176,10 +176,10 @@ fesetround(int __round) return (0); } -DLLEXPORT int fegetenv(fenv_t *__envp); -DLLEXPORT int feholdexcept(fenv_t *__envp); +int fegetenv(fenv_t *__envp); +int feholdexcept(fenv_t *__envp); -__fenv_static DLLEXPORT inline int +__fenv_static inline int fesetenv(const fenv_t *__envp) { @@ -196,15 +196,15 @@ fesetenv(const fenv_t *__envp) return (0); } -DLLEXPORT int feupdateenv(const fenv_t *__envp); +int feupdateenv(const fenv_t *__envp); #if __BSD_VISIBLE -DLLEXPORT int feenableexcept(int __mask); -DLLEXPORT int fedisableexcept(int __mask); +int feenableexcept(int __mask); +int fedisableexcept(int __mask); /* We currently provide no external definition of fegetexcept(). */ -static inline DLLEXPORT int +static inline int fegetexcept(void) { uint16_t __control;