From cd2c37c979fa19e93ded9e0ed545787271ec0de2 Mon Sep 17 00:00:00 2001 From: Chris Metcalf Date: Mon, 29 Dec 2014 19:48:43 -0500 Subject: tile: prefer inlines to macros in math_private.h. --- sysdeps/tile/math_private.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/tile/math_private.h b/sysdeps/tile/math_private.h index 46b9a91..a58eafa 100644 --- a/sysdeps/tile/math_private.h +++ b/sysdeps/tile/math_private.h @@ -27,9 +27,11 @@ #define feraiseexcept(excepts) ({ 0; }) #define feclearexcept(exc) ({ 0; }) -#define fegetenv(env) ({ (void) (env); 0; }) -#define fesetenv(env) ({ (void) (env); 0; }) -#define feupdateenv(env) ({ (void) (env); 0; }) -#define fegetround() ({ FE_TONEAREST; }) +#define fetestexcept(exc) ({ 0; }) +extern inline int fegetenv (fenv_t *__e) { return 0; } +extern inline int fesetenv (const fenv_t *__e) { return 0; } +extern inline int feupdateenv (const fenv_t *__e) { return 0; } +extern inline int fegetround (void) { return FE_TONEAREST; } +extern inline int fesetround (int __d) { return 0; } #endif -- cgit v1.1