volume: Fix sample array size for tests
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Wed, 27 Oct 2010 10:30:14 +0000 (11:30 +0100)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Sat, 5 Mar 2011 07:48:01 +0000 (13:18 +0530)
Somewhere in the history of the MMX tests, the number of channels was
changed from 1 to 2, but the number of samples was not increased to make
it even (multiple of the frame size).

src/pulsecore/svolume_arm.c
src/pulsecore/svolume_mmx.c
src/pulsecore/svolume_sse.c

index 12660dd..a028b82 100644 (file)
@@ -130,7 +130,7 @@ pa_volume_s16ne_arm (int16_t *samples, int32_t *volumes, unsigned channels, unsi
 
 #ifdef RUN_TEST
 #define CHANNELS 2
-#define SAMPLES 1023
+#define SAMPLES 1022
 #define TIMES 1000
 #define PADDING 16
 
index 5bfe6d4..2ffd608 100644 (file)
@@ -243,7 +243,7 @@ pa_volume_s16re_mmx (int16_t *samples, int32_t *volumes, unsigned channels, unsi
 
 #ifdef RUN_TEST
 #define CHANNELS 2
-#define SAMPLES 1021
+#define SAMPLES 1022
 #define TIMES 1000
 #define PADDING 16
 
index f3aa1ed..ff2a12e 100644 (file)
@@ -255,7 +255,7 @@ pa_volume_s16re_sse2 (int16_t *samples, int32_t *volumes, unsigned channels, uns
 
 #ifdef RUN_TEST
 #define CHANNELS 2
-#define SAMPLES 1021
+#define SAMPLES 1022
 #define TIMES 1000
 #define PADDING 16