提交 b761924f authored 作者: Michael Jerris's avatar Michael Jerris

fix gcc 4.3.2 build warnings

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11655 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 ba5125a7
...@@ -135,7 +135,7 @@ static int16_t gsm_div(int16_t num, int16_t denom) ...@@ -135,7 +135,7 @@ static int16_t gsm_div(int16_t num, int16_t denom)
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
#if defined(__GNUC__) && defined(SPANDSP_USE_MMX) #if defined(__GNUC__) && defined(SPANDSP_USE_MMX)
void gsm0610_vec_vsraw(const int16_t *p, int n, int bits) static void gsm0610_vec_vsraw(const int16_t *p, int n, int bits)
{ {
static const int64_t ones = 0x0001000100010001LL; static const int64_t ones = 0x0001000100010001LL;
......
...@@ -132,13 +132,14 @@ SPAN_DECLARE(void) vec_copyl(long double z[], const long double x[], int n) ...@@ -132,13 +132,14 @@ SPAN_DECLARE(void) vec_copyl(long double z[], const long double x[], int n)
SPAN_DECLARE(void) vec_negatef(float z[], const float x[], int n) SPAN_DECLARE(void) vec_negatef(float z[], const float x[], int n)
{ {
int i; int i;
static const uint32_t mask = 0x80000000; static const uint32_t mask = 0x80000000;
static const float *fmask = (float *)&mask;
__m128 n1; __m128 n1;
__m128 n2; __m128 n2;
if ((i = n & ~3)) if ((i = n & ~3))
{ {
n2 = _mm_set1_ps(*((float *) &mask)); n2 = _mm_set1_ps(*fmask);
for (i -= 4; i >= 0; i -= 4) for (i -= 4; i >= 0; i -= 4)
{ {
n1 = _mm_loadu_ps(x + i); n1 = _mm_loadu_ps(x + i);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论