XenevaOS
Loading...
Searching...
No Matches
Macros | Functions
ftcalc.h File Reference
#include <ft2build.h>
Include dependency graph for ftcalc.h:

Go to the source code of this file.

Macros

#define INT_TO_F26DOT6(x)   ( (FT_Long)(x) * 64 ) /* << 6 */
 
#define INT_TO_F2DOT14(x)   ( (FT_Long)(x) * 16384 ) /* << 14 */
 
#define INT_TO_FIXED(x)   ( (FT_Long)(x) * 65536 ) /* << 16 */
 
#define F2DOT14_TO_FIXED(x)   ( (FT_Long)(x) * 4 ) /* << 2 */
 
#define FIXED_TO_INT(x)   ( FT_RoundFix( x ) >> 16 )
 
#define ROUND_F26DOT6(x)
 
#define ADD_INT(a, b)    (FT_Int)( (FT_UInt)(a) + (FT_UInt)(b) )
 
#define SUB_INT(a, b)    (FT_Int)( (FT_UInt)(a) - (FT_UInt)(b) )
 
#define MUL_INT(a, b)    (FT_Int)( (FT_UInt)(a) * (FT_UInt)(b) )
 
#define NEG_INT(a)    (FT_Int)( (FT_UInt)0 - (FT_UInt)(a) )
 
#define ADD_LONG(a, b)    (FT_Long)( (FT_ULong)(a) + (FT_ULong)(b) )
 
#define SUB_LONG(a, b)    (FT_Long)( (FT_ULong)(a) - (FT_ULong)(b) )
 
#define MUL_LONG(a, b)    (FT_Long)( (FT_ULong)(a) * (FT_ULong)(b) )
 
#define NEG_LONG(a)    (FT_Long)( (FT_ULong)0 - (FT_ULong)(a) )
 
#define ADD_INT32(a, b)    (FT_Int32)( (FT_UInt32)(a) + (FT_UInt32)(b) )
 
#define SUB_INT32(a, b)    (FT_Int32)( (FT_UInt32)(a) - (FT_UInt32)(b) )
 
#define MUL_INT32(a, b)    (FT_Int32)( (FT_UInt32)(a) * (FT_UInt32)(b) )
 
#define NEG_INT32(a)    (FT_Int32)( (FT_UInt32)0 - (FT_UInt32)(a) )
 

Functions

FT_BEGIN_HEADER FT_MulDiv_No_Round (FT_Long a, FT_Long b, FT_Long c)
 
 FT_Matrix_Multiply_Scaled (const FT_Matrix *a, FT_Matrix *b, FT_Long scaling)
 
 FT_Matrix_Check (const FT_Matrix *matrix)
 
 FT_Vector_Transform_Scaled (FT_Vector *vector, const FT_Matrix *matrix, FT_Long scaling)
 
 FT_Vector_NormLen (FT_Vector *vector)
 
 ft_corner_orientation (FT_Pos in_x, FT_Pos in_y, FT_Pos out_x, FT_Pos out_y)
 
 ft_corner_is_flat (FT_Pos in_x, FT_Pos in_y, FT_Pos out_x, FT_Pos out_y)
 
 FT_MSB (FT_UInt32 z)
 
 FT_Hypot (FT_Fixed x, FT_Fixed y)
 

Macro Definition Documentation

◆ ADD_INT

#define ADD_INT (   a,
 
)     (FT_Int)( (FT_UInt)(a) + (FT_UInt)(b) )

◆ ADD_INT32

#define ADD_INT32 (   a,
 
)     (FT_Int32)( (FT_UInt32)(a) + (FT_UInt32)(b) )

◆ ADD_LONG

#define ADD_LONG (   a,
 
)     (FT_Long)( (FT_ULong)(a) + (FT_ULong)(b) )

◆ F2DOT14_TO_FIXED

#define F2DOT14_TO_FIXED (   x)    ( (FT_Long)(x) * 4 ) /* << 2 */

◆ FIXED_TO_INT

#define FIXED_TO_INT (   x)    ( FT_RoundFix( x ) >> 16 )

◆ INT_TO_F26DOT6

#define INT_TO_F26DOT6 (   x)    ( (FT_Long)(x) * 64 ) /* << 6 */

◆ INT_TO_F2DOT14

#define INT_TO_F2DOT14 (   x)    ( (FT_Long)(x) * 16384 ) /* << 14 */

◆ INT_TO_FIXED

#define INT_TO_FIXED (   x)    ( (FT_Long)(x) * 65536 ) /* << 16 */

◆ MUL_INT

#define MUL_INT (   a,
 
)     (FT_Int)( (FT_UInt)(a) * (FT_UInt)(b) )

◆ MUL_INT32

#define MUL_INT32 (   a,
 
)     (FT_Int32)( (FT_UInt32)(a) * (FT_UInt32)(b) )

◆ MUL_LONG

#define MUL_LONG (   a,
 
)     (FT_Long)( (FT_ULong)(a) * (FT_ULong)(b) )

◆ NEG_INT

#define NEG_INT (   a)     (FT_Int)( (FT_UInt)0 - (FT_UInt)(a) )

◆ NEG_INT32

#define NEG_INT32 (   a)     (FT_Int32)( (FT_UInt32)0 - (FT_UInt32)(a) )

◆ NEG_LONG

#define NEG_LONG (   a)     (FT_Long)( (FT_ULong)0 - (FT_ULong)(a) )

◆ ROUND_F26DOT6

#define ROUND_F26DOT6 (   x)
Value:
( x >= 0 ? ( ( (x) + 32 ) & -64 ) \
: ( -( ( 32 - (x) ) & -64 ) ) )
int x
Definition term.cpp:49

◆ SUB_INT

#define SUB_INT (   a,
 
)     (FT_Int)( (FT_UInt)(a) - (FT_UInt)(b) )

◆ SUB_INT32

#define SUB_INT32 (   a,
 
)     (FT_Int32)( (FT_UInt32)(a) - (FT_UInt32)(b) )

◆ SUB_LONG

#define SUB_LONG (   a,
 
)     (FT_Long)( (FT_ULong)(a) - (FT_ULong)(b) )

Function Documentation

◆ ft_corner_is_flat()

ft_corner_is_flat ( FT_Pos  in_x,
FT_Pos  in_y,
FT_Pos  out_x,
FT_Pos  out_y 
)

◆ ft_corner_orientation()

ft_corner_orientation ( FT_Pos  in_x,
FT_Pos  in_y,
FT_Pos  out_x,
FT_Pos  out_y 
)

◆ FT_Hypot()

FT_Hypot ( FT_Fixed  x,
FT_Fixed  y 
)

◆ FT_Matrix_Check()

FT_Matrix_Check ( const FT_Matrix matrix)

◆ FT_Matrix_Multiply_Scaled()

FT_Matrix_Multiply_Scaled ( const FT_Matrix a,
FT_Matrix b,
FT_Long  scaling 
)

◆ FT_MSB()

FT_MSB ( FT_UInt32  z)

◆ FT_MulDiv_No_Round()

FT_BEGIN_HEADER FT_MulDiv_No_Round ( FT_Long  a,
FT_Long  b,
FT_Long  c 
)

◆ FT_Vector_NormLen()

FT_Vector_NormLen ( FT_Vector vector)

◆ FT_Vector_Transform_Scaled()

FT_Vector_Transform_Scaled ( FT_Vector vector,
const FT_Matrix matrix,
FT_Long  scaling 
)