ref: 8ac5c5c8a570fdb9a92e8f811e3ea5b623188ee1
parent: 7f2e4f4f553f6836be7683f66226afac3fa979b8
author: Alexei Podtelezhnikov <[email protected]>
date: Sat Dec 15 18:33:55 EST 2012
[base] Fix 11-year old bug. Since the initial commit (ebe85f59) the value of FT_TRIG_SCALE has always been slightly less than the correct value, which has been given in the comment as a hexadecimal. As a result, vector lengths were underestimated and rotated vectors were shortened.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2012-12-15 Alexei Podtelezhnikov <[email protected]>
+
+ [base] Fix 11-year old bug.
+
+ Since the initial commit (ebe85f59) the value of FT_TRIG_SCALE has
+ always been slightly less than the correct value, which has been
+ given in the comment as a hexadecimal. As a result, vector lengths
+ were underestimated and rotated vectors were shortened.
+
+ * src/base/fttrigon.c (FT_TRIG_SCALE): Fix macro value.
+
2012-12-15 Werner Lemberg <[email protected]>
[bdf] Fix Savannah bug #37907.
--- a/src/base/fttrigon.c
+++ b/src/base/fttrigon.c
@@ -41,7 +41,7 @@
};
/* the Cordic shrink factor, multiplied by 2^32 */
-#define FT_TRIG_SCALE 1166391785UL /* 0x4585BA38UL */
+#define FT_TRIG_SCALE 1166391864UL /* 0x4585BA38UL */
#ifdef FT_LONG64