Lines Matching refs:M_BITS
312 #define M_BITS 9 /* Number of bits in mantissa */ in cellrate_to_float() macro
325 if (i == M_BITS) in cellrate_to_float()
326 flot = NZ | (i << M_BITS) | (cr & M_MASK); in cellrate_to_float()
327 else if (i < M_BITS) in cellrate_to_float()
328 flot = NZ | (i << M_BITS) | ((cr << (M_BITS - i)) & M_MASK); in cellrate_to_float()
330 flot = NZ | (i << M_BITS) | ((cr >> (i - M_BITS)) & M_MASK); in cellrate_to_float()
344 exp = (rate >> M_BITS) & E_MASK;
348 cps = (1 << M_BITS) | mantissa;
349 if (exp == M_BITS)
351 else if (exp > M_BITS)
352 cps <<= (exp - M_BITS);
354 cps >>= (M_BITS - exp);