From: Hermet Park Date: Fri, 26 Nov 2021 11:05:48 +0000 (+0900) Subject: sw_engine texmap: remove unnecessary conditions. X-Git-Tag: accepted/tizen/unified/20211201.123208~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea55ea8a5fafb075b41a750867c42bf15eb4a420;p=platform%2Fcore%2Fgraphics%2Ftizenvg.git sw_engine texmap: remove unnecessary conditions. remove exceptional handling for the performance. --- diff --git a/src/lib/sw_engine/tvgSwRasterTexmapInternal.h b/src/lib/sw_engine/tvgSwRasterTexmapInternal.h index d7084bc..c30186b 100644 --- a/src/lib/sw_engine/tvgSwRasterTexmapInternal.h +++ b/src/lib/sw_engine/tvgSwRasterTexmapInternal.h @@ -72,14 +72,6 @@ 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)));