22 #ifndef __CONDITIONALMACROS__
47 #if PRAGMA_STRUCT_ALIGN
48 #pragma options align = mac68k
49 #elif PRAGMA_STRUCT_PACKPUSH
51 #elif PRAGMA_STRUCT_PACK
55 #if defined(__MWERKS__) && TARGET_CPU_68K
57 #pragma pointers_in_D0
67 typedef unsigned short gxColorValue;
79 #define gxColorValue1 ((gxColorValue)0x0000FFFF)
80 #define gxPositiveInfinity ((long)0x7FFFFFFFL)
81 #define gxNegativeInfinity ((long)0x80000000L)
83 #if CALL_NOT_IN_CARBON
384 const long *vector2,
long step2,
long divisor);
389 #if TARGET_OS_MAC && TARGET_CPU_68K
390 #if CALL_NOT_IN_CARBON
496 #if CALL_NOT_IN_CARBON
507 long step2,
wide *dot);
544 #define FixedRound(a) ((short)((Fixed)(a) + fixed1 / 2 >> 16))
545 #define FixedSquareRoot(a) ((Fixed)FractSquareRoot(a) + 64 >> 7)
546 #define FixedTruncate(a) ((short)((Fixed)(a) >> 16))
547 #define FixedToFract(a) ((Fract)(a) << 14)
548 #define FractToFixed(a) (((Fixed)(a) + 8192L) >> 14)
549 #define FixedToInt(a) ((short)(((Fixed)(a) + fixed1 / 2) >> 16))
550 #define IntToFixed(a) ((Fixed)(a) << 16)
551 #define FixedToFloat(a) ((float)(a) / fixed1)
552 #define FloatToFixed(a) ((Fixed)((float)(a) * fixed1))
553 #define FractToFloat(a) ((float)(a) / fract1)
554 #define FloatToFract(a) ((Fract)((float)(a) * fract1))
555 #define ColorToFract(a) (((Fract)(a) << 14) + ((Fract)(a) + 2 >> 2))
556 #define FractToColor(a) ((gxColorValue)((a) - ((a) >> 16) + 8191 >> 14))
558 #define ff(a) IntToFixed(a)
559 #define fl(a) FloatToFixed(a)
562 #if defined(__MWERKS__) && TARGET_CPU_68K
566 #if PRAGMA_STRUCT_ALIGN
567 #pragma options align = reset
568 #elif PRAGMA_STRUCT_PACKPUSH
570 #elif PRAGMA_STRUCT_PACK
574 #ifdef PRAGMA_IMPORT_OFF
Set up for compiler independent conditionals.
unsigned long WideSquareRoot(const wide *source)
long WideDivide(const wide *dividend, long divisor, long *remainder)
wide * WideWideDivide(wide *dividend, long divisor, long *remainder)
wide * WideAdd(wide *target, const wide *source)
wide * WideSubtract(wide *target, const wide *source)
wide * WideMultiply(long multiplicand, long multiplier, wide *target)
wide * WideShift(wide *target, long shift)
short WideCompare(const wide *target, const wide *source)
wide * WideNegate(wide *target)
Fract FractMultiply(Fract multiplicand, Fract multiplier)
wide * GetRandomSeed(wide *seed)
wide * VectorMultiply(long count, const long *vector1, long step1, const long *vector2, long step2, wide *dot)
short FirstBit(unsigned long x)
Fract FractSineCosine(Fixed degrees, Fract *cosine)
void MapPoints(const gxMapping *source, long count, gxPoint theVector[])
gxMapping * CopyToMapping(gxMapping *target, const gxMapping *source)
gxMapping * ScaleMapping(gxMapping *target, Fixed hFactor, Fixed vFactor, Fixed xCenter, Fixed yCenter)
gxPolar * PointToPolar(const gxPoint *xy, gxPolar *ra)
gxMapping * MoveMappingTo(gxMapping *target, Fixed hPosition, Fixed vPosition)
gxMapping * RotateMapping(gxMapping *target, Fixed angle, Fixed xCenter, Fixed yCenter)
gxMapping * SkewMapping(gxMapping *target, Fixed skewX, Fixed skewY, Fixed xCenter, Fixed yCenter)
Fract FractDivide(Fract dividend, Fract divisor)
unsigned long RandomBits(long count, long focus)
gxMapping * MoveMapping(gxMapping *target, Fixed hOffset, Fixed vOffset)
gxMapping * NormalizeMapping(gxMapping *target)
gxMapping * MapMapping(gxMapping *target, const gxMapping *source)
gxPoint * PolarToPoint(const gxPolar *ra, gxPoint *xy)
short WideScale(const wide *source)
Fixed FixedMultiply(Fixed multiplicand, Fixed multiplier)
short LinearRoot(Fixed first, Fixed last, Fract t[])
Fract FractSquareRoot(Fract source)
long MultiplyDivide(long source, long multiplier, long divisor)
gxMapping * InvertMapping(gxMapping *target, const gxMapping *source)
void SetRandomSeed(const wide *seed)
Fixed FixedDivide(Fixed dividend, Fixed divisor)
short QuadraticRoot(Fixed first, Fixed control, Fixed last, Fract t[])
unsigned long Magnitude(long deltaX, long deltaY)
long VectorMultiplyDivide(long count, const long *vector1, long step1, const long *vector2, long step2, long divisor)
Fract FractCubeRoot(Fract source)
gxMapping * ResetMapping(gxMapping *target)
Basic Macintosh data types.
long Fixed
Definition: MacTypes.h:153
Definition: MacTypes.h:104