10 #if defined(__sun__) && !defined(SVR4) && !defined(__SVR4)
11 #include <sys/param.h>
12 #define CLOCKS_PER_SEC HZ
18 return clock() * 10000L / CLOCKS_PER_SEC;
27 #define XX(x) ((FT_Pos)(x*XSCALE))
28 #define XVEC(x,y) { XX(x), XX(y) }
29 #define XVAL(x) ((x)/(1.0*XSCALE))
35 XVEC( 408.9111, 535.3164 ),
36 XVEC( 455.8887, 634.396 ),
37 XVEC( -37.8765, 786.2207 ),
38 XVEC( 164.6074, 535.3164 )
40 { (FT_Int32)0x0198E93DL , (FT_Int32)0x021750FFL },
41 { (FT_Int32)0x01C7E312L , (FT_Int32)0x027A6560L },
42 { (FT_Int32)0xFFDA1F9EL , (FT_Int32)0x0312387FL },
43 { (FT_Int32)0x00A49B7EL , (FT_Int32)0x021750FFL }
98 printf(
"cbox = [%.2f %.2f %.2f %.2f]\n",
106 printf(
"bbox = [%.2f %.2f %.2f %.2f]\n",
124 for ( count = repeat; count > 0; count-- )
128 printf(
"time = %5.2f cbox = [%.2f %.2f %.2f %.2f]\n",
129 ((
double)time0/10000.0),
137 for ( count = repeat; count > 0; count-- )
141 printf(
"time = %5.2f bbox = [%.2f %.2f %.2f %.2f]\n",
142 ((
double)time0/10000.0),
149 #define REPEAT 100000L
151 int main(
int argc,
char** argv )
153 printf(
"outline #1\n" );
156 printf(
"outline #2\n" );
FT_BEGIN_HEADER FT_Outline_Get_BBox(FT_Outline *outline, FT_BBox *abbox)
static char dummy_tag_1[4]
static void profile_outline(FT_Outline *outline, long repeat)
int main(int argc, char **argv)
#define FT_CURVE_TAG_CUBIC
static void dump_outline(FT_Outline *outline)
static short dummy_contour_1[1]
static FT_Outline dummy_outline_2
static long get_time(void)
FT_Outline_Get_CBox(const FT_Outline *outline, FT_BBox *acbox)
static FT_Vector dummy_vec_1[4]
static FT_Outline dummy_outline_1
static FT_Vector dummy_vec_2[4]