Home
last modified time | relevance | path

Searched refs:xq_off (Results 1 – 2 of 2) sorted by relevance

/liblc3-latest/src/
Dspec.c346 float xq_off = lc3_hr(sr) ? 0.5f : 6.f/16; in compute_nbits() local
347 uint32_t a = fabsf(x[i+0]) + xq_off; in compute_nbits()
348 uint32_t b = fabsf(x[i+1]) + xq_off; in compute_nbits()
435 float xq_off = lc3_hr(sr) ? 0.5f : 6.f/16; in put_quantized() local
436 uint32_t a = fabsf(x[i+0]) + xq_off; in put_quantized()
437 uint32_t b = fabsf(x[i+1]) + xq_off; in put_quantized()
578 float xq_off = xq_lim / 2; in put_residual() local
591 x[i] += b ? -xq_off : xq_off; in put_residual()
594 xq_off *= xq_lim; in put_residual()
642 float xq_off = hrmode ? 0.5f : 6.f/16; in put_lsb() local
[all …]
/liblc3-latest/test/
Dspec.py767 xq_off = [ 0.375, 0.5 ][hrmode]
773 x = xq - np.select([xq < 0, xq > 0], np.array([ xq_off, -xq_off ]))