tuxanci2-sdk
SDK for tuxanci2
Log | Files | Refs | README | LICENSE

fixed.h (172B)


      1 #ifndef TA_FIXED_H
      2 #define TA_FIXED_H
      3 
      4 #include <stdint.h>
      5 
      6 typedef uint32_t ta_fixed;
      7 
      8 #define TA_FIXED(value) ((ta_fixed)((value) * 65536.0 + 0.5))
      9 
     10 #endif // TA_FIXED_H