Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 20 of 20) sorted by relevance

/sof-3.4.0/test/cmocka/src/math/arithmetic/
Dbase_10_logarithm.c81 double diff; in test_math_arithmetic_base10log_fixed() local
86 diff = fabs(common_log10_ref_table[i] - (double)clogfxp / (1 << 28)); in test_math_arithmetic_base10log_fixed()
88 if (diff > CMP_TOLERANCE) { in test_math_arithmetic_base10log_fixed()
89 printf("%s: diff for %.16f: val = %16d, log10() = %.16f\n", __func__, diff, in test_math_arithmetic_base10log_fixed()
91 assert_true(diff <= CMP_TOLERANCE); in test_math_arithmetic_base10log_fixed()
Dbase_e_logarithm.c80 double diff; in test_math_arithmetic_base_e_log_fixed() local
85 diff = fabs(natural_log_lookup_table[i] - (double)logefxp / (1 << 27)); in test_math_arithmetic_base_e_log_fixed()
87 if (diff > CMP_TOLERANCE) { in test_math_arithmetic_base_e_log_fixed()
88 printf("%s: diff for %.16f: value = %16d, log() = %.16f\n", __func__, diff, in test_math_arithmetic_base_e_log_fixed()
90 assert_true(diff <= CMP_TOLERANCE); in test_math_arithmetic_base_e_log_fixed()
Dsquare_root.c138 double diff; in test_math_arithmetic_sqrt_fixed() local
143 diff = fabs(sqrt_ref_table[i] - y); in test_math_arithmetic_sqrt_fixed()
145 if (diff > CMP_TOLERANCE) { in test_math_arithmetic_sqrt_fixed()
147 diff, (double)sqrt_ref_table[i], y); in test_math_arithmetic_sqrt_fixed()
148 assert_true(diff <= CMP_TOLERANCE); in test_math_arithmetic_sqrt_fixed()
Dbase2_logarithm.c54 float diff = fabs(log2_lookup_table[i] - (double)y / (1 << 16)); in test_math_arithmetic_base2log_fixed() local
56 if (diff > CMP_TOLERANCE) { in test_math_arithmetic_base2log_fixed()
57 printf("%s: diff for %.16f: value = %.16f, log2 = %.16f\n", __func__, diff, in test_math_arithmetic_base2log_fixed()
59 assert_true(diff <= CMP_TOLERANCE); in test_math_arithmetic_base2log_fixed()
Dscalar_power.c33 float diff = fabsf(power_table[i][j] - (double)p / (1 << 15)); in test_math_arithmetic_power_fixed() local
35 if (diff > CMP_TOLERANCE) { in test_math_arithmetic_power_fixed()
37 __func__, diff, (double)b[i] / (1 << 25)); in test_math_arithmetic_power_fixed()
40 assert_true(diff <= CMP_TOLERANCE); in test_math_arithmetic_power_fixed()
/sof-3.4.0/test/cmocka/src/math/trig/
Dcos_16b_fixed.c33 float diff = fabsf(cos_ref_table[theta] - r); in test_math_trig_cos_fixed() local
35 if (diff > CMP_TOLERANCE) { in test_math_trig_cos_fixed()
37 theta, diff); in test_math_trig_cos_fixed()
40 assert_true(diff <= CMP_TOLERANCE); in test_math_trig_cos_fixed()
Dcos_32b_fixed.c33 float diff = fabsf(cos_ref_table[theta] - r); in test_math_trig_cos_fixed() local
35 if (diff > CMP_TOLERANCE) { in test_math_trig_cos_fixed()
37 theta, diff); in test_math_trig_cos_fixed()
40 assert_true(diff <= CMP_TOLERANCE); in test_math_trig_cos_fixed()
Dsin_16b_fixed.c33 float diff = fabsf(sin_ref_table[theta] - r); in test_math_trig_sin_fixed() local
35 if (diff > CMP_TOLERANCE) { in test_math_trig_sin_fixed()
37 theta, diff); in test_math_trig_sin_fixed()
40 assert_true(diff <= CMP_TOLERANCE); in test_math_trig_sin_fixed()
Dsin_32b_fixed.c33 float diff = fabsf(sin_ref_table[theta] - r); in test_math_trig_sin_fixed() local
35 if (diff > CMP_TOLERANCE) { in test_math_trig_sin_fixed()
37 theta, diff); in test_math_trig_sin_fixed()
40 assert_true(diff <= CMP_TOLERANCE); in test_math_trig_sin_fixed()
Dacos_16b_fixed.c42 float diff = fabsf(acos_ref_table[indx] - r); in test_math_trig_acos_16b_fixed() local
44 if (diff > CMP_TOLERANCE) { in test_math_trig_acos_16b_fixed()
46 ((180 / _M_PI) * b_i) / (1 << 30), diff); in test_math_trig_acos_16b_fixed()
49 assert_true(diff <= CMP_TOLERANCE); in test_math_trig_acos_16b_fixed()
Dacos_32b_fixed.c42 float diff = fabsf(acos_ref_table[indx] - r); in test_math_trig_acos_32b_fixed() local
44 if (diff > CMP_TOLERANCE) { in test_math_trig_acos_32b_fixed()
46 ((180 / _M_PI) * b_i) / (1 << 30), diff); in test_math_trig_acos_32b_fixed()
49 assert_true(diff <= CMP_TOLERANCE); in test_math_trig_acos_32b_fixed()
Dasin_16b_fixed.c42 float diff = fabsf(asin_ref_table[indx] - r); in test_math_trig_asin_16b_fixed() local
44 if (diff > CMP_TOLERANCE) { in test_math_trig_asin_16b_fixed()
46 ((180 / _M_PI) * b_i) / (1 << 30), diff); in test_math_trig_asin_16b_fixed()
49 assert_true(diff <= CMP_TOLERANCE); in test_math_trig_asin_16b_fixed()
Dasin_32b_fixed.c42 float diff = fabsf(asin_ref_table[indx] - r); in test_math_trig_asin_32b_fixed() local
44 if (diff > CMP_TOLERANCE) { in test_math_trig_asin_32b_fixed()
46 ((180 / _M_PI) * b_i) / (1 << 30), diff); in test_math_trig_asin_32b_fixed()
49 assert_true(diff <= CMP_TOLERANCE); in test_math_trig_asin_32b_fixed()
/sof-3.4.0/scripts/
Dtest-repro-build.sh57 diff --color=auto -U20 \
116 diff --report-identical-files \
118 diff -u --ignore-matching-lines='file format ' \
126 diff -u --report-identical-files \
181 diff -qr b0 b1/ |
Dsof-pre-commit-hook.sh5 exec git diff --cached | scripts/checkpatch.pl --no-tree --codespell --no-signoff -q -
/sof-3.4.0/src/schedule/
Dzephyr_domain.c65 unsigned int cycles0, cycles1, diff, timer_fired; in zephyr_domain_thread_fn() local
76 diff = cycles1 - cycles0; in zephyr_domain_thread_fn()
78 diff = UINT32_MAX - cycles0 + cycles1; in zephyr_domain_thread_fn()
84 cycles_sum += diff; in zephyr_domain_thread_fn()
85 cycles_max = diff > cycles_max ? diff : cycles_max; in zephyr_domain_thread_fn()
Dll_schedule.c169 uint32_t diff; in dsp_load_check() local
172 diff = cycles1 - cycles0; in dsp_load_check()
174 diff = UINT32_MAX - cycles0 + cycles1; in dsp_load_check()
176 task->cycles_sum += diff; in dsp_load_check()
178 if (task->cycles_max < diff) in dsp_load_check()
179 task->cycles_max = diff; in dsp_load_check()
/sof-3.4.0/scripts/cmake/
Dgit-submodules.cmake11 # "git status" nor "git diff" every few minutes and not
32 "There are submodule changes, check git status and git diff\n${stdout}")
/sof-3.4.0/installer/
DGNUmakefile312 diff -u tests/staging_sof${IPC_VERSION}_ref.txt ${BUILDS_ROOT}/staging_sof_tree.txt
324 ! diff -qr --no-dereference ${COMPARE_REFS}/sof/ \
327 ! diff -qr --no-dereference ${COMPARE_REFS}/sof-tplg/ \
/sof-3.4.0/src/samples/audio/
Ddetect_test.c176 int32_t diff; in default_detect_test() local
197 diff = abs(*(int32_t *)src) - abs(cd->activation); in default_detect_test()
199 diff = abs(*(int16_t *)src) - in default_detect_test()
203 diff >>= cd->config.activation_shift; in default_detect_test()
204 cd->activation += diff; in default_detect_test()