aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/litmus/fpmath.h2
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__
22static const fp_t LITMUS_FP_ZERO = {.val = 0}; 23static const fp_t LITMUS_FP_ZERO = {.val = 0};
23static const fp_t LITMUS_FP_ONE = {.val = (1 << FP_SHIFT)}; 24static const fp_t LITMUS_FP_ONE = {.val = (1 << FP_SHIFT)};
25#endif
24 26
25static inline fp_t FP(fpbuf_t x) 27static inline fp_t FP(fpbuf_t x)
26{ 28{