123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- #ifndef __TABLES__
- #define __TABLES__
- #ifdef LINUX
- #include <math.h>
- #else
- const float PI = 3.141592657f;
- #endif
- #include "m_fixed.h"
-
- #define FINEANGLES 8192
- #define FINEMASK (FINEANGLES-1)
- #define ANGLETOFINESHIFT 19
- const extern fixed_t finesine[5*FINEANGLES/4];
- const extern fixed_t* finecosine;
- const extern fixed_t finetangent[FINEANGLES/2];
- #define ANG45 0x20000000u
- #define ANG90 0x40000000u
- #define ANG180 0x80000000u
- #define ANG270 0xc0000000u
- #define SLOPERANGE 2048
- #define SLOPEBITS 11
- #define DBITS (FRACBITS-SLOPEBITS)
- typedef unsigned angle_t;
- const extern angle_t tantoangle[SLOPERANGE+1];
- int
- SlopeDiv
- ( unsigned num,
- unsigned den);
- #endif
|