aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2007-10-09 00:01:59 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2007-10-09 00:01:59 -0400
commit1d895bf6cdf45013dc6cd60378c62f89d3c8cf62 (patch)
tree83549072f574090f551712eb9822c6eedbcb3758 /include/linux
parent159a72bf72c406606a32a245a00af5cba327f975 (diff)
adaptive: work-around weird output behavior.
This doesn't do what I want it to do. Display fp_t as fraction instead.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fpmath.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/fpmath.h b/include/linux/fpmath.h
index 9e97eb6991..aeb262e6c5 100644
--- a/include/linux/fpmath.h
+++ b/include/linux/fpmath.h
@@ -13,8 +13,9 @@ static inline long _point(fp_t x)
13 13
14} 14}
15 15
16#define fp2str(x) (x.val / (1 << FP_SHIFT)), (x.val % (1 << FP_SHIFT)) 16#define fp2str(x) x.val
17#define _FP_ "%d%+d/1024" 17/*(x.val >> FP_SHIFT), (x.val % (1 << FP_SHIFT)) */
18#define _FP_ "%ld/1024"
18 19
19 20
20static inline fp_t FP(long x) 21static inline fp_t FP(long x)