diff options
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 */ |