Example #1
0
 public static bool operator >(fix16 self, int16_t other)
 {
     return(self.value > LibFixMath.fix16_from_int(other));
 }
Example #2
0
 public fix16(int16_t inValue)
 {
     value = LibFixMath.fix16_from_int(inValue);
 }
Example #3
0
 fix16 sdiv(int16_t other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sdiv(value, LibFixMath.fix16_from_int(other));   return(ret);
 }
Example #4
0
 fix16 ssub(int16_t other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sadd(value, -LibFixMath.fix16_from_int(other));   return(ret);
 }