summaryrefslogtreecommitdiff
path: root/zephyr/shim/include/fpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/include/fpu.h')
-rw-r--r--zephyr/shim/include/fpu.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/zephyr/shim/include/fpu.h b/zephyr/shim/include/fpu.h
index 20df108b87..d1e4460827 100644
--- a/zephyr/shim/include/fpu.h
+++ b/zephyr/shim/include/fpu.h
@@ -16,7 +16,7 @@
* This code is taken from core/cortex-m/include/fpu.h
*/
-#ifdef CONFIG_FPU
+#ifdef CONFIG_PLATFORM_EC_FPU
/* Implementation for Cortex-M */
#ifdef CONFIG_CPU_CORTEX_M
@@ -55,12 +55,10 @@ static inline float fabsf(float v)
__asm__("fabs.s %0, %1" : "=f"(abs) : "f"(v));
return abs;
}
-#elif CONFIG_BOARD_NATIVE_POSIX
-#include <math.h>
#else
#error "Unsupported core: please add an implementation"
#endif
-#endif /* CONFIG_FPU */
+#endif /* CONFIG_PLATFORM_EC_FPU */
#endif /* __CROS_EC_MATH_H */