Home
last modified time | relevance | path

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

123456

/sof-3.4.0/src/math/
Dnumbers.c23 int gcd(int a, int b) in gcd() argument
26 return b; in gcd()
28 if (b == 0) in gcd()
38 if (b < 0) in gcd()
39 b = -b; in gcd()
45 for (k = 0; ((a | b) & 1) == 0; k++) { in gcd()
47 b >>= 1; in gcd()
56 while ((b & 1) == 0) in gcd()
57 b >>= 1; in gcd()
62 if (a > b) { in gcd()
[all …]
Dmatrix.c11 int mat_multiply(struct mat_matrix_16b *a, struct mat_matrix_16b *b, struct mat_matrix_16b *c) in mat_multiply() argument
18 int y_inc = b->columns; in mat_multiply()
19 const int shift_minus_one = a->fractions + b->fractions - c->fractions - 1; in mat_multiply()
21 if (a->columns != b->rows || a->rows != c->rows || b->columns != c->columns) in mat_multiply()
27 for (j = 0; j < b->columns; j++) { in mat_multiply()
30 y = b->data + j; in mat_multiply()
31 for (k = 0; k < b->rows; k++) { in mat_multiply()
45 for (j = 0; j < b->columns; j++) { in mat_multiply()
48 y = b->data + j; in mat_multiply()
49 for (k = 0; k < b->rows; k++) { in mat_multiply()
[all …]
Dpower.c46 int32_t power_int32(int32_t b, int32_t e) in power_int32() argument
57 if (b) { in power_int32()
58 multiplier = (int32_t)((1LL << 50) / (int64_t)b); in power_int32()
64 multiplier = b; in power_int32()
Dfir_hifi3.c174 ae_f64 b; in fir_32x16_2x_hifi3() local
202 b = AE_ZERO64(); in fir_32x16_2x_hifi3()
227 AE_MULAFD32X16X2_FIR_HH(b, a, d0, d1, coefs); in fir_32x16_2x_hifi3()
237 AE_MULAFD32X16X2_FIR_HL(b, a, d0, d1, coefs); in fir_32x16_2x_hifi3()
242 b = AE_SLAA64S(b, shift); in fir_32x16_2x_hifi3()
244 AE_S32_L_I(AE_ROUND32F48SSYM(b), (ae_int32 *)y1, 0); in fir_32x16_2x_hifi3()
Dfir_hifi2ep.c168 ae_q56s b; in fir_32x16_2x_hifiep() local
198 b = AE_ZEROQ56(); in fir_32x16_2x_hifiep()
219 AE_MULAAFP24S_HH_LL(b, d0, coefs); in fir_32x16_2x_hifiep()
232 AE_MULAAFP24S_HH_LL(b, d0, coefs); in fir_32x16_2x_hifiep()
240 b = AE_SRAAQ56(AE_SLLASQ56S(b, lshift), rshift); in fir_32x16_2x_hifiep()
242 AE_SQ32F_I(AE_ROUNDSQ32SYM(b), (ae_q32s *)y1, 0); in fir_32x16_2x_hifiep()
/sof-3.4.0/xtos/include/rtos/
Dbit.h12 #define BIT(b) (1 << (b)) argument
14 #define BIT(b) (1UL << (b)) argument
19 #define SET_BIT(b, x) (((x) & 1) << (b)) argument
22 #define GET_BIT(b, x) \ argument
23 (((x) & (1ULL << (b))) >> (b))
/sof-3.4.0/src/include/sof/math/
Dnumbers.h19 #define MIN(a, b) ((a) < (b) ? (a) : (b)) argument
20 #define MAX(a, b) ((a) < (b) ? (b) : (a)) argument
39 int gcd(int a, int b); /* Calculate greatest common divisor for a and b */
44 static inline int ceil_divide(int a, int b) in ceil_divide() argument
48 c = a / b; in ceil_divide()
57 if (!((a ^ b) & (1U << ((sizeof(int) * 8) - 1))) && c * b != a) in ceil_divide()
81 int16_t a, int16_t b, int16_t c, in cross_product_s16() argument
84 *px = (int32_t)b * f - (int32_t)c * e; in cross_product_s16()
86 *pz = (int32_t)a * e - (int32_t)b * d; in cross_product_s16()
/sof-3.4.0/zephyr/include/rtos/
Dbit.h17 #define SET_BIT(b, x) (((x) & 1) << (b)) argument
20 #define GET_BIT(b, x) \ argument
21 (((x) & (1ULL << (b))) >> (b))
/sof-3.4.0/src/include/sof/audio/eq_iir/
Deq_iir.h18 #define EQ_IIR_BYTES_TO_S16_SAMPLES(b) ((b) >> 1) argument
19 #define EQ_IIR_BYTES_TO_S32_SAMPLES(b) ((b) >> 2) argument
/sof-3.4.0/tools/tune/eq/
Deq_fir_blob_quant.m1 function fbr = eq_fir_blob_quant(b, bits, strip_trailing_zeros)
6 % fbr = eq_fir_blob_resp(b, bits)
7 % b - FIR coefficients
19 b = (b(:))'; variable
30 [bq, shift] = eq_fir_quantize(b, bits);
70 function [bq, shift] = eq_fir_quantize(b, bits)
72 % [bq, shift] = eq_fir_quantize(b, bits)
75 % b - FIR coefficients
87 m = max(abs(b));
89 bsr = b*2^shift;
Deq_define_parametric_eq.m88 function [b, a] = low_shelf_1st(fhz, gdb, fs)
94 [b, a] = my_bilinear(bs, as, fs);
97 function [b, a] = low_shelf_2nd(fhz, gdb, fs)
103 [b, a] = my_bilinear(bs, as, fs);
106 function [b, a] = high_shelf_1st(fhz, gdb, fs)
112 [b, a] = my_bilinear(bs, as, fs);
115 function [b, a] = high_shelf_2nd(fhz, gdb, fs)
121 [b, a] = my_bilinear(bs, as, fs);
125 function [b, a] = peak_2nd(fhz, gdb, Q, fs)
135 b = [A * A, 0, 0]; variable
[all …]
/sof-3.4.0/src/audio/selector/
Dselector_generic.c81 int b; in sel_s16le_nch() local
86 b = bytes_total - bytes_copied; in sel_s16le_nch()
88 b = MIN(b, bmax); in sel_s16le_nch()
90 b = MIN(b, bmax); in sel_s16le_nch()
91 memcpy_s(dst, b, src, b); in sel_s16le_nch()
92 src = audio_stream_wrap(source, src + b); in sel_s16le_nch()
93 dst = audio_stream_wrap(sink, dst + b); in sel_s16le_nch()
94 bytes_copied += b; in sel_s16le_nch()
153 int b; in sel_s32le_nch() local
158 b = bytes_total - bytes_copied; in sel_s32le_nch()
[all …]
/sof-3.4.0/src/include/sof/audio/eq_fir/
Deq_fir.h28 #define EQ_FIR_BYTES_TO_S16_SAMPLES(b) ((b) >> 1) argument
29 #define EQ_FIR_BYTES_TO_S32_SAMPLES(b) ((b) >> 2) argument
/sof-3.4.0/src/arch/xtensa/xtos/
Dnull-vectors.S59 1: j 1b // infinite loop - unexpected user-vectored exception
88 1: j 1b // infinite loop - unexpected level-2 interrupt
110 1: j 1b // infinite loop - unexpected level-3 interrupt
132 1: j 1b // infinite loop - unexpected level-4 interrupt
154 1: j 1b // infinite loop - unexpected level-5 interrupt
176 1: j 1b // infinite loop - unexpected level-6 interrupt
Dxtos-internal.h314 # define IFNSA(a,b) a argument
316 # define IFNSA(a,b) b
404 l32r \ax, 2b
423 l32r \ay, 2b
442 l32r \ax, 2b
461 l32r \ax, 2b
480 l32r \ay, 2b
600 #define _JOIN3(a,b,c) a ## b ## c argument
601 #define JOIN3(a,b,c) _JOIN3(a,b,c) argument
608 #define GREATERTHAN(a, b) (((b) - (a)) & ~0xFFF) argument
[all …]
/sof-3.4.0/tools/tune/src/
Dsrc_export_table_2s.m63 for b=1:n_out
65 all_modes(i,:) = [ l_2s(n,a,b) m_2s(n,a,b) ...
66 pb_2s(n,a,b) sb_2s(n,a,b) n a b ];
90 b = all_modes(ia(i), 7); variable
91 sfl = sfl +taps_2s(n, a, b); % Count sum of filter lengths
157 for b = 1:n_out
161 ctype, l_2s(n,a,b), m_2s(n,a,b), ...
162 pb_2s(n,a,b), sb_2s(n,a,b));
173 if b < n_out
Dsrc_generate.m105 for b = 1:nfso
108 fs2 = fs_out(b);
109 if fs_inout(a,b) < eps
185 l_2s(:,a,b) = [src1.L src2.L];
186 m_2s(:,a,b) = [src1.M src2.M];
187 mops_2s(:,a,b) = [src1.MOPS src2.MOPS];
188 pb_2s(:,a,b) = [src1.c_pbi src2.c_pbi];
189 sb_2s(:,a,b) = [src1.c_sbi src2.c_sbi];
190 taps_2s(:,a,b) = [src1.filter_length src2.filter_length];
202 end % b
[all …]
/sof-3.4.0/tools/tune/crossover/
Dcrossover_gen_coefs.m30 % Generate the a,b coefficients for a second order
33 [lp.b, lp.a] = low_pass_2nd_resonance(fc, 0, fs);
36 % Generate the a,b coefficients for a second order
39 [hp.b, hp.a] = high_pass_2nd_resonance(fc, 0, fs);
42 function [b, a] = high_pass_2nd_resonance(f, resonance, fs)
54 b = [1 - cutoff, 0, 0]; variable
76 b = [b0, b1, b2]; variable
80 function [b, a] = low_pass_2nd_resonance(f, resonance, fs)
90 b = [cutoff, 0, 0]; variable
112 b = [b0, b1, b2]; variable
/sof-3.4.0/src/platform/intel/cavs/include/cavs/lib/
Dasm_memory_management.h42 bne \ax, \ay, 1b
52 bne \ax, \ay, 1b
63 bne \ax, \mask, 1b
77 bnez \ax, 1b
/sof-3.4.0/test/cmocka/src/math/arithmetic/
Dscalar_power.c30 for (i = 0; i < ARRAY_SIZE(b); i++) { in test_math_arithmetic_power_fixed()
32 p = power_int32(b[i], e[j]); in test_math_arithmetic_power_fixed()
37 __func__, diff, (double)b[i] / (1 << 25)); in test_math_arithmetic_power_fixed()
/sof-3.4.0/tools/test/audio/test_utils/
Dprint_pf.m48 for b = 1:n_prmo
49 if pf(a,b,1) < 0
52 cstr = sprintf('%d', pf(a,b,1));
54 if pf(a,b,n) < 0
57 cstr = sprintf('%s/%d', cstr,pf(a,b,n));
61 if b < n_prmo
Dprint_val.m45 for b = 1:n_prmo
46 if pf(a,b,1) < 0
49 if isnan(val(a,b))
52 cstr = sprintf('%8.2f', val(a,b));
55 if b < n_prmo
/sof-3.4.0/tools/tune/dcblock/
Ddcblock_plot_stepfn.m4 % Therefore the coefficients are b = [1 -1], a = [1 -R]
5 b = [1 -1]; variable
9 plot(t, filter(b, a, ones(length(t), 1)))
Ddcblock_plot_transferfn.m4 % Therefore the coefficients are b = [1 -1], a = [1 -R]
5 b = [1 -1]; variable
10 semilogx(f, 20*log10(freqz(b, a, f, fs)));
/sof-3.4.0/src/arch/xtensa/include/xtensa/
Dcoreasm.h229 floopend_ \ar, 8b, 9
1090 .macro add.a a,b,c ; add \a, \b, \c ; .endm
1094 .macro addi.a a,b,c ; addi \a, \b, \c ; .endm
1098 .macro addmi.a a,b,c ; addmi \a, \b, \c ; .endm
1102 .macro addx2.a a,b,c ; addx2 \a, \b, \c ; .endm
1106 .macro addx4.a a,b,c ; addx4 \a, \b, \c ; .endm
1110 .macro addx8.a a,b,c ; addx8 \a, \b, \c ; .endm
1114 .macro mov.a a,b ; mov \a, \b ; .endm
1118 .macro sub.a a,b,c ; sub \a, \b, \c ; .endm
1143 bne \scratch1, \scratch2, 1b
[all …]

123456