diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-03-27 16:53:59 +0100 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-03-27 16:53:59 +0100 |
commit | b46cdc3ade397a57a7b748946fb58e16e95bf42b (patch) | |
tree | 60b603a6f994f601d142be4f6a6f267d2d823086 /runtime | |
parent | 4dabb8cd9b292bb873155e02e430f79cb43dc629 (diff) | |
download | compcert-kvx-b46cdc3ade397a57a7b748946fb58e16e95bf42b.tar.gz compcert-kvx-b46cdc3ade397a57a7b748946fb58e16e95bf42b.zip |
fix broken test Makefile
fix math.h so that it does special things only on K1C
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/include/math.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/include/math.h b/runtime/include/math.h index d6475df1..01b8d8d8 100644 --- a/runtime/include/math.h +++ b/runtime/include/math.h @@ -1,6 +1,8 @@ #ifndef _COMPCERT_MATH_H #define _COMPCERT_MATH_H +#ifdef __K1C__ + #define isfinite(__y) (fpclassify((__y)) >= FP_ZERO) #include_next <math.h> @@ -16,4 +18,9 @@ #define fmaf(x, y, z) __builtin_fmaf((x),(y),(z)) #endif +#else + +#include_next <math.h> + +#endif #endif |