ref: 6f20dd505f5847eb3d808a6ddb58a7756cbb225e
parent: 9f051a7fa46417f59b56691ef21a372ba2847997
author: Werner Lemberg <[email protected]>
date: Wed Nov 26 03:24:08 EST 2003
* src/base/ftcalc.c, include/freetype/internal/ftcalc.h (FT_MulDiv_No_Round): Surround code with `#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER ... #endif'.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-11-25 Werner Lemberg <[email protected]>
+
+ * 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 <[email protected]>
* src/base/ftcalc.c (FT_MulDiv_No_Round): New function (32 and
--- a/include/freetype/internal/ftcalc.h
+++ b/include/freetype/internal/ftcalc.h
@@ -60,6 +60,8 @@
/*************************************************************************/
+#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
+
/*************************************************************************/
/* */
/* <Function> */
@@ -87,6 +89,8 @@
FT_MulDiv_No_Round( FT_Long a,
FT_Long b,
FT_Long c );
+
+#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
#define INT_TO_F26DOT6( x ) ( (FT_Long)(x) << 6 )
--- 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,7 +179,9 @@
return ( s > 0 ) ? d : -d;
}
+#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
+
/* documentation is in freetype.h */
FT_EXPORT_DEF( FT_Long )
@@ -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,
@@ -378,6 +384,8 @@
return ( s < 0 ? -a : a );
}
+
+#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
/* documentation is in freetype.h */