diff options
-rw-r--r-- | builtin/math.h | 11 | ||||
-rw-r--r-- | core/cortex-m/include/fpu.h (renamed from core/cortex-m/include/math.h) | 6 | ||||
-rw-r--r-- | core/cortex-m0/include/fpu.h (renamed from core/cortex-m0/include/math.h) | 6 | ||||
-rw-r--r-- | core/minute-ia/include/fpu.h (renamed from core/minute-ia/include/math.h) | 6 | ||||
-rw-r--r-- | core/nds32/include/fpu.h (renamed from core/nds32/include/math.h) | 6 | ||||
-rw-r--r-- | core/riscv-rv32i/include/fpu.h (renamed from core/riscv-rv32i/include/math.h) | 6 | ||||
-rw-r--r-- | zephyr/shim/include/fpu.h | 2 |
7 files changed, 27 insertions, 16 deletions
diff --git a/builtin/math.h b/builtin/math.h new file mode 100644 index 0000000000..30a8849bd6 --- /dev/null +++ b/builtin/math.h @@ -0,0 +1,11 @@ +/* Copyright 2021 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef __CROS_EC_MATH_H__ +#define __CROS_EC_MATH_H__ + +#include "fpu.h" + +#endif /* __CROS_EC_MATH_H__ */ diff --git a/core/cortex-m/include/math.h b/core/cortex-m/include/fpu.h index 1b336eb2aa..0949d336e2 100644 --- a/core/cortex-m/include/math.h +++ b/core/cortex-m/include/fpu.h @@ -5,8 +5,8 @@ /* Math utility functions for ARMv7 */ -#ifndef __CROS_EC_MATH_H -#define __CROS_EC_MATH_H +#ifndef __CROS_EC_FPU_H +#define __CROS_EC_FPU_H #ifdef CONFIG_FPU static inline float sqrtf(float v) @@ -32,4 +32,4 @@ static inline float fabsf(float v) } #endif /* CONFIG_FPU */ -#endif /* __CROS_EC_MATH_H */ +#endif /* __CROS_EC_FPU_H */ diff --git a/core/cortex-m0/include/math.h b/core/cortex-m0/include/fpu.h index 4c8955e74d..3acec557a7 100644 --- a/core/cortex-m0/include/math.h +++ b/core/cortex-m0/include/fpu.h @@ -5,7 +5,7 @@ /* Math utility functions for ARMv6-M */ -#ifndef __CROS_EC_MATH_H -#define __CROS_EC_MATH_H +#ifndef __CROS_EC_FPU_H +#define __CROS_EC_FPU_H -#endif /* __CROS_EC_MATH_H */ +#endif /* __CROS_EC_FPU_H */ diff --git a/core/minute-ia/include/math.h b/core/minute-ia/include/fpu.h index 00f73ccaa1..fbcc7ae0f0 100644 --- a/core/minute-ia/include/math.h +++ b/core/minute-ia/include/fpu.h @@ -5,8 +5,8 @@ /* Math utility functions for minute-IA */ -#ifndef __CROS_EC_MATH_H -#define __CROS_EC_MATH_H +#ifndef __CROS_EC_FPU_H +#define __CROS_EC_FPU_H #include "config.h" @@ -238,4 +238,4 @@ static inline int __isinff(float v) } #endif /* CONFIG_FPU */ -#endif /* __CROS_EC_MATH_H */ +#endif /* __CROS_EC_FPU_H */ diff --git a/core/nds32/include/math.h b/core/nds32/include/fpu.h index 49d5585657..4f3efc2e5a 100644 --- a/core/nds32/include/math.h +++ b/core/nds32/include/fpu.h @@ -5,10 +5,10 @@ /* Math utility functions for N8 */ -#ifndef __CROS_EC_MATH_H -#define __CROS_EC_MATH_H +#ifndef __CROS_EC_FPU_H +#define __CROS_EC_FPU_H float sqrtf(float x); float fabsf(float x); -#endif /* __CROS_EC_MATH_H */ +#endif /* __CROS_EC_FPU_H */ diff --git a/core/riscv-rv32i/include/math.h b/core/riscv-rv32i/include/fpu.h index f17144762a..25d83f228f 100644 --- a/core/riscv-rv32i/include/math.h +++ b/core/riscv-rv32i/include/fpu.h @@ -5,9 +5,9 @@ /* Math utility functions for RISC-V */ -#ifndef __CROS_EC_MATH_H -#define __CROS_EC_MATH_H +#ifndef __CROS_EC_FPU_H +#define __CROS_EC_FPU_H float sqrtf(float x); -#endif /* __CROS_EC_MATH_H */ +#endif /* __CROS_EC_FPU_H */ diff --git a/zephyr/shim/include/fpu.h b/zephyr/shim/include/fpu.h index a66d6a886c..da36f50492 100644 --- a/zephyr/shim/include/fpu.h +++ b/zephyr/shim/include/fpu.h @@ -13,7 +13,7 @@ * This file is not called math.h to avoid a conflict with the toolchain's * built-in version. * - * This code is taken from core/cortex-m/include/math.h + * This code is taken from core/cortex-m/include/fpu.h */ #ifdef CONFIG_PLATFORM_EC_FPU |