hostsupport/hostopenvg/src/riMath.h
branchbug235_bringup_0
changeset 69 3f914c77c2e9
parent 53 c2ef9095503a
equal deleted inserted replaced
68:8d4efe9fa1cf 69:3f914c77c2e9
   244     RI_ASSERT(sh >= 0 && sh <= 31);
   244     RI_ASSERT(sh >= 0 && sh <= 31);
   245     int r = a >> sh;
   245     int r = a >> sh;
   246     return r;
   246     return r;
   247 }
   247 }
   248 
   248 
   249 RI_INLINE RIfloat RI_FLOAT_TO_FX(RIfloat f, unsigned int n) { return (RIfloat)RI_ROUND_TO_INT(f * (RIfloat)RI_SHL(1, n)); }
   249 RI_INLINE int RI_FLOAT_TO_FX(RIfloat f, unsigned int n) { return RI_ROUND_TO_INT(f * (RIfloat)RI_SHL(1, n)); }
   250 
   250 
   251 class Matrix3x3;
   251 class Matrix3x3;
   252 class Vector2;
   252 class Vector2;
   253 class Vector3;
   253 class Vector3;
   254 
   254