/* $FG,2$$WW,1$You may wonder why I do scaled integer arithmetic in the graphics routines. The transformation matrix in a $LK,"GrBitMap","MN:GrBitMap"$, r, is stored as 8-byte integers shifted 32 bits left to allow fractions. This is faster than floating point (double) arithmetic, but less accurate. $WW,0$ $FG$*/ #define SAMPLE_SIZE 100000000 I4 coordinates[65536]; void TimeIns() { U8 start1,end1,start2,end2,overhead_time,test_time; double reg d1; I8 reg i,reg temp,reg d2,reg sum; //Set-up some sample coordinates for (i=0;i<65536;i++) coordinates[i]=RandU4; Preempt(OFF); //$FG,2$Measure Loop Overhead$FG$ start1=GetTimeStamp; for (i=0;i