diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-04-27 19:52:34 -0400 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-04-27 19:52:34 -0400 |
commit | af6eeb156c7da47ff5df03a3da04432c8ac4460c (patch) | |
tree | fd141359332b95dcb2260cbf3704c70c32f96e68 /include/litmus/fpmath.h | |
parent | 52056e94a94517e250f7f4e36e7470a4b002404e (diff) |
fix minor bugs. there is still a bug in GEDF PAI.
Diffstat (limited to 'include/litmus/fpmath.h')
-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 | { |