* src/base/ftcalc.c, include/freetype/internal/ftcalc.h
(FT_MulDiv_No_Round): Surround code with `#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER ... #endif'.
This commit is contained in:
parent
9f051a7fa4
commit
6f20dd505f
|
@ -1,3 +1,9 @@
|
||||||
|
2003-11-25 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
* 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 <wl@gnu.org>
|
2003-11-23 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
* src/base/ftcalc.c (FT_MulDiv_No_Round): New function (32 and
|
* src/base/ftcalc.c (FT_MulDiv_No_Round): New function (32 and
|
||||||
|
|
|
@ -60,6 +60,8 @@ FT_BEGIN_HEADER
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
|
||||||
|
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
/* */
|
/* */
|
||||||
/* <Function> */
|
/* <Function> */
|
||||||
|
@ -88,6 +90,8 @@ FT_BEGIN_HEADER
|
||||||
FT_Long b,
|
FT_Long b,
|
||||||
FT_Long c );
|
FT_Long c );
|
||||||
|
|
||||||
|
#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
|
||||||
|
|
||||||
|
|
||||||
#define INT_TO_F26DOT6( x ) ( (FT_Long)(x) << 6 )
|
#define INT_TO_F26DOT6( x ) ( (FT_Long)(x) << 6 )
|
||||||
#define INT_TO_F2DOT14( x ) ( (FT_Long)(x) << 14 )
|
#define INT_TO_F2DOT14( x ) ( (FT_Long)(x) << 14 )
|
||||||
|
|
|
@ -155,6 +155,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
|
||||||
|
|
||||||
/* documentation is in ftcalc.h */
|
/* documentation is in ftcalc.h */
|
||||||
|
|
||||||
FT_BASE_DEF( FT_Long )
|
FT_BASE_DEF( FT_Long )
|
||||||
|
@ -177,6 +179,8 @@
|
||||||
return ( s > 0 ) ? d : -d;
|
return ( s > 0 ) ? d : -d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
|
||||||
|
|
||||||
|
|
||||||
/* documentation is in freetype.h */
|
/* documentation is in freetype.h */
|
||||||
|
|
||||||
|
@ -347,6 +351,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
|
||||||
|
|
||||||
FT_BASE_DEF( FT_Long )
|
FT_BASE_DEF( FT_Long )
|
||||||
FT_MulDiv_No_Round( FT_Long a,
|
FT_MulDiv_No_Round( FT_Long a,
|
||||||
FT_Long b,
|
FT_Long b,
|
||||||
|
@ -379,6 +385,8 @@
|
||||||
return ( s < 0 ? -a : a );
|
return ( s < 0 ? -a : a );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
|
||||||
|
|
||||||
|
|
||||||
/* documentation is in freetype.h */
|
/* documentation is in freetype.h */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue