From 6f20dd505f5847eb3d808a6ddb58a7756cbb225e Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Wed, 26 Nov 2003 08:24:08 +0000 Subject: [PATCH] * src/base/ftcalc.c, include/freetype/internal/ftcalc.h (FT_MulDiv_No_Round): Surround code with `#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER ... #endif'. --- ChangeLog | 6 ++++++ include/freetype/internal/ftcalc.h | 4 ++++ src/base/ftcalc.c | 8 ++++++++ 3 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index c6c78c478..aeea128fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-11-25 Werner Lemberg + + * src/base/ftcalc.c, include/freetype/internal/ftcalc.h + (FT_MulDiv_No_Round): Surround code with `#ifdef + TT_CONFIG_OPTION_BYTECODE_INTERPRETER ... #endif'. + 2003-11-23 Werner Lemberg * src/base/ftcalc.c (FT_MulDiv_No_Round): New function (32 and diff --git a/include/freetype/internal/ftcalc.h b/include/freetype/internal/ftcalc.h index 73fc5551e..7866c4627 100644 --- a/include/freetype/internal/ftcalc.h +++ b/include/freetype/internal/ftcalc.h @@ -60,6 +60,8 @@ FT_BEGIN_HEADER /*************************************************************************/ +#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER + /*************************************************************************/ /* */ /* */ @@ -88,6 +90,8 @@ FT_BEGIN_HEADER FT_Long b, FT_Long c ); +#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */ + #define INT_TO_F26DOT6( x ) ( (FT_Long)(x) << 6 ) #define INT_TO_F2DOT14( x ) ( (FT_Long)(x) << 14 ) diff --git a/src/base/ftcalc.c b/src/base/ftcalc.c index 82cbcaae3..f801cc438 100644 --- a/src/base/ftcalc.c +++ b/src/base/ftcalc.c @@ -155,6 +155,8 @@ } +#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER + /* documentation is in ftcalc.h */ FT_BASE_DEF( FT_Long ) @@ -177,6 +179,8 @@ return ( s > 0 ) ? d : -d; } +#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */ + /* documentation is in freetype.h */ @@ -347,6 +351,8 @@ } +#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER + FT_BASE_DEF( FT_Long ) FT_MulDiv_No_Round( FT_Long a, FT_Long b, @@ -379,6 +385,8 @@ return ( s < 0 ? -a : a ); } +#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */ + /* documentation is in freetype.h */