Lines Matching refs:expon
184 expon = _read_short(f) # 2 bytes
186 if expon < 0:
188 expon = expon + 0x8000
191 if expon == himant == lomant == 0:
193 elif expon == 0x7FFF:
196 expon = expon - 16383
197 f = (himant * 0x100000000L + lomant) * pow(2.0, expon - 63)
228 expon = 0
232 fmant, expon = math.frexp(x)
233 if expon > 16384 or fmant >= 1 or fmant != fmant: # Infinity or NaN
234 expon = sign|0x7FFF
238 expon = expon + 16382
239 if expon < 0: # denormalized
240 fmant = math.ldexp(fmant, expon)
241 expon = 0
242 expon = expon | sign
249 _write_ushort(f, expon)