summaryrefslogtreecommitdiff
path: root/src/smooth
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2017-06-09 11:21:58 +0200
committerWerner Lemberg <wl@gnu.org>2017-06-09 11:21:58 +0200
commitdcd8de272f940065b6a326b16518e3e5acb695a6 (patch)
tree4e811d7e300b368871c676a44005f554d4a0cf53 /src/smooth
parent7bffeacd7ef77d050e8bcbbc4e4ab761fa7861b9 (diff)
downloadfreetype2-dcd8de272f940065b6a326b16518e3e5acb695a6.tar.gz
*/*: Remove `OVERFLOW_' prefix.
This increases readability.
Diffstat (limited to 'src/smooth')
-rw-r--r--src/smooth/ftgrays.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index 04f0c2ab3..df645e66c 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -141,11 +141,11 @@
#define FT_INT_MAX INT_MAX
#define FT_ULONG_MAX ULONG_MAX
-#define OVERFLOW_ADD_LONG( a, b ) \
+#define ADD_LONG( a, b ) \
(long)( (unsigned long)(a) + (unsigned long)(b) )
-#define OVERFLOW_SUB_LONG( a, b ) \
+#define SUB_LONG( a, b ) \
(long)( (unsigned long)(a) - (unsigned long)(b) )
-#define OVERFLOW_MUL_LONG( a, b ) \
+#define MUL_LONG( a, b ) \
(long)( (unsigned long)(a) * (unsigned long)(b) )
#define NEG_LONG( a ) \
(long)( -(unsigned long)(a) )
@@ -1146,8 +1146,7 @@ typedef ptrdiff_t FT_PtrDist;
/* s is L * the perpendicular distance from P1 to the line P0-P3. */
dx1 = arc[1].x - arc[0].x;
dy1 = arc[1].y - arc[0].y;
- s = FT_ABS( OVERFLOW_SUB_LONG( OVERFLOW_MUL_LONG( dy, dx1 ),
- OVERFLOW_MUL_LONG( dx, dy1 ) ) );
+ s = FT_ABS( SUB_LONG( MUL_LONG( dy, dx1 ), MUL_LONG( dx, dy1 ) ) );
if ( s > s_limit )
goto Split;
@@ -1155,8 +1154,7 @@ typedef ptrdiff_t FT_PtrDist;
/* s is L * the perpendicular distance from P2 to the line P0-P3. */
dx2 = arc[2].x - arc[0].x;
dy2 = arc[2].y - arc[0].y;
- s = FT_ABS( OVERFLOW_SUB_LONG( OVERFLOW_MUL_LONG( dy, dx2 ),
- OVERFLOW_MUL_LONG( dx, dy2 ) ) );
+ s = FT_ABS( SUB_LONG( MUL_LONG( dy, dx2 ), MUL_LONG( dx, dy2 ) ) );
if ( s > s_limit )
goto Split;