#include <ft2build.h>
Go to the source code of this file.
|
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_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) |
|
◆ ADD_INT32
#define ADD_INT32 |
( |
|
a, |
|
|
|
b |
|
) |
| (FT_Int32)( (FT_UInt32)(a) + (FT_UInt32)(b) ) |
◆ ADD_LONG
◆ F2DOT14_TO_FIXED
◆ FIXED_TO_INT
◆ INT_TO_F26DOT6
◆ INT_TO_F2DOT14
◆ INT_TO_FIXED
◆ MUL_INT32
#define MUL_INT32 |
( |
|
a, |
|
|
|
b |
|
) |
| (FT_Int32)( (FT_UInt32)(a) * (FT_UInt32)(b) ) |
◆ MUL_LONG
◆ NEG_INT32
#define NEG_INT32 |
( |
|
a | ) |
(FT_Int32)( (FT_UInt32)0 - (FT_UInt32)(a) ) |
◆ NEG_LONG
◆ ROUND_F26DOT6
Value: (
x >= 0 ? ( ( (
x) + 32 ) & -64 ) \
: ( -( ( 32 - (
x) ) & -64 ) ) )
GLint GLint GLint GLint GLint x
Definition at line 408 of file ftcalc.h.
◆ SUB_INT32
#define SUB_INT32 |
( |
|
a, |
|
|
|
b |
|
) |
| (FT_Int32)( (FT_UInt32)(a) - (FT_UInt32)(b) ) |
◆ SUB_LONG
◆ ft_corner_is_flat()
Definition at line 975 of file ftcalc.c.
979 {
982
983 FT_Pos d_in, d_out, d_hypot;
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1008
1009
1010
1011
1012
1013 return ( d_in + d_out - d_hypot ) < ( d_hypot >> 4 );
1014 }
FT_BEGIN_HEADER typedef signed long FT_Pos
ecx edi movl ebx edx edi decl ecx esi eax jecxz decl eax andl eax esi movl edx movl TEMP incl eax andl eax ecx incl ebx testl eax jnz xchgl ecx incl TEMP esp ecx subl ebx pushl ecx ecx edx ecx shrl ecx mm0 mm4 mm0 mm4 mm1 mm5 mm1 mm5 mm2 mm6 mm2 mm6 mm3 mm7 mm3 mm7 paddd mm0 paddd mm4 paddd mm0 paddd mm4 paddd mm0 paddd mm4 movq mm1 movq mm5 psrlq mm1 psrlq mm5 paddd mm0 paddd mm4 psrad mm0 psrad mm4 packssdw mm0 packssdw mm4 mm1 punpckldq mm0 pand mm1 pand mm0 por mm1 movq edi esi edx edi decl ecx jnz popl ecx andl ecx jecxz mm0 mm0 mm1 mm1 mm2 mm2 mm3 mm3 paddd mm0 paddd mm0 paddd mm0 movq mm1 psrlq mm1 paddd mm0 psrad mm0 packssdw mm0 movd eax movw ax
Referenced by af_glyph_hints_reload().
◆ ft_corner_orientation()
Definition at line 911 of file ftcalc.c.
915 {
916#ifdef FT_LONG64
917
919
920
921 return ( delta > 0 ) - ( delta < 0 );
922
923#else
924
926
927
928
929
932 {
935
936
937 if ( z1 > z2 )
939 else if ( z1 < z2 )
941 else
943 }
944 else
945 {
947
948
949
950 ft_multo64( (FT_UInt32)in_x, (FT_UInt32)out_y, &z1 );
951 ft_multo64( (FT_UInt32)in_y, (FT_UInt32)out_x, &z2 );
952
955 else if ( z1.
hi < z2.
hi )
957 else if ( z1.
lo > z2.
lo )
959 else if ( z1.
lo < z2.
lo )
961 else
963 }
964
965
967
968#endif
969 }
static void ft_multo64(FT_UInt32 x, FT_UInt32 y, FT_Int64 *z)
struct FT_Int64_ FT_Int64
◆ FT_Hypot()
◆ FT_Matrix_Multiply_Scaled()
Definition at line 720 of file ftcalc.c.
723 {
725
727
728
730 return;
731
740
745 }
FT_MulDiv(FT_Long a_, FT_Long b_, FT_Long c_)
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
Referenced by cff_face_init().
◆ FT_MSB()
◆ FT_MulDiv_No_Round()
Definition at line 464 of file ftcalc.c.
467 {
470
471
472
473
477
481
484
485 else if (
a +
b <= 131071UL )
487
488 else
489 {
491
492
494
495
498 }
499
501
503 }
#define FT_MOVE_SIGN(x, x_unsigned, s)
static FT_UInt32 ft_div64by32(FT_UInt32 hi, FT_UInt32 lo, FT_UInt32 y)
◆ FT_Vector_NormLen()
Definition at line 776 of file ftcalc.c.
777 {
781 FT_UInt32
x,
y,
u,
v,
l;
783
784
787
790
791
793 {
797 }
799 {
803 }
804
805
806
807
808
809 l =
x >
y ?
x + (
y >> 1 )
811
814
816 {
819
820
821 l =
x >
y ?
x + (
y >> 1 )
823 }
824 else
825 {
829 }
830
831
832 b = 0x10000 - (FT_Int32)
l;
833
836
837
838 do
839 {
840 u = (FT_UInt32)( x_ + ( x_ *
b >> 16 ) );
841 v = (FT_UInt32)( y_ + ( y_ *
b >> 16 ) );
842
843
844
845
846 z = -(FT_Int32)(
u *
u +
v *
v ) / 0x200;
847 z =
z * ( ( 0x10000 +
b ) >> 8 ) / 0x10000;
848
850
852
855
856
857
858
859 l = (FT_UInt32)( 0x10000 + (FT_Int32)(
u *
x +
v *
y ) / 0x10000 );
862 else
864
866 }
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 * u
Referenced by FT_Outline_EmboldenXY().
◆ FT_Vector_Transform_Scaled()