Auto-generate libc-modules.h
[glibc.git] / sysdeps / tile / math_private.h
blob90dcc3f866951a78e305b15076ec5c96fb558048
1 #ifndef _MATH_PRIVATE_H
3 /* Internally, we suppress any use of exception or rounding other
4 than what is supported by the hardware. This does mean that some
5 code will silently fail to report exceptions, set rounding mode
6 as expected, etc., but it allows math code to compile that otherwise
7 wouldn't (such as math/s_fma.c) and so is valuable.
9 We intentionally ignore the "exception" arguments of functions that
10 take an exception, since we can't even evaluate the argument
11 without causing a build failure. The extra level of statement
12 expression wrapping avoids "statement with no effect" warnings.
13 Since the callers don't check for errors anyway, we just claim
14 success in every case.
16 The overrides for libc_ functions must happen before we include
17 the generic math_private.h, and the overrides for regular
18 <fenv.h> functions must happen afterwards, to avoid clashing with
19 the declarations of those functions. */
21 #define libc_fesetround(rnd) ({ 0; })
22 #define libc_fetestexcept(exc) ({ 0; })
23 #define libc_feholdexcept_setround(env, exc) ({ (void) (env); 0; })
24 #define libc_feupdateenv_test(env, exc) ({ (void) (env); 0; })
26 #include_next <math_private.h>
28 #define feraiseexcept(excepts) ({ 0; })
29 #define feclearexcept(exc) ({ 0; })
31 #endif