]> code.delx.au - pulseaudio/commit
tests: Add remap test code to cpu-test
authorPeter Meerwald <p.meerwald@bct-electronic.com>
Wed, 30 Jan 2013 10:04:00 +0000 (11:04 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Fri, 1 Feb 2013 06:30:28 +0000 (08:30 +0200)
commit01a7c6b4e6c079a90b757eb1bf548a79160aad27
treef734070e835d624b834edd20802e4b205ee45d52
parent60aeb3dd23e4875250d97c873821425455a37b18
tests: Add remap test code to cpu-test

v2 (comments by Paul Menzel):
* generate test samples from -1..1, -0x8000..0x7fff
* check all output samples (not just half of them)

the idea is to compare the output of the C (reference) implementation
against the output of the optimized code path; currently, there are MMX
and SSE implementation for the mono-to-stereo remapper for s16 and float
sample formats

Signed-off-by: Peter Meerwald <p.meerwald@bct-electronic.com>
Cc: Paul Menzel <paulepanter@users.sourceforge.net>
src/tests/cpu-test.c