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_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) |
|
◆ ADD_INT
◆ 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_INT
◆ MUL_INT32
#define MUL_INT32 |
( |
|
a, |
|
|
|
b |
|
) |
| (FT_Int32)( (FT_UInt32)(a) * (FT_UInt32)(b) ) |
◆ MUL_LONG
◆ NEG_INT
◆ 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 452 of file ftcalc.h.
◆ SUB_INT
◆ SUB_INT32
#define SUB_INT32 |
( |
|
a, |
|
|
|
b |
|
) |
| (FT_Int32)( (FT_UInt32)(a) - (FT_UInt32)(b) ) |
◆ SUB_LONG
◆ ft_corner_is_flat()
Definition at line 1047 of file ftcalc.c.
1051 {
1053 FT_Pos ay = in_y + out_y;
1054
1055 FT_Pos d_in, d_out, d_hypot;
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1080
1081
1082
1083
1084
1085 return ( d_in + d_out - d_hypot ) < ( d_hypot >> 4 );
1086 }
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 981 of file ftcalc.c.
985 {
986
987
988
989#ifdef FT_LONG64
990
991 FT_Int64 delta = SUB_INT64( MUL_INT64( in_x, out_y ),
992 MUL_INT64( in_y, out_x ) );
993
994
995 return ( delta > 0 ) - ( delta < 0 );
996
997#else
998
1000
1001
1004 {
1007
1008
1009 if ( z1 > z2 )
1011 else if ( z1 < z2 )
1013 else
1015 }
1016 else
1017 {
1019
1020
1021
1022 ft_multo64( (FT_UInt32)in_x, (FT_UInt32)out_y, &z1 );
1023 ft_multo64( (FT_UInt32)in_y, (FT_UInt32)out_x, &z2 );
1024
1025 if ( z1.
hi > z2.
hi )
1027 else if ( z1.
hi < z2.
hi )
1029 else if ( z1.
lo > z2.
lo )
1031 else if ( z1.
lo < z2.
lo )
1033 else
1035 }
1036
1037
1039
1040#endif
1041 }
static void ft_multo64(FT_UInt32 x, FT_UInt32 y, FT_Int64 *z)
◆ FT_Hypot()
◆ FT_Matrix_Check()
Definition at line 751 of file ftcalc.c.
752 {
758
759
761 return 0;
762
767
768
769
770
771
772
773
774
775
776 maxval = 0;
778
779 for (
i = 0;
i < 4;
i++ )
780 {
781 if (
val[
i] > maxval )
783 if (
val[
i] &&
val[
i] < nonzero_minval )
784 nonzero_minval =
val[
i];
785 }
786
787
788 if ( maxval > 0x7FFFFFFFL )
789 return 0;
790
791 if ( maxval > 23170 )
792 {
794
795
797 return 0;
798
803 }
804 else
806
808 temp2 =
m.xx *
m.xx +
m.xy *
m.xy +
m.yx *
m.yx +
m.yy *
m.yy;
809
810 if ( temp1 == 0 ||
811 temp2 / temp1 > 50 )
812 return 0;
813
814 return 1;
815 }
FT_DivFix(FT_Long a_, FT_Long b_)
GLenum GLenum GLenum GLenum GLenum scale
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
Referenced by cff_parse_font_matrix(), cid_parse_font_matrix(), t1_parse_font_matrix(), and t42_parse_font_matrix().
◆ 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 846 of file ftcalc.c.
847 {
851 FT_UInt32
x,
y,
u,
v,
l;
853
854
857
860
861
863 {
867 }
869 {
873 }
874
875
876
877
878
879 l =
x >
y ?
x + (
y >> 1 )
881
884
886 {
889
890
891 l =
x >
y ?
x + (
y >> 1 )
893 }
894 else
895 {
899 }
900
901
902 b = 0x10000 - (FT_Int32)
l;
903
906
907
908 do
909 {
910 u = (FT_UInt32)( x_ + ( x_ *
b >> 16 ) );
911 v = (FT_UInt32)( y_ + ( y_ *
b >> 16 ) );
912
913
914
915
916 z = -(FT_Int32)(
u *
u +
v *
v ) / 0x200;
917 z =
z * ( ( 0x10000 +
b ) >> 8 ) / 0x10000;
918
920
922
925
926
927
928
929 l = (FT_UInt32)( 0x10000 + (FT_Int32)(
u *
x +
v *
y ) / 0x10000 );
932 else
934
936 }
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()