33#include FT_INTERNAL_OBJECTS_H
34#include FT_INTERNAL_CALC_H
35#include FT_TRIGONOMETRY_H
39#define FT_TRIG_SCALE 0xDBD95B16UL
43#define FT_TRIG_SAFE_MSB 29
46#define FT_TRIG_MAX_ITERS 23
51 1740967L, 919879L, 466945L, 234379L, 117304L, 58666L, 29335L,
52 14668L, 7334L, 3667L, 1833L, 917L, 458L, 229L, 115L,
53 57L, 29L, 14L, 7L, 4L, 2L, 1L
87 FT_UInt32 lo1, hi1, lo2, hi2, lo, hi, i1, i2;
96 lo1 = (FT_UInt32)
val & 0x0000FFFFU;
97 hi1 = (FT_UInt32)
val >> 16;
108 hi += (FT_UInt32)( i1 < i2 ) << 16;
122 hi += ( lo < 0x40000000UL );
199 xtemp =
x + ( (
y +
b ) >>
i );
200 y =
y - ( (
x +
b ) >>
i );
202 theta += *arctanptr++;
206 xtemp =
x - ( (
y +
b ) >>
i );
207 y =
y + ( (
x +
b ) >>
i );
209 theta -= *arctanptr++;
269 xtemp =
x + ( (
y +
b ) >>
i );
270 y =
y - ( (
x +
b ) >>
i );
272 theta += *arctanptr++;
276 xtemp =
x - ( (
y +
b ) >>
i );
277 y =
y + ( (
x +
b ) >>
i );
279 theta -= *arctanptr++;
346 if (
dx == 0 &&
dy == 0 )
377#define FT_SIGN_LONG( x ) ( (x) >> ( FT_SIZEOF_LONG * 8 - 1 ) )
378#define FT_SIGN_INT( x ) ( (x) >> ( FT_SIZEOF_INT * 8 - 1 ) )
379#define FT_SIGN_INT32( x ) ( (x) >> 31 )
380#define FT_SIGN_INT16( x ) ( (x) >> 15 )
398 if (
v.x == 0 &&
v.y == 0 )
408 FT_Int32 half = (FT_Int32)1L << (
shift - 1 );
476 if (
v.x == 0 &&
v.y == 0 )
FT_DivFix(FT_Long a, FT_Long b)
FT_BEGIN_HEADER typedef signed long FT_Pos
#define FT_PAD_ROUND(x, n)
FT_Vector_From_Polar(FT_Vector *vec, FT_Fixed length, FT_Angle angle)
FT_Vector_Polarize(FT_Vector *vec, FT_Fixed *length, FT_Angle *angle)
static const FT_Angle ft_trig_arctan_table[]
static FT_Fixed ft_trig_downscale(FT_Fixed val)
FT_Vector_Length(FT_Vector *vec)
FT_Vector_Unit(FT_Vector *vec, FT_Angle angle)
static void ft_trig_pseudo_rotate(FT_Vector *vec, FT_Angle theta)
FT_Angle_Diff(FT_Angle angle1, FT_Angle angle2)
static void ft_trig_pseudo_polarize(FT_Vector *vec)
FT_Atan2(FT_Fixed dx, FT_Fixed dy)
FT_Vector_Rotate(FT_Vector *vec, FT_Angle angle)
#define FT_TRIG_MAX_ITERS
static FT_Int ft_trig_prenorm(FT_Vector *vec)
FT_BEGIN_HEADER typedef FT_Fixed FT_Angle
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLboolean GLboolean GLboolean b
GLuint GLsizei GLsizei * length
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i