mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 13:28:31 +00:00
Various tweaks to spandsp
This commit is contained in:
1 parent
2490868830
commit
6716623d1a
13 files changed
+238
-369
No files matched your search
@@ -54,8 +54,8 @@ static int test_vec_copyf(void)
|
||||
for (i = 0; i < 99; i++)
|
||||
{
|
||||
x[i] = i;
|
||||
za[i] = -1.0f;
|
||||
zb[i] = -1.0f;
|
||||
za[i] = -0.5f;
|
||||
zb[i] = -0.5f;
|
||||
}
|
||||
vec_copyf_dumb(za + 3, x + 1, 0);
|
||||
vec_copyf(zb + 3, x + 1, 0);
|
||||
@@ -114,8 +114,8 @@ static int test_vec_negatef(void)
|
||||
for (i = 0; i < 99; i++)
|
||||
{
|
||||
x[i] = i;
|
||||
za[i] = -1.0f;
|
||||
zb[i] = -1.0f;
|
||||
za[i] = -0.5f;
|
||||
zb[i] = -0.5f;
|
||||
}
|
||||
vec_negatef_dumb(za + 3, x + 1, 0);
|
||||
vec_negatef(zb + 3, x + 1, 0);
|
||||
@@ -143,6 +143,7 @@ static int test_vec_negatef(void)
|
||||
vec_negatef(zb + 3, x + 1, 29);
|
||||
for (i = 0; i < 99; i++)
|
||||
{
|
||||
printf("C %d %f %f %f\n", i, x[i], za[i], zb[i]);
|
||||
if (za[i] != zb[i])
|
||||
{
|
||||
printf("vec_negatef() - %d %f %f\n", i, za[i], zb[i]);
|
||||
|
||||
Reference in new issue
Block a user