remove exceptional handling for the performance.
while (x++ < x2) {
uu = (int) u;
vv = (int) v;
while (x++ < x2) {
uu = (int) u;
vv = (int) v;
- /* FIXME: sometimes u and v are < 0 - don'tc crash */
- if (uu < 0) uu = 0;
- if (vv < 0) vv = 0;
-
- /* Range exception handling */
- /* OPTIMIZE ME, handle in advance? */
- if (uu >= sw) uu = sw - 1;
- if (vv >= sh) vv = sh - 1;
ar = (int)(255 * (1 - modff(u, &iptr)));
ab = (int)(255 * (1 - modff(v, &iptr)));
ar = (int)(255 * (1 - modff(u, &iptr)));
ab = (int)(255 * (1 - modff(v, &iptr)));