Lines Matching refs:exp
38 signed exp = (imm & 0x70) >> 4;
41 if (exp)
42 return ldexpf(sign * (float) (mantissa | 0x10), exp - 7);
57 /* frac is in [0.5, 1) and f = frac * 2^exp */
58 int exp = 0;
59 float frac = frexpf(f, &exp);
63 exp -= 5; /* 2^5 = 32 */
64 exp = CLAMP(exp + 7, 0, 7);
67 assert(exp >= 1);
69 return sign | (exp << 4) | (mantissa & 0xF);