Make sum() macro a little easier to understand

This commit is contained in:
Neale Pickett 2008-04-21 12:19:22 -06:00
parent b2700f61e9
commit 6e5a49de25
1 changed files with 1 additions and 1 deletions

View File

@ -34,8 +34,8 @@
#define sum(a, b, v, m) \ #define sum(a, b, v, m) \
if (b < -v) { \ if (b < -v) { \
a = -1 * (b + v); \
v *= -1; \ v *= -1; \
a = v - b; \
} else if (m - b <= v) { \ } else if (m - b <= v) { \
v *= -1; \ v *= -1; \
a = m - (m - b) + v; \ a = m - (m - b) + v; \