sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
ftcalc.h File Reference
#include <freetype/freetype.h>
#include "compiler-macros.h"

Go to the source code of this file.

Macros

#define ADD_INT(a, b)
#define SUB_INT(a, b)
#define MUL_INT(a, b)
#define NEG_INT(a)
#define ADD_LONG(a, b)
#define SUB_LONG(a, b)
#define MUL_LONG(a, b)
#define NEG_LONG(a)
#define ADD_INT32(a, b)
#define SUB_INT32(a, b)
#define MUL_INT32(a, b)
#define NEG_INT32(a)
#define INT_TO_F26DOT6(x)
#define INT_TO_F2DOT14(x)
#define INT_TO_FIXED(x)
#define F2DOT14_TO_FIXED(x)
#define FIXED_TO_INT(x)
#define ROUND_F26DOT6(x)

Functions

 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)
 FT_SqrtFixed (FT_UInt32 x)

Macro Definition Documentation

◆ ADD_INT

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

Definition at line 43 of file ftcalc.h.

◆ ADD_INT32

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

Definition at line 61 of file ftcalc.h.

◆ ADD_LONG

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

Definition at line 52 of file ftcalc.h.

◆ F2DOT14_TO_FIXED

#define F2DOT14_TO_FIXED ( x)
Value:
( (FT_Long)(x) * 4 )

Definition at line 469 of file ftcalc.h.

◆ FIXED_TO_INT

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

Definition at line 470 of file ftcalc.h.

◆ INT_TO_F26DOT6

#define INT_TO_F26DOT6 ( x)
Value:
( (FT_Long)(x) * 64 )

Definition at line 466 of file ftcalc.h.

◆ INT_TO_F2DOT14

#define INT_TO_F2DOT14 ( x)
Value:
( (FT_Long)(x) * 16384 )

Definition at line 467 of file ftcalc.h.

◆ INT_TO_FIXED

#define INT_TO_FIXED ( x)
Value:
( (FT_Long)(x) * 65536 )

Definition at line 468 of file ftcalc.h.

◆ MUL_INT

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

Definition at line 47 of file ftcalc.h.

◆ MUL_INT32

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

Definition at line 65 of file ftcalc.h.

◆ MUL_LONG

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

Definition at line 56 of file ftcalc.h.

◆ NEG_INT

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

Definition at line 49 of file ftcalc.h.

◆ NEG_INT32

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

Definition at line 67 of file ftcalc.h.

◆ NEG_LONG

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

Definition at line 58 of file ftcalc.h.

◆ ROUND_F26DOT6

#define ROUND_F26DOT6 ( x)
Value:
( ( (x) + 32 - ( x < 0 ) ) & -64 )

Definition at line 472 of file ftcalc.h.

◆ SUB_INT

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

Definition at line 45 of file ftcalc.h.

◆ SUB_INT32

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

Definition at line 63 of file ftcalc.h.

◆ SUB_LONG

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

Definition at line 54 of file ftcalc.h.

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 )

Definition at line 1006 of file ftcalc.c.

◆ ft_corner_orientation()

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

Definition at line 947 of file ftcalc.c.

◆ FT_Hypot()

FT_Hypot ( FT_Fixed x,
FT_Fixed y )

Definition at line 143 of file ftcalc.c.

◆ FT_Matrix_Check()

FT_Matrix_Check ( const FT_Matrix * matrix)

Definition at line 714 of file ftcalc.c.

◆ FT_Matrix_Multiply_Scaled()

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

Definition at line 683 of file ftcalc.c.

◆ FT_MSB()

FT_MSB ( FT_UInt32 z)

Definition at line 102 of file ftcalc.c.

◆ FT_MulDiv_No_Round()

FT_MulDiv_No_Round ( FT_Long a,
FT_Long b,
FT_Long c )

Definition at line 437 of file ftcalc.c.

◆ FT_SqrtFixed()

FT_SqrtFixed ( FT_UInt32 x)

Definition at line 880 of file ftcalc.c.

◆ FT_Vector_NormLen()

FT_Vector_NormLen ( FT_Vector * vector)

Definition at line 787 of file ftcalc.c.

◆ FT_Vector_Transform_Scaled()

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

Definition at line 762 of file ftcalc.c.