Home
last modified time | relevance | path

Searched refs:u (Results 1 – 8 of 8) sorted by relevance

/liblc3-3.5.0-3.4.0/test/arm/
Dsimd32.h46 static int32_t __smlad(int16x2_t a, int16x2_t b, int32_t u) in __smlad() argument
51 return u + (a_hi * b_hi) + (a_lo * b_lo); in __smlad()
55 static int64_t __smlald(int16x2_t a, int16x2_t b, int64_t u) in __smlald() argument
59 return u + (a_hi * b_hi) + (a_lo * b_lo); in __smlald()
63 static int64_t __smlaldx(int16x2_t a, int16x2_t b, int64_t u) in __smlaldx() argument
67 return u + (a_hi * b_lo) + (a_lo * b_hi); in __smlaldx()
/liblc3-3.5.0-3.4.0/src/
Dfastmath.h148 union { float f; uint32_t u; } x2 = { .f = x*x }; in fast_db_q16() member
150 int e2 = (int)(x2.u >> 22) - 2*127; in fast_db_q16()
151 int hi = (x2.u >> 18) & 0x1f; in fast_db_q16()
152 int lo = (x2.u >> 2) & 0xffff; in fast_db_q16()
Dltpf_neon.h200 int32x4_t u; in neon_dot() local
202 u = vmull_s16( vld1_s16(a), vld1_s16(b)), a += 4, b += 4; in neon_dot()
203 u = vmlal_s16(u, vld1_s16(a), vld1_s16(b)), a += 4, b += 4; in neon_dot()
204 v = vpadalq_s32(v, u); in neon_dot()
206 u = vmull_s16( vld1_s16(a), vld1_s16(b)), a += 4, b += 4; in neon_dot()
207 u = vmlal_s16(u, vld1_s16(a), vld1_s16(b)), a += 4, b += 4; in neon_dot()
208 v = vpadalq_s32(v, u); in neon_dot()
Dmdct.c253 struct lc3_complex u, uw = *(w0++); in mdct_pre_fft() local
254 u.re = - *(--x1) * uw.re + *x0 * uw.im; in mdct_pre_fft()
255 u.im = *(x0++) * uw.re + *x1 * uw.im; in mdct_pre_fft()
261 *(y0++) = u; in mdct_pre_fft()
424 union { float *f; struct lc3_complex *z; } u = { .z = buffer }; in lc3_mdct_forward() local
426 mdct_window(dt, sr, x, d, u.f); in lc3_mdct_forward()
428 mdct_pre_fft(rot, u.f, u.z); in lc3_mdct_forward()
429 u.z = fft(u.z, ns/2, u.z, z); in lc3_mdct_forward()
430 mdct_post_fft(rot, u.z, y, sqrtf( (2.f*nf) / (ns*ns) )); in lc3_mdct_forward()
445 union { float *f; struct lc3_complex *z; } u = { .z = buffer }; in lc3_mdct_inverse() local
[all …]
Dltpf.c649 int16_t u[n_12k8], v[n_12k8]; in lc3_ltpf_analyse() local
653 interpolate(x_12k8, n_12k8, 0, u); in lc3_ltpf_analyse()
656 nc = dot(u, v, n_12k8) / sqrtf(dot(u, u, n_12k8) * dot(v, v, n_12k8)); in lc3_ltpf_analyse()
704 float u[w]; in synthesize_template() local
715 u[j] = 0; in synthesize_template()
721 u[j-k] -= yi * c[k]; in synthesize_template()
724 u[j-k] += xi * c[w+k]; in synthesize_template()
727 u[w-1] = 0; in synthesize_template()
738 u[(j+(w-1)-k)%w] -= yi * c[k]; in synthesize_template()
741 u[(j+(w-1)-k)%w] += xi * c[w+k]; in synthesize_template()
[all …]
Dspec.c483 int u = 0, v = 0; in get_quantized() local
494 u |= lc3_get_bit(bits) << shl; in get_quantized()
509 u |= a << shl; in get_quantized()
512 xq[i ] = u && lc3_get_bit(bits) ? -u : u; in get_quantized()
515 *nf_seed = (*nf_seed + u * i + v * (i+1)) & 0xffff; in get_quantized()
/liblc3-3.5.0-3.4.0/test/
Dltpf.py37 self.u = np.zeros(self.n + 2)
51 self.u[:2] = self.u[-2:]
60 u = self.u
72 u[2+i] = p * np.dot( x[e:e+w+1], np.take(h, k) )
75 u = 0.5 * u
82 self.y[d:d+n] = b[0] * u[2:] + b[1] * u[1:-1] + b[2] * u[:-2]
170 u = x[:n]
172 uv = np.dot(u, v)
173 return uv / np.sqrt(np.dot(u, u) * np.dot(v, v)) if uv > 0 else 0
242 u = [ np.dot( np.take(x, i-k), np.take(h, 4*k) ) \
[all …]
/liblc3-3.5.0-3.4.0/test/neon/
Dneon.h250 static float32x2_t vcreate_f32(uint64_t u) in vcreate_f32() argument
252 float *f = (float *)&u; in vcreate_f32()