Exemple #1
0
 fix16 ssub(int16_t other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sadd(value, -LibFixMath.fix16_from_int(other));   return(ret);
 }
Exemple #2
0
 fix16 ssub(float other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sadd(value, -LibFixMath.fix16_from_float(other)); return(ret);
 }
Exemple #3
0
 fix16 ssub(fix16_t other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sadd(value, -other);                   return(ret);
 }
Exemple #4
0
 fix16 ssub(double other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sadd(value, -LibFixMath.fix16_from_dbl(other));   return(ret);
 }
Exemple #5
0
 fix16 sadd(fix16 other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sadd(value, other.value);             return(ret);
 }