diff options
author | David Turner <david@freetype.org> | 2000-09-02 00:20:42 +0000 |
---|---|---|
committer | David Turner <david@freetype.org> | 2000-09-02 00:20:42 +0000 |
commit | a8194a97db5963393baf216fd8e2006942c5d3e1 (patch) | |
tree | 86ff8d698d36117eca455ba2fc4f0764eeb4288b /include/freetype/internal/ftcalc.h | |
parent | 21a27ee3cb5d61f1b8bb6e7977e2eb2f15d4ce35 (diff) | |
download | freetype2-a8194a97db5963393baf216fd8e2006942c5d3e1.tar.gz |
- added a new function called FT_SqrtFixed to compute the
16.16 square root of a 16.16 number (this could come handy
in a later version of the auto-hinter)
- small fixes to the smooth renderer. It used to use way too
much line segments when drawing beziers !!
Diffstat (limited to 'include/freetype/internal/ftcalc.h')
-rw-r--r-- | include/freetype/internal/ftcalc.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/freetype/internal/ftcalc.h b/include/freetype/internal/ftcalc.h index 27b8415eb..45313f3fd 100644 --- a/include/freetype/internal/ftcalc.h +++ b/include/freetype/internal/ftcalc.h @@ -34,9 +34,7 @@ #define ADD_64( x, y, z ) z = (x) + (y) #define MUL_64( x, y, z ) z = (FT_Int64)(x) * (y) - -#define DIV_64( x, y ) ( (x) / (y) ) - +#define DIV_64( x, y ) ((x)/(y)) #ifdef FT_CONFIG_OPTION_OLD_CALCS @@ -62,7 +60,6 @@ #define MUL_64( x, y, z ) FT_MulTo64( x, y, &z ) #define DIV_64( x, y ) FT_Div64by32( &x, y ) - FT_EXPORT_DEF( void ) FT_Add64( FT_Int64* x, FT_Int64* y, FT_Int64* z ); @@ -77,6 +74,8 @@ #ifdef FT_CONFIG_OPTION_OLD_CALCS + FT_EXPORT_DEF(FT_Int32) FT_SqrtFixed( FT_Int32 x ); + #define SQRT_64( z ) FT_Sqrt64( &z ) FT_EXPORT_DEF( FT_Int32 ) FT_Sqrt64( FT_Int64* x ); |