diff options
author | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-05-26 22:04:20 +0200 |
---|---|---|
committer | David Monniaux <david.monniaux@univ-grenoble-alpes.fr> | 2020-05-26 22:04:20 +0200 |
commit | b4a08d0815342b6238d307864f0823d0f07bb691 (patch) | |
tree | 85f48254ca79a6e2bc9d7359017a5731f98f897f /runtime/include | |
parent | 490a6caea1a95cfdbddf7aca244fa6a1c83aa9a2 (diff) | |
download | compcert-kvx-b4a08d0815342b6238d307864f0823d0f07bb691.tar.gz compcert-kvx-b4a08d0815342b6238d307864f0823d0f07bb691.zip |
k1c -> kvx changes
Diffstat (limited to 'runtime/include')
-rw-r--r-- | runtime/include/ccomp_kvx_fixes.h (renamed from runtime/include/ccomp_k1c_fixes.h) | 16 | ||||
-rw-r--r-- | runtime/include/math.h | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/runtime/include/ccomp_k1c_fixes.h b/runtime/include/ccomp_kvx_fixes.h index c884ae23..65d65e7b 100644 --- a/runtime/include/ccomp_k1c_fixes.h +++ b/runtime/include/ccomp_kvx_fixes.h @@ -16,8 +16,8 @@ #ifndef __CCOMP_KIC_FIXES_H #define __CCOMP_KIC_FIXES_H -#if ! (defined(__COMPCERT__) && defined (__K1C__)) -#error This header is solely for CompCert on K1C +#if ! (defined(__COMPCERT__) && defined (__KVX__)) +#error This header is solely for CompCert on KVX #endif #undef __GNUC__ @@ -27,19 +27,19 @@ struct __int128_ccomp { long __int128_ccomp_low; long __int128_ccomp_high; }; #define __int128 struct __int128_ccomp -#define __builtin_k1_acswapd __compcert_acswapd +#define __builtin_kvx_acswapd __compcert_acswapd extern __int128 __compcert_acswapd(void *address, unsigned long long new_value, unsigned long long old_value); -#define __builtin_k1_acswapw __compcert_acswapw +#define __builtin_kvx_acswapw __compcert_acswapw extern __int128 __compcert_acswapw(void *address, unsigned long long new_value, unsigned long long old_value); -#define __builtin_k1_afaddd __compcert_afaddd +#define __builtin_kvx_afaddd __compcert_afaddd extern long long __compcert_afaddd(void *address, unsigned long long incr); -#define __builtin_k1_afaddw __compcert_afaddw +#define __builtin_kvx_afaddw __compcert_afaddw extern int __compcert_afaddw(void *address, unsigned int incr); #endif /* #define __builtin_expect(x, y) (x) */ -#define __builtin_ctz(x) __builtin_k1_ctzw(x) -#define __builtin_clz(x) __builtin_k1_clzw(x) +#define __builtin_ctz(x) __builtin_kvx_ctzw(x) +#define __builtin_clz(x) __builtin_kvx_clzw(x) diff --git a/runtime/include/math.h b/runtime/include/math.h index 422787e1..e7c9e475 100644 --- a/runtime/include/math.h +++ b/runtime/include/math.h @@ -15,7 +15,7 @@ #ifndef _COMPCERT_MATH_H #define _COMPCERT_MATH_H -#ifdef __K1C__ +#ifdef __KVX__ #define isfinite(__y) (fpclassify((__y)) >= FP_ZERO) |