Home
last modified time | relevance | path

Searched refs:expon (Results 1 – 4 of 4) sorted by relevance

/third_party/libsnd/src/GSM610/
Drpe.c217 int16_t expon, mant ; in APCM_quantization_xmaxc_to_exp_mant() local
222 expon = 0 ; in APCM_quantization_xmaxc_to_exp_mant()
223 if (xmaxc > 15) expon = SASR_W (xmaxc, 3) - 1 ; in APCM_quantization_xmaxc_to_exp_mant()
224 mant = xmaxc - (expon << 3) ; in APCM_quantization_xmaxc_to_exp_mant()
227 { expon = -4 ; in APCM_quantization_xmaxc_to_exp_mant()
233 expon-- ; in APCM_quantization_xmaxc_to_exp_mant()
238 assert (expon >= -4 && expon <= 6) ; in APCM_quantization_xmaxc_to_exp_mant()
241 *expon_out = expon ; in APCM_quantization_xmaxc_to_exp_mant()
256 int16_t expon, mant ; in APCM_quantization() local
272 expon = 0 ; in APCM_quantization()
[all …]
DChangeLog13 Renamed variables "exp" to "expon" to avoid shadowed parameter warnigns.
/third_party/libsnd/src/G72x/
Dg72x.c334 short expon ; /* Integer part of base 2 log of 'd' */ in quantize() local
346 expon = quan (dqm >> 1, power2, 15) ; in quantize()
347 mant = ((dqm << 7) >> expon) & 0x7F ; /* Fractional portion. */ in quantize()
348 dl = (expon << 7) + mant ; in quantize()
418 short mag, expon ; /* Adaptive predictor, FLOAT A */ in update() local
547 { expon = quan (mag, power2, 15) ; in update()
549 (expon << 6) + ((mag << 6) >> expon) : in update()
550 (expon << 6) + ((mag << 6) >> expon) - 0x400 ; in update()
558 { expon = quan (sr, power2, 15) ; in update()
559 state_ptr->sr [0] = (expon << 6) + ((sr << 6) >> expon) ; in update()
[all …]
/third_party/python/Lib/
Daifc.py185 expon = _read_short(f) # 2 bytes
187 if expon < 0:
189 expon = expon + 0x8000
192 if expon == himant == lomant == 0:
194 elif expon == 0x7FFF:
197 expon = expon - 16383
198 f = (himant * 0x100000000 + lomant) * pow(2.0, expon - 63)
229 expon = 0
233 fmant, expon = math.frexp(x)
234 if expon > 16384 or fmant >= 1 or fmant != fmant: # Infinity or NaN
[all …]