aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pcm_format.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-03-15 10:49:50 +0100
committerMax Kellermann <max@duempel.org>2014-03-15 10:53:13 +0100
commit3932e62fc7d8bc05e4f77c1b3cd69fd314cee3d1 (patch)
treec14b8ff0404fad7c68a058ad1b301dbe9b326a21 /test/test_pcm_format.cxx
parent729304aef54ddecfb124c168ec1160f3bf970a47 (diff)
downloadmpd-3932e62fc7d8bc05e4f77c1b3cd69fd314cee3d1.tar.gz
mpd-3932e62fc7d8bc05e4f77c1b3cd69fd314cee3d1.tar.xz
mpd-3932e62fc7d8bc05e4f77c1b3cd69fd314cee3d1.zip
test/test_pcm: replace 256 with prime number
Use some odd number that will expose problems with remaining samples after optimized vector operations.
Diffstat (limited to 'test/test_pcm_format.cxx')
-rw-r--r--test/test_pcm_format.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_pcm_format.cxx b/test/test_pcm_format.cxx
index 381554921..825a8bd84 100644
--- a/test/test_pcm_format.cxx
+++ b/test/test_pcm_format.cxx
@@ -29,7 +29,7 @@
void
PcmFormatTest::TestFormat8to16()
{
- constexpr size_t N = 256;
+ constexpr size_t N = 509;
const auto src = TestDataBuffer<int8_t, N>();
PcmBuffer buffer;
@@ -45,7 +45,7 @@ PcmFormatTest::TestFormat8to16()
void
PcmFormatTest::TestFormat16to24()
{
- constexpr size_t N = 256;
+ constexpr size_t N = 509;
const auto src = TestDataBuffer<int16_t, N>();
PcmBuffer buffer;
@@ -60,7 +60,7 @@ PcmFormatTest::TestFormat16to24()
void
PcmFormatTest::TestFormat16to32()
{
- constexpr size_t N = 256;
+ constexpr size_t N = 509;
const auto src = TestDataBuffer<int16_t, N>();
PcmBuffer buffer;
@@ -75,7 +75,7 @@ PcmFormatTest::TestFormat16to32()
void
PcmFormatTest::TestFormatFloat()
{
- constexpr size_t N = 256;
+ constexpr size_t N = 509;
const auto src = TestDataBuffer<int16_t, N>();
PcmBuffer buffer1, buffer2;