ref: 53c0cb59ed2baa7de418a1e841529a8774be6fb2
parent: ad9d5c972662b4cb890b7859a245a815fa9e6027
author: Werner Lemberg <[email protected]>
date: Fri Jan 11 03:29:22 EST 2013
Typos, whitespace.
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,9 +2,9 @@
[base] Update the overflow protection bit.
- The recent optimizations of CORDIC iterations drastically reduce
- the expansion factor. The vector components with MSB of 29 are now
- safe from overflow.
+ The recent optimizations of CORDIC iterations drastically reduce the
+ expansion factor. Vector components with MSB of 29 are now safe
+ from overflow.
* src/base/fttrigon.c (FT_TRIG_SAFE_MSB): New macro.
(ft_trig_prenorm): Use it and remove dead code.
@@ -264,7 +264,7 @@
The dot product between freeVector and projVector or cosine of
the angle between these FT_F2Dot14 unit vectors used to be scaled up
by 4 and routinely occupied 32 bits in an FT_Long field F_dot_P.
- This patch scales the value down by 2^14 instead, which simplifies
+ This patch scales the value down by 2^14 instead, which simplifies
its use throughout the bytecode interpreter.
This does not lead to the loss of precision because the lower bits
@@ -277,7 +277,7 @@
Besides code simplification, this change can lead to better
performance when FT_MulDiv with the scaled-down F_dot_P is less
likely to use the costly 64-bit path. We are not changing the type
- of F_dot_P to FT_F2Dot14 at this point.
+ of F_dot_P to FT_F2Dot14 at this point.
* src/truetype/ttinterp.c (Compute_Funcs): Scale F_dot_P down by 14
bits and modify its use accordingly.
@@ -483,7 +483,7 @@
[truetype] Cheaper way to threshold angles between vectors.
* src/truetype/ttinterp.c (Ins_ISECT): Thresholding tangent is a lot
- cheaper than thresholding sine.
+ cheaper than thresholding sine.
2012-10-20 Werner Lemberg <[email protected]>
@@ -5520,7 +5520,7 @@
----------------------------------------------------------------------------
-Copyright 2010-2012 by
+Copyright 2010-2013 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used, modified,
--- a/src/base/fttrigon.c
+++ b/src/base/fttrigon.c
@@ -42,8 +42,8 @@
/* the Cordic shrink factor 0.858785336480436 * 2^32 */
#define FT_TRIG_SCALE 0xDBD95B16UL
- /* the highest bit in overflow-safe vectror components,
- MSB of 0.858785336480436 * sqrt(0.5) * 2^30 */
+ /* the highest bit in overflow-safe vector components, */
+ /* MSB of 0.858785336480436 * sqrt(0.5) * 2^30 */
#define FT_TRIG_SAFE_MSB 29
/* this table was generated for FT_PI = 180L << 16, i.e. degrees */