localedata: Once again correct and regenerate i18n_ctype.
[glibc.git] / sysdeps / tile / math_private.h
blob99daec4093d15fb092f86fe8fa7a1c75c3c465a3
1 #ifndef TILE_MATH_PRIVATE_H
2 #define TILE_MATH_PRIVATE_H 1
4 /* Internally, we suppress any use of exception or rounding other
5 than what is supported by the hardware. This does mean that some
6 code will silently fail to report exceptions, set rounding mode
7 as expected, etc., but it allows math code to compile that otherwise
8 wouldn't (such as math/s_fma.c) and so is valuable.
10 We intentionally ignore the "exception" arguments of functions that
11 take an exception, since we can't even evaluate the argument
12 without causing a build failure. The extra level of statement
13 expression wrapping avoids "statement with no effect" warnings.
14 Since the callers don't check for errors anyway, we just claim
15 success in every case.
17 The overrides for libc_ functions must happen before we include
18 the generic math_private.h, and the overrides for regular
19 <fenv.h> functions must happen afterwards, to avoid clashing with
20 the declarations of those functions. */
22 #define libc_fesetround(rnd) ({ 0; })
23 #define libc_fetestexcept(exc) ({ 0; })
24 #define libc_feholdexcept_setround(env, exc) ({ (void) (env); 0; })
25 #define libc_feupdateenv_test(env, exc) ({ (void) (env); 0; })
27 #include_next <math_private.h>
29 #define feraiseexcept(excepts) ({ 0; })
30 #define __feraiseexcept(excepts) ({ 0; })
31 #define feclearexcept(exc) ({ 0; })
32 #define fetestexcept(exc) ({ 0; })
33 extern inline int fegetenv (fenv_t *__e) { return 0; }
34 extern inline int __fegetenv (fenv_t *__e) { return 0; }
35 extern inline int fesetenv (const fenv_t *__e) { return 0; }
36 extern inline int __fesetenv (const fenv_t *__e) { return 0; }
37 extern inline int feupdateenv (const fenv_t *__e) { return 0; }
38 extern inline int __feupdateenv (const fenv_t *__e) { return 0; }
39 extern inline int fegetround (void) { return FE_TONEAREST; }
40 extern inline int __fegetround (void) { return FE_TONEAREST; }
41 extern inline int fesetround (int __d) { return 0; }
42 extern inline int __fesetround (int __d) { return 0; }
44 #endif