aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/include
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-03-27 16:53:59 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2020-03-27 16:53:59 +0100
commitb46cdc3ade397a57a7b748946fb58e16e95bf42b (patch)
tree60b603a6f994f601d142be4f6a6f267d2d823086 /runtime/include
parent4dabb8cd9b292bb873155e02e430f79cb43dc629 (diff)
downloadcompcert-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/include')
-rw-r--r--runtime/include/math.h7
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