Lines Matching refs:A
36 #define dfixed_const(A) (u32)(((A) << 12))/* + ((B + 0.000122)*4096)) */ argument
37 #define dfixed_const_half(A) (u32)(((A) << 12) + 2048) argument
38 #define dfixed_const_666(A) (u32)(((A) << 12) + 2731) argument
39 #define dfixed_const_8(A) (u32)(((A) << 12) + 3277) argument
40 #define dfixed_mul(A, B) ((u64)((u64)(A).full * (B).full + 2048) >> 12) argument
41 #define dfixed_init(A) { .full = dfixed_const((A)) } argument
42 #define dfixed_init_half(A) { .full = dfixed_const_half((A)) } argument
43 #define dfixed_trunc(A) ((A).full >> 12) argument
44 #define dfixed_frac(A) ((A).full & ((1 << 12) - 1)) argument
46 static inline u32 dfixed_floor(fixed20_12 A) in dfixed_floor() argument
48 u32 non_frac = dfixed_trunc(A); in dfixed_floor()
53 static inline u32 dfixed_ceil(fixed20_12 A) in dfixed_ceil() argument
55 u32 non_frac = dfixed_trunc(A); in dfixed_ceil()
57 if (A.full > dfixed_const(non_frac)) in dfixed_ceil()
63 static inline u32 dfixed_div(fixed20_12 A, fixed20_12 B) in dfixed_div() argument
65 u64 tmp = ((u64)A.full << 13); in dfixed_div()