23 #ifndef BAGEL_BOFLIB_FIXED_H 24 #define BAGEL_BOFLIB_FIXED_H 26 #include "bagel/boflib/object.h" 27 #include "bagel/boflib/misc.h" 47 _lVal = (Fixed)(((
long)(Arg)) << 16);
50 _lVal = (Fixed)(Arg * (1 << 16));
56 return _lVal + Arg._lVal;
59 return _lVal - Arg._lVal;
63 return fixedMultiply(_lVal, Arg._lVal);
67 return fixedDivide(_lVal, Arg._lVal);
81 _lVal = _lVal * Arg._lVal;
87 _lVal = _lVal / Arg._lVal;
99 return (
int)(((int32)_lVal) >> 16);