diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/litmus/fpmath.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/litmus/fpmath.h b/include/litmus/fpmath.h index ba4121eaa1bf..04d4bcaeae96 100644 --- a/include/litmus/fpmath.h +++ b/include/litmus/fpmath.h | |||
@@ -19,8 +19,10 @@ typedef struct | |||
19 | 19 | ||
20 | #define _fp(x) ((fp_t) {x}) | 20 | #define _fp(x) ((fp_t) {x}) |
21 | 21 | ||
22 | #ifdef __KERNEL__ | ||
22 | static const fp_t LITMUS_FP_ZERO = {.val = 0}; | 23 | static const fp_t LITMUS_FP_ZERO = {.val = 0}; |
23 | static const fp_t LITMUS_FP_ONE = {.val = (1 << FP_SHIFT)}; | 24 | static const fp_t LITMUS_FP_ONE = {.val = (1 << FP_SHIFT)}; |
25 | #endif | ||
24 | 26 | ||
25 | static inline fp_t FP(fpbuf_t x) | 27 | static inline fp_t FP(fpbuf_t x) |
26 | { | 28 | { |