tests: Fix a cpu-test debug message

We align at sample granularity and not byte granularity (which might
violate arch alignment requirements).
This commit is contained in:
Arun Raghavan 2012-10-30 11:37:06 +05:30
parent f10e663d04
commit 03e9d3d0d7

View file

@ -110,7 +110,7 @@ static void run_volume_test(pa_do_volume_func_t func, pa_do_volume_func_t orig_f
} }
if (perf) { if (perf) {
pa_log_debug("Testing svolume %dch performance with %d byte alignment", channels, align); pa_log_debug("Testing svolume %dch performance with %d sample alignment", channels, align);
PA_CPU_TEST_RUN_START("func", TIMES, TIMES2) { PA_CPU_TEST_RUN_START("func", TIMES, TIMES2) {
memcpy(samples, samples_orig, size); memcpy(samples, samples_orig, size);
@ -285,7 +285,7 @@ static void run_conv_test_float_to_s16(pa_convert_func_t func, pa_convert_func_t
} }
if (perf) { if (perf) {
pa_log_debug("Testing sconv performance with %d byte alignment", align); pa_log_debug("Testing sconv performance with %d sample alignment", align);
PA_CPU_TEST_RUN_START("func", TIMES, TIMES2) { PA_CPU_TEST_RUN_START("func", TIMES, TIMES2) {
func(nsamples, floats, samples); func(nsamples, floats, samples);
@ -331,7 +331,7 @@ static void run_conv_test_s16_to_float(pa_convert_func_t func, pa_convert_func_t
} }
if (perf) { if (perf) {
pa_log_debug("Testing sconv performance with %d byte alignment", align); pa_log_debug("Testing sconv performance with %d sample alignment", align);
PA_CPU_TEST_RUN_START("func", TIMES, TIMES2) { PA_CPU_TEST_RUN_START("func", TIMES, TIMES2) {
func(nsamples, samples, floats); func(nsamples, samples, floats);