mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
minimize the number of DIVs
This commit is contained in:
parent
8d2cfa9ea0
commit
5d3568f36c
1 changed files with 3 additions and 3 deletions
|
|
@ -993,9 +993,9 @@ do { \
|
|||
const TYPE *src = (const TYPE *)srcImage; \
|
||||
TYPE *dst = (TYPE *)dstImage; \
|
||||
\
|
||||
if ( srcHeight <= dstHeight ) { \
|
||||
if ( srcHeight < dstHeight ) { \
|
||||
const GLint hScale = dstHeight / srcHeight; \
|
||||
if ( srcWidth <= dstWidth ) { \
|
||||
if ( srcWidth < dstWidth ) { \
|
||||
const GLint wScale = dstWidth / srcWidth; \
|
||||
INNER_LOOP( TYPE, /, / ); \
|
||||
} \
|
||||
|
|
@ -1006,7 +1006,7 @@ do { \
|
|||
} \
|
||||
else { \
|
||||
const GLint hScale = srcHeight / dstHeight; \
|
||||
if ( srcWidth <= dstWidth ) { \
|
||||
if ( srcWidth < dstWidth ) { \
|
||||
const GLint wScale = dstWidth / srcWidth; \
|
||||
INNER_LOOP( TYPE, *, / ); \
|
||||
} \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue