doom

a minimalistic implementation of doom
git clone git://ssnf.xyz/doom
Log | Files | Refs

m_fixed.h (246B)


      1 #ifndef __M_FIXED__
      2 #define __M_FIXED__
      3 
      4 #define FRACBITS 16
      5 #define FRACUNIT (1 << FRACBITS)
      6 
      7 typedef int fixed_t;
      8 
      9 fixed_t FixedMul(fixed_t a, fixed_t b);
     10 fixed_t FixedDiv(fixed_t a, fixed_t b);
     11 fixed_t FixedDiv2(fixed_t a, fixed_t b);
     12 
     13 #endif