diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/include/math.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/include/math.h b/runtime/include/math.h index 805cc8e7..07feb14d 100644 --- a/runtime/include/math.h +++ b/runtime/include/math.h @@ -3,5 +3,14 @@ #define isfinite(__y) (fpclassify((__y)) >= FP_ZERO) +#ifndef COMPCERT_NO_FP_MACROS +#define fmin(x, y) __builtin_fmin((x),(y)) +#define fmax(x, y) __builtin_fmax((x),(y)) +#define fminf(x, y) __builtin_fminf((x),(y)) +#define fmaxf(x, y) __builtin_fmaxf((x),(y)) +#define fabs(x) __builtin_fabs((x)) +#define fabsf(x) __builtin_fabsf((x)) +#endif + #include_next <math.h> #endif |