diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-11-11 07:15:07 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-11-11 07:15:07 +0100 |
commit | 58de1fff510078e3d2d8cfce033c87299adf78f0 (patch) | |
tree | 80635049b0d1ccc8840717982afe983ea18c0b37 /include/fitz/math.h | |
parent | 2ec725624d637789845478a90f799e9eeb54f9ee (diff) | |
download | mupdf-58de1fff510078e3d2d8cfce033c87299adf78f0.tar.xz |
filter reference counting
Diffstat (limited to 'include/fitz/math.h')
-rw-r--r-- | include/fitz/math.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/fitz/math.h b/include/fitz/math.h index bfc1f8e6..30577691 100644 --- a/include/fitz/math.h +++ b/include/fitz/math.h @@ -7,16 +7,18 @@ static inline unsigned char fz_mul255(unsigned char a, unsigned char b) /* floor / ceil towards/from +/- inf */ static inline float fz_floor(float x) { - if (x > 0) - return floor(x); - return ceil(x); + return floor(x); +// if (x > 0) +// return floor(x); +// return ceil(x); } static inline float fz_ceil(float x) { - if (x > 0) - return ceil(x); - return floor(x); + return ceil(x); +// if (x > 0) +// return ceil(x); +// return floor(x); } /* divide and floor towards -inf */ |