66 #define D4D_ANGLE_DEG(deg) (((deg)==180)?0xff:((deg)*0x100/180))
97 #define D4D_MulDivUU D4D_MulDivUU16
98 #define D4D_MulDivSU D4D_MulDivSU16
99 #define D4D_LimitU D4D_LimitU16
100 #define D4D_LimitS D4D_LimitS16
103 #define D4D_MulDivUU D4D_MulDivUU8
104 #define D4D_MulDivSU D4D_MulDivSU8
105 #define D4D_LimitU D4D_LimitU8
106 #define D4D_LimitS D4D_LimitS8
Word D4D_MulDivUU16(Word u1, Word u2, Word d)
Simple proportion unsigned calculation - 16 bit.
signed long sLWord
Type definition of sLWord (signed 32-bit).
Word D4D_Abs16(sWord num)
Calculation of absolute value - 16 bit.
sByte D4D_LimitS8(sByte val, sByte min, sByte max)
Calculation of limitation value (signed) - 8 bit.
unsigned char Byte
Type definition of Byte (unsigned 8-bit).
sByte D4D_Sin(Byte x)
Sine calculation using lookup table.
unsigned long LWord
Type definition of LWord (unsigned 32-bit).
signed short sWord
Type definition of sWord (signed 16-bit).
Byte D4D_MulDivUU8(Byte u1, Byte u2, Byte d)
Simple proportion unsigned calculation - 8 bit.
Byte D4D_LimitU8(Byte val, Byte min, Byte max)
Calculation of limitation value (unsigned) - 8 bit.
sWord D4D_LimitS16(sWord val, sWord min, sWord max)
Calculation of limitation value (signed) - 16 bit.
signed char sByte
Type definition of sByte (signed 8-bit).
Word D4D_LimitU16(Word val, Word min, Word max)
Calculation of limitation value (unsigned) - 16 bit.
sWord D4D_MulDivSU16(sWord s, Word u, Word d)
Simple proportion signed calculation - 8 bit.
Byte D4D_Abs(sByte num)
Calculation of absolute value - 8 bit.
sByte D4D_Cos(Byte x)
Cosine calculation using lookup table.
sByte D4D_MulDivSU8(sByte s, Byte u, Byte d)
Simple proportion signed calculation - 8 bit.
LWord D4D_Abs32(sLWord num)
Calculation of absolute value - 32 bit.
unsigned short Word
Type definition of Word (unsigned 16-bit).