mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
commit
e32a732787
|
@ -42,7 +42,7 @@
|
|||
#define INK8(ink) (*(UINT8*)ink)
|
||||
|
||||
/*
|
||||
* Rounds around zero (up=away from zero, down=torwards zero)
|
||||
* Rounds around zero (up=away from zero, down=towards zero)
|
||||
* This guarantees that ROUND_UP|DOWN(f) == -ROUND_UP|DOWN(-f)
|
||||
*/
|
||||
#define ROUND_UP(f) ((int) ((f) >= 0.0 ? floor((f) + 0.5F) : -floor(fabs(f) + 0.5F)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user