Lines Matching refs:FIX_POST
34 #define FIX_POST 14 macro
37 #if (FIX_POST>=4)
39 #define FIX_P3 (FIX_POST-FIX_P2)
42 #define FIX_P3 FIX_POST
45 #if (FIX_POST>=1)
46 #define FIX_ADD (1<<(FIX_POST-1))
80 Fix( int i ) { x=(long(i)<<FIX_POST); } in Fix()
81 Fix( short l ) { x=(long(l)<<FIX_POST); } in Fix()
82 Fix( sal_uInt16 l ) { x=(long(l)<<FIX_POST); } in Fix()
83 Fix( long l ) { x=(l<<FIX_POST); } in Fix()
84 Fix( long Z, long N ) { x=(Z<<FIX_POST)/N; } in Fix()
91 void operator*= ( const Fix& a ) { x=(x*a.x+FIX_ADD)>>FIX_POST; } in operator *=()
92 void operator/= ( const Fix& a ) { x=(x<<FIX_POST)/a.x; } in operator /=()
103 operator long() const { return (x+FIX_ADD) >> FIX_POST; }
104 operator double() const { return double(x)/(1<<FIX_POST); }
165 long l=(a.x*b.x+FIX_ADD)>>FIX_POST; in operator *()
171 long l=(a.x<<FIX_POST)/b.x; in operator /()