Home
last modified time | relevance | path

Searched refs:a (Results 1 – 25 of 25) sorted by relevance

/liblc3-3.5.0-3.4.0/test/neon/
Dneon.h55 static int32x4_t vmull_s16(int16x4_t a, int16x4_t b) in vmull_s16() argument
57 return (int32x4_t){ { a.e[0] * b.e[0], a.e[1] * b.e[1], in vmull_s16()
58 a.e[2] * b.e[2], a.e[3] * b.e[3] } }; in vmull_s16()
62 static int32x4_t vmlal_s16(int32x4_t r, int16x4_t a, int16x4_t b) in vmlal_s16() argument
65 r.e[0] + a.e[0] * b.e[0], r.e[1] + a.e[1] * b.e[1], in vmlal_s16()
66 r.e[2] + a.e[2] * b.e[2], r.e[3] + a.e[3] * b.e[3] } }; in vmlal_s16()
70 static int64x2_t vpadalq_s32(int64x2_t a, int32x4_t b) in vpadalq_s32() argument
74 r.e[0] = a.e[0] + ((int64_t)b.e[0] + b.e[1]); in vpadalq_s32()
75 r.e[1] = a.e[1] + ((int64_t)b.e[2] + b.e[3]); in vpadalq_s32()
103 static int16x4_t vext_s16(int16x4_t a, int16x4_t b, const int n) in vext_s16() argument
[all …]
Dltpf_neon.c30 void lc3_put_bits_generic(lc3_bits_t *a, unsigned b, int c) in lc3_put_bits_generic() argument
31 { (void)a, (void)b, (void)c; } in lc3_put_bits_generic()
33 unsigned lc3_get_bits_generic(struct lc3_bits *a, int b) in lc3_get_bits_generic() argument
34 { return (void)a, (void)b, 0; } in lc3_get_bits_generic()
81 int16_t alignas(4) a[500], b[500]; in check_correlate()
85 a[i] = rand() & 0xffff; in check_correlate()
89 correlate(a, b+200, 128, y, 100); in check_correlate()
90 neon_correlate(a, b+200, 128, y_neon, 100); in check_correlate()
94 correlate(a, b+199, 128, y, 99); in check_correlate()
95 neon_correlate(a, b+199, 128, y_neon, 99); in check_correlate()
/liblc3-3.5.0-3.4.0/test/arm/
Dsimd32.h23 static inline int16x2_t __pkhbt(int16x2_t a, int16x2_t b) in __pkhbt() argument
26 __asm("pkhbt %0, %1, %2" : "=r" (r) : "r" (a), "r" (b)); in __pkhbt()
37 static int16x2_t __pkhbt(int16x2_t a, int16x2_t b) in __pkhbt() argument
39 uint32_t a_bot = (uint32_t)a & 0x0000ffffu; in __pkhbt()
46 static int32_t __smlad(int16x2_t a, int16x2_t b, int32_t u) in __smlad() argument
48 int16_t a_hi = a >> 16, a_lo = a & 0xffff; in __smlad()
55 static int64_t __smlald(int16x2_t a, int16x2_t b, int64_t u) in __smlald() argument
57 int16_t a_hi = a >> 16, a_lo = a & 0xffff; in __smlald()
63 static int64_t __smlaldx(int16x2_t a, int16x2_t b, int64_t u) in __smlaldx() argument
65 int16_t a_hi = a >> 16, a_lo = a & 0xffff; in __smlaldx()
Dltpf_arm.c30 void lc3_put_bits_generic(lc3_bits_t *a, unsigned b, int c) in lc3_put_bits_generic() argument
31 { (void)a, (void)b, (void)c; } in lc3_put_bits_generic()
33 unsigned lc3_get_bits_generic(struct lc3_bits *a, int b) in lc3_get_bits_generic() argument
34 { return (void)a, (void)b, 0; } in lc3_get_bits_generic()
77 int16_t alignas(4) a[500], b[500]; in check_correlate()
81 a[i] = rand() & 0xffff; in check_correlate()
85 correlate(a, b+200, 128, y, 100); in check_correlate()
86 arm_correlate(a, b+200, 128, y_arm, 100); in check_correlate()
90 correlate(a, b+199, 128, y, 99); in check_correlate()
91 arm_correlate(a, b+199, 128, y_arm, 99); in check_correlate()
[all …]
/liblc3-3.5.0-3.4.0/src/
Dcommon.h64 #define LC3_MIN(a, b) ( (a) < (b) ? (a) : (b) ) argument
65 #define LC3_MAX(a, b) ( (a) > (b) ? (a) : (b) ) argument
Dltpf_neon.h195 LC3_HOT static inline float neon_dot(const int16_t *a, const int16_t *b, int n) in neon_dot() argument
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()
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()
227 const int16_t *a, const int16_t *b, int n, float *y, int nc) in neon_correlate() argument
230 const int16_t *an = (const int16_t *)a; in neon_correlate()
273 *(y++) = neon_dot(a, b--, n); in neon_correlate()
Dspec.c310 uint16_t a = x[i] >> 1, b = x[i+1] >> 1; in compute_nbits() local
314 int s = (a > 0) + (b > 0); in compute_nbits()
324 int m = (a | b) >> 2; in compute_nbits()
330 nbits_lsb += 2 + (a == 1) + (b == 1); in compute_nbits()
337 a >>= k; in compute_nbits()
345 nbits += lc3_spectrum_bits[lut[k]][a + 4*b]; in compute_nbits()
354 state = (state << 4) + (k > 1 ? 12 + k : 1 + (a + b) * (k + 1)); in compute_nbits()
400 uint16_t a = x[i] >> 1, b = x[i+1] >> 1; in put_quantized() local
407 int m = (a | b) >> 2; in put_quantized()
417 lc3_put_bit(bits, (a >> k) & 1); in put_quantized()
[all …]
Dattdet.c78 int32_t a[4]; in lc3_attdet_run() local
81 a[i] = LC3_MAX(attdet->an1 >> 2, attdet->en1); in lc3_attdet_run()
82 attdet->en1 = e[i], attdet->an1 = a[i]; in lc3_attdet_run()
84 if ((e[i] >> 3) > a[i] + (a[i] >> 4)) in lc3_attdet_run()
Dtns.c42 LC3_HOT static inline float dot(const float *a, const float *b, int n) in dot() argument
47 v += *(a++) * *(b++); in dot()
60 const float *x, float *gain, float (*a)[9]) in compute_lpc_coeffs()
113 float *a0 = a[f], a1[9]; in compute_lpc_coeffs()
152 LC3_HOT static void lpc_weighting(float pred_gain, float *a) in lpc_weighting() argument
158 a[i] *= (g *= gamma); in lpc_weighting()
166 LC3_HOT static void lpc_reflection(const float *a, float *rc) in lpc_reflection() argument
170 rc[7] = a[1+7]; in lpc_reflection()
175 b1[i] = (a[1+i] - rc[7] * a[7-i]) / e; in lpc_reflection()
349 float pred_gain[2], a[2][9]; in lc3_tns_analyze() local
[all …]
Dltpf_arm.h25 static inline int16x2_t __pkhbt(int16x2_t a, int16x2_t b) in __pkhbt() argument
28 __asm("pkhbt %0, %1, %2" : "=r" (r) : "r" (a), "r" (b)); in __pkhbt()
460 const int16_t *a, const int16_t *b, int n, float *y, int nc) in arm_correlate() argument
465 *(y++) = dot(a, b--, n), nc--; in arm_correlate()
470 const int16x2_t *an = (const int16x2_t *)(a ); in arm_correlate()
497 *(y++) = dot(a, b, n); in arm_correlate()
Dmeson.build5 # You may obtain a copy of the License at:
Dltpf.c389 LC3_HOT static inline float dot(const int16_t *a, const int16_t *b, int n) in dot() argument
395 v += *(a++) * *(b++); in dot()
412 const int16_t *a, const int16_t *b, int n, float *y, int nc) in correlate() argument
415 *(y++) = dot(a, b--, n); in correlate()
/liblc3-3.5.0-3.4.0/
DCONTRIBUTING.md4 just a few small guidelines you need to follow.
8 Contributions to this project must be accompanied by a Contributor License
12 your current agreements on file or to sign a new one.
14 You generally only need to submit a CLA once, so if you've already submitted one
15 (even if it was for a different project), you probably don't need to do it
DLICENSE32 transformation or translation of a Source form, including but
37 Object form, made available under the License, as indicated by a
44 represent, as a whole, an original work of authorship. For the purposes
61 designated in writing by the copyright owner as "Not a Contribution."
64 on behalf of whom a Contribution has been received by Licensor and
68 this License, each Contributor hereby grants to You a perpetual,
75 this License, each Contributor hereby grants to You a perpetual,
83 institute patent litigation against any entity (including a
84 cross-claim or counterclaim in a lawsuit) alleging that the Work
85 or a Contribution incorporated within the Work constitutes direct
[all …]
DMakefile43 $(eval $(1)_bin ?= $(1).a)
129 $(V)$(LD) $(filter %.o,$^) $(filter %.a,$^) $(LDFLAGS) \
DREADME.md25 Compiled library `liblc3.a` will be found in `bin` directory.
53 The standalone encoder `elc3` take a `wave` file as input and encode it
105 subjectively evaluated in a blind listening test.
Dmeson_options.txt5 # You may obtain a copy of the License at:
Dmeson.build5 # You may obtain a copy of the License at:
/liblc3-3.5.0-3.4.0/test/
Dtns.py123 a = np.ones(len(r))
125 for k in range(1, len(a)):
127 rc = -sum(a[:k] * r[k:0:-1]) / err
129 a[1:k] += rc * a[k-1:0:-1]
130 a[k] = rc
134 return (r[0] / err, a)
136 def lpc_weight(self, pred_gain, a): argument
139 return a * np.power(gamma, np.arange(len(a)))
141 def coeffs_reflexion(self, a): argument
144 b = a.copy()
[all …]
Dtns_py.c30 float *x, *g, (*a)[9]; in compute_lpc_coeffs_py() local
43 a_obj = new_2d_ptr(NPY_FLOAT, 2, 9, &a); in compute_lpc_coeffs_py()
45 compute_lpc_coeffs(dt, bw, x, g, a); in compute_lpc_coeffs_py()
53 float *a, *rc; in lpc_reflection_py() local
58 CTYPES_CHECK("a", to_1d_ptr(a_obj, NPY_FLOAT, 9, &a)); in lpc_reflection_py()
61 lpc_reflection(a, rc); in lpc_reflection_py()
Dspec.py154 a = abs(x[n ])
157 while max(a, b) >= 4:
165 a >>= 1
170 T.AC_SPEC_BITS[T.AC_SPEC_LOOKUP[t + lev*1024]][a + 4*b]
186 t = 1 + (a + b) * (lev + 1) if lev <= 1 else 12 + lev;
209 a = T1[sr] / 16 + 3
211 delta = a + (nbits - T1[sr]) * (b - a) / (T2[sr] - T1[sr])
334 a = abs(x[n ])
337 while max(a, b) >= 4:
344 lsb_0 = a & 1
[all …]
Dltpf.py80 a = [ 1 , -1.9652933726226904, 0.9658854605688177 ]
84 self.y[d+i] -= a[1] * self.y[d+i-1] + a[2] * self.y[d+i-2]
/liblc3-3.5.0-3.4.0/tables/
Dfastmath.py100 a = k * np.log2(np.ldexp(32 + i , -5)) - (i // 16) * (k/2);
103 an = np.ldexp(a, 15) + 0.5
104 bn = np.ldexp(b - a, 15) + 0.5
106 .format(int(np.ldexp(a, 15) + 0.5),
107 int(np.ldexp(b - a, 15) + 0.5)),
/liblc3-3.5.0-3.4.0/tools/
Ddlc3.c35 #define MIN(a, b) ( (a) < (b) ? (a) : (b) ) argument
39 #define MAX(a, b) ( (a) > (b) ? (a) : (b) ) argument
Dmeson.build5 # You may obtain a copy of the License at: