mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 01:34:24 +03:00
Change geometry chunk size
This commit is contained in:
parent
a2a2d8d716
commit
b8789e6815
|
@ -5,7 +5,7 @@
|
||||||
Rotating in chunks that fit in the cache can speed up rotation
|
Rotating in chunks that fit in the cache can speed up rotation
|
||||||
8x on a modern CPU. A chunk size of 128 requires only 65k and is large enough
|
8x on a modern CPU. A chunk size of 128 requires only 65k and is large enough
|
||||||
that the overhead from the extra loops are not apparent. */
|
that the overhead from the extra loops are not apparent. */
|
||||||
#define ROTATE_CHUNK 128
|
#define ROTATE_CHUNK 16
|
||||||
|
|
||||||
#define COORD(v) ((v) < 0.0 ? -1 : ((int)(v)))
|
#define COORD(v) ((v) < 0.0 ? -1 : ((int)(v)))
|
||||||
#define FLOOR(v) ((v) < 0.0 ? ((int)floor(v)) : ((int)(v)))
|
#define FLOOR(v) ((v) < 0.0 ? ((int)floor(v)) : ((int)(v)))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user