ref: a3754d662652e12da290e504692ac08538bc1dd8
parent: 2ca5b07d4f27a1f1c3be9438c49b41a15a84ff7b
author: Alexei Podtelezhnikov <[email protected]>
date: Wed Feb 1 17:36:16 EST 2017
Comment.
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -341,7 +341,8 @@
/* Compute `dividend / divisor' and return both its quotient and */
/* remainder, cast to a specific type. This macro also ensures that */
- /* the remainder is always positive. */
+ /* the remainder is always positive. We use the remainder to keep */
+ /* track of accumulating errors and compensate for them. */
#define FT_DIV_MOD( type, dividend, divisor, quotient, remainder ) \
FT_BEGIN_STMNT \
(quotient) = (type)( (dividend) / (divisor) ); \