diff options
Diffstat (limited to 'zephyr/shim')
-rw-r--r-- | zephyr/shim/include/fpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/shim/include/fpu.h b/zephyr/shim/include/fpu.h index d1e4460827..02e6a7c5f4 100644 --- a/zephyr/shim/include/fpu.h +++ b/zephyr/shim/include/fpu.h @@ -55,6 +55,8 @@ 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 |