mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
fix windows build issues from snapshot spandsp-20090131
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11602 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
#include "spandsp/vector_float.h"
|
||||
|
||||
#if defined(__GNUC__) && defined(SPANDSP_USE_SSE2)
|
||||
void vec_copyf(float z[], const float x[], int n)
|
||||
SPAN_DECLARE(void) vec_copyf(float z[], const float x[], int n)
|
||||
{
|
||||
int i;
|
||||
__m128 n1;
|
||||
@@ -98,7 +98,7 @@ void vec_copyf(float z[], const float x[], int n)
|
||||
}
|
||||
}
|
||||
#else
|
||||
void vec_copyf(float z[], const float x[], int n)
|
||||
SPAN_DECLARE(void) vec_copyf(float z[], const float x[], int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -108,7 +108,7 @@ void vec_copyf(float z[], const float x[], int n)
|
||||
#endif
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void vec_copy(double z[], const double x[], int n)
|
||||
SPAN_DECLARE(void) vec_copy(double z[], const double x[], int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -129,7 +129,7 @@ void vec_copyl(long double z[], const long double x[], int n)
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && defined(SPANDSP_USE_SSE2)
|
||||
void vec_negatef(float z[], const float x[], int n)
|
||||
SPAN_DECLARE(void) vec_negatef(float z[], const float x[], int n)
|
||||
{
|
||||
int i;
|
||||
static const uint32_t mask = 0x80000000;
|
||||
@@ -158,7 +158,7 @@ void vec_negatef(float z[], const float x[], int n)
|
||||
}
|
||||
}
|
||||
#else
|
||||
void vec_negatef(float z[], const float x[], int n)
|
||||
SPAN_DECLARE(void) vec_negatef(float z[], const float x[], int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -168,7 +168,7 @@ void vec_negatef(float z[], const float x[], int n)
|
||||
#endif
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void vec_negate(double z[], const double x[], int n)
|
||||
SPAN_DECLARE(void) vec_negate(double z[], const double x[], int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -189,7 +189,7 @@ void vec_negatel(long double z[], const long double x[], int n)
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && defined(SPANDSP_USE_SSE2)
|
||||
void vec_zerof(float z[], int n)
|
||||
SPAN_DECLARE(void) vec_zerof(float z[], int n)
|
||||
{
|
||||
int i;
|
||||
__m128 n1;
|
||||
@@ -212,7 +212,7 @@ void vec_zerof(float z[], int n)
|
||||
}
|
||||
}
|
||||
#else
|
||||
void vec_zerof(float z[], int n)
|
||||
SPAN_DECLARE(void) vec_zerof(float z[], int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -222,7 +222,7 @@ void vec_zerof(float z[], int n)
|
||||
#endif
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void vec_zero(double z[], int n)
|
||||
SPAN_DECLARE(void) vec_zero(double z[], int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -243,7 +243,7 @@ void vec_zerol(long double z[], int n)
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && defined(SPANDSP_USE_SSE2)
|
||||
void vec_setf(float z[], float x, int n)
|
||||
SPAN_DECLARE(void) vec_setf(float z[], float x, int n)
|
||||
{
|
||||
int i;
|
||||
__m128 n1;
|
||||
@@ -266,7 +266,7 @@ void vec_setf(float z[], float x, int n)
|
||||
}
|
||||
}
|
||||
#else
|
||||
void vec_setf(float z[], float x, int n)
|
||||
SPAN_DECLARE(void) vec_setf(float z[], float x, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -276,7 +276,7 @@ void vec_setf(float z[], float x, int n)
|
||||
#endif
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void vec_set(double z[], double x, int n)
|
||||
SPAN_DECLARE(void) vec_set(double z[], double x, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -297,7 +297,7 @@ void vec_setl(long double z[], long double x, int n)
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && defined(SPANDSP_USE_SSE2)
|
||||
void vec_addf(float z[], const float x[], const float y[], int n)
|
||||
SPAN_DECLARE(void) vec_addf(float z[], const float x[], const float y[], int n)
|
||||
{
|
||||
int i;
|
||||
__m128 n1;
|
||||
@@ -325,7 +325,7 @@ void vec_addf(float z[], const float x[], const float y[], int n)
|
||||
}
|
||||
}
|
||||
#else
|
||||
void vec_addf(float z[], const float x[], const float y[], int n)
|
||||
SPAN_DECLARE(void) vec_addf(float z[], const float x[], const float y[], int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -335,7 +335,7 @@ void vec_addf(float z[], const float x[], const float y[], int n)
|
||||
#endif
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void vec_add(double z[], const double x[], const double y[], int n)
|
||||
SPAN_DECLARE(void) vec_add(double z[], const double x[], const double y[], int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -354,7 +354,7 @@ void vec_addl(long double z[], const long double x[], const long double y[], int
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
#if defined(__GNUC__) && defined(SPANDSP_USE_SSE2)
|
||||
void vec_scaledxy_addf(float z[], const float x[], float x_scale, const float y[], float y_scale, int n)
|
||||
SPAN_DECLARE(void) vec_scaledxy_addf(float z[], const float x[], float x_scale, const float y[], float y_scale, int n)
|
||||
{
|
||||
int i;
|
||||
__m128 n1;
|
||||
@@ -388,7 +388,7 @@ void vec_scaledxy_addf(float z[], const float x[], float x_scale, const float y[
|
||||
}
|
||||
}
|
||||
#else
|
||||
void vec_scaledxy_addf(float z[], const float x[], float x_scale, const float y[], float y_scale, int n)
|
||||
SPAN_DECLARE(void) vec_scaledxy_addf(float z[], const float x[], float x_scale, const float y[], float y_scale, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -398,7 +398,7 @@ void vec_scaledxy_addf(float z[], const float x[], float x_scale, const float y[
|
||||
#endif
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void vec_scaledxy_add(double z[], const double x[], double x_scale, const double y[], double y_scale, int n)
|
||||
SPAN_DECLARE(void) vec_scaledxy_add(double z[], const double x[], double x_scale, const double y[], double y_scale, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -419,7 +419,7 @@ void vec_scaledxy_addl(long double z[], const long double x[], long double x_sca
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && defined(SPANDSP_USE_SSE2)
|
||||
void vec_scaledy_addf(float z[], const float x[], const float y[], float y_scale, int n)
|
||||
SPAN_DECLARE(void) vec_scaledy_addf(float z[], const float x[], const float y[], float y_scale, int n)
|
||||
{
|
||||
int i;
|
||||
__m128 n1;
|
||||
@@ -450,7 +450,7 @@ void vec_scaledy_addf(float z[], const float x[], const float y[], float y_scale
|
||||
}
|
||||
}
|
||||
#else
|
||||
void vec_scaledy_addf(float z[], const float x[], const float y[], float y_scale, int n)
|
||||
SPAN_DECLARE(void) vec_scaledy_addf(float z[], const float x[], const float y[], float y_scale, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -460,7 +460,7 @@ void vec_scaledy_addf(float z[], const float x[], const float y[], float y_scale
|
||||
#endif
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void vec_scaledy_add(double z[], const double x[], const double y[], double y_scale, int n)
|
||||
SPAN_DECLARE(void) vec_scaledy_add(double z[], const double x[], const double y[], double y_scale, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -481,7 +481,7 @@ void vec_scaledy_addl(long double z[], const long double x[], const long double
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && defined(SPANDSP_USE_SSE2)
|
||||
void vec_subf(float z[], const float x[], const float y[], int n)
|
||||
SPAN_DECLARE(void) vec_subf(float z[], const float x[], const float y[], int n)
|
||||
{
|
||||
int i;
|
||||
__m128 n1;
|
||||
@@ -509,7 +509,7 @@ void vec_subf(float z[], const float x[], const float y[], int n)
|
||||
}
|
||||
}
|
||||
#else
|
||||
void vec_subf(float z[], const float x[], const float y[], int n)
|
||||
SPAN_DECLARE(void) vec_subf(float z[], const float x[], const float y[], int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -519,7 +519,7 @@ void vec_subf(float z[], const float x[], const float y[], int n)
|
||||
#endif
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void vec_sub(double z[], const double x[], const double y[], int n)
|
||||
SPAN_DECLARE(void) vec_sub(double z[], const double x[], const double y[], int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -539,7 +539,7 @@ void vec_subl(long double z[], const long double x[], const long double y[], int
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
#endif
|
||||
|
||||
void vec_scaledxy_subf(float z[], const float x[], float x_scale, const float y[], float y_scale, int n)
|
||||
SPAN_DECLARE(void) vec_scaledxy_subf(float z[], const float x[], float x_scale, const float y[], float y_scale, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -548,7 +548,7 @@ void vec_scaledxy_subf(float z[], const float x[], float x_scale, const float y[
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void vec_scaledxy_sub(double z[], const double x[], double x_scale, const double y[], double y_scale, int n)
|
||||
SPAN_DECLARE(void) vec_scaledxy_sub(double z[], const double x[], double x_scale, const double y[], double y_scale, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -569,7 +569,7 @@ void vec_scaledxy_subl(long double z[], const long double x[], long double x_sca
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && defined(SPANDSP_USE_SSE2)
|
||||
void vec_scalar_mulf(float z[], const float x[], float y, int n)
|
||||
SPAN_DECLARE(void) vec_scalar_mulf(float z[], const float x[], float y, int n)
|
||||
{
|
||||
int i;
|
||||
__m128 n1;
|
||||
@@ -597,7 +597,7 @@ void vec_scalar_mulf(float z[], const float x[], float y, int n)
|
||||
}
|
||||
}
|
||||
#else
|
||||
void vec_scalar_mulf(float z[], const float x[], float y, int n)
|
||||
SPAN_DECLARE(void) vec_scalar_mulf(float z[], const float x[], float y, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -607,7 +607,7 @@ void vec_scalar_mulf(float z[], const float x[], float y, int n)
|
||||
#endif
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void vec_scalar_mul(double z[], const double x[], double y, int n)
|
||||
SPAN_DECLARE(void) vec_scalar_mul(double z[], const double x[], double y, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -617,7 +617,7 @@ void vec_scalar_mul(double z[], const double x[], double y, int n)
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
#if defined(__GNUC__) && defined(SPANDSP_USE_SSE2)
|
||||
void vec_scalar_addf(float z[], const float x[], float y, int n)
|
||||
SPAN_DECLARE(void) vec_scalar_addf(float z[], const float x[], float y, int n)
|
||||
{
|
||||
int i;
|
||||
__m128 n1;
|
||||
@@ -645,7 +645,7 @@ void vec_scalar_addf(float z[], const float x[], float y, int n)
|
||||
}
|
||||
}
|
||||
#else
|
||||
void vec_scalar_addf(float z[], const float x[], float y, int n)
|
||||
SPAN_DECLARE(void) vec_scalar_addf(float z[], const float x[], float y, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -655,7 +655,7 @@ void vec_scalar_addf(float z[], const float x[], float y, int n)
|
||||
#endif
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void vec_scalar_add(double z[], const double x[], double y, int n)
|
||||
SPAN_DECLARE(void) vec_scalar_add(double z[], const double x[], double y, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -676,7 +676,7 @@ void vec_scalar_addl(long double z[], const long double x[], long double y, int
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && defined(SPANDSP_USE_SSE2)
|
||||
void vec_scalar_subf(float z[], const float x[], float y, int n)
|
||||
SPAN_DECLARE(void) vec_scalar_subf(float z[], const float x[], float y, int n)
|
||||
{
|
||||
int i;
|
||||
__m128 n1;
|
||||
@@ -704,7 +704,7 @@ void vec_scalar_subf(float z[], const float x[], float y, int n)
|
||||
}
|
||||
}
|
||||
#else
|
||||
void vec_scalar_subf(float z[], const float x[], float y, int n)
|
||||
SPAN_DECLARE(void) vec_scalar_subf(float z[], const float x[], float y, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -714,7 +714,7 @@ void vec_scalar_subf(float z[], const float x[], float y, int n)
|
||||
#endif
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void vec_scalar_sub(double z[], const double x[], double y, int n)
|
||||
SPAN_DECLARE(void) vec_scalar_sub(double z[], const double x[], double y, int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -735,7 +735,7 @@ void vec_scalar_subl(long double z[], const long double x[], long double y, int
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && defined(SPANDSP_USE_SSE2)
|
||||
void vec_mulf(float z[], const float x[], const float y[], int n)
|
||||
SPAN_DECLARE(void) vec_mulf(float z[], const float x[], const float y[], int n)
|
||||
{
|
||||
int i;
|
||||
__m128 n1;
|
||||
@@ -764,7 +764,7 @@ void vec_mulf(float z[], const float x[], const float y[], int n)
|
||||
}
|
||||
}
|
||||
#else
|
||||
void vec_mulf(float z[], const float x[], const float y[], int n)
|
||||
SPAN_DECLARE(void) vec_mulf(float z[], const float x[], const float y[], int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -774,7 +774,7 @@ void vec_mulf(float z[], const float x[], const float y[], int n)
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
#endif
|
||||
|
||||
void vec_mul(double z[], const double x[], const double y[], int n)
|
||||
SPAN_DECLARE(void) vec_mul(double z[], const double x[], const double y[], int n)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -795,7 +795,7 @@ void vec_mull(long double z[], const long double x[], const long double y[], int
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && defined(SPANDSP_USE_SSE2)
|
||||
float vec_dot_prodf(const float x[], const float y[], int n)
|
||||
SPAN_DECLARE(float) vec_dot_prodf(const float x[], const float y[], int n)
|
||||
{
|
||||
int i;
|
||||
float z;
|
||||
@@ -832,7 +832,7 @@ float vec_dot_prodf(const float x[], const float y[], int n)
|
||||
return z;
|
||||
}
|
||||
#else
|
||||
float vec_dot_prodf(const float x[], const float y[], int n)
|
||||
SPAN_DECLARE(float) vec_dot_prodf(const float x[], const float y[], int n)
|
||||
{
|
||||
int i;
|
||||
float z;
|
||||
@@ -845,7 +845,7 @@ float vec_dot_prodf(const float x[], const float y[], int n)
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
#endif
|
||||
|
||||
double vec_dot_prod(const double x[], const double y[], int n)
|
||||
SPAN_DECLARE(double) vec_dot_prod(const double x[], const double y[], int n)
|
||||
{
|
||||
int i;
|
||||
double z;
|
||||
@@ -871,7 +871,7 @@ long double vec_dot_prodl(const long double x[], const long double y[], int n)
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
#endif
|
||||
|
||||
float vec_circular_dot_prodf(const float x[], const float y[], int n, int pos)
|
||||
SPAN_DECLARE(float) vec_circular_dot_prodf(const float x[], const float y[], int n, int pos)
|
||||
{
|
||||
float z;
|
||||
|
||||
@@ -884,7 +884,7 @@ float vec_circular_dot_prodf(const float x[], const float y[], int n, int pos)
|
||||
#define LMS_LEAK_RATE 0.9999f
|
||||
|
||||
#if defined(__GNUC__) && defined(SPANDSP_USE_SSE2)
|
||||
void vec_lmsf(const float x[], float y[], int n, float error)
|
||||
SPAN_DECLARE(void) vec_lmsf(const float x[], float y[], int n, float error)
|
||||
{
|
||||
int i;
|
||||
__m128 n1;
|
||||
@@ -918,7 +918,7 @@ void vec_lmsf(const float x[], float y[], int n, float error)
|
||||
}
|
||||
}
|
||||
#else
|
||||
void vec_lmsf(const float x[], float y[], int n, float error)
|
||||
SPAN_DECLARE(void) vec_lmsf(const float x[], float y[], int n, float error)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -931,7 +931,7 @@ void vec_lmsf(const float x[], float y[], int n, float error)
|
||||
#endif
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void vec_circular_lmsf(const float x[], float y[], int n, int pos, float error)
|
||||
SPAN_DECLARE(void) vec_circular_lmsf(const float x[], float y[], int n, int pos, float error)
|
||||
{
|
||||
vec_lmsf(&x[pos], &y[0], n - pos, error);
|
||||
vec_lmsf(&x[0], &y[n - pos], pos, error);
|
||||
|
Reference in New Issue
Block a user