Ignore:
Timestamp:
Jan 9, 2020 9:05:50 AM (4 years ago)
Author:
ming
Message:

Closed #589: Update Speex AEC to the latest version to get multichannel EC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/speex/libspeex/resample_sse.h

    r2002 r6129  
    1010   modification, are permitted provided that the following conditions 
    1111   are met: 
    12     
     12 
    1313   - Redistributions of source code must retain the above copyright 
    1414   notice, this list of conditions and the following disclaimer. 
    15     
     15 
    1616   - Redistributions in binary form must reproduce the above copyright 
    1717   notice, this list of conditions and the following disclaimer in the 
    1818   documentation and/or other materials provided with the distribution. 
    19     
     19 
    2020   - Neither the name of the Xiph.org Foundation nor the names of its 
    2121   contributors may be used to endorse or promote products derived from 
    2222   this software without specific prior written permission. 
    23     
     23 
    2424   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
    2525   ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
     
    7272} 
    7373 
    74 #ifdef _USE_SSE2 
     74#ifdef USE_SSE2 
    7575#include <emmintrin.h> 
    7676#define OVERRIDE_INNER_PRODUCT_DOUBLE 
     
    9292      sum = _mm_add_pd(sum, _mm_cvtps_pd(_mm_movehl_ps(t, t))); 
    9393   } 
    94    sum = _mm_add_sd(sum, (__m128d) _mm_movehl_ps((__m128) sum, (__m128) sum)); 
     94   sum = _mm_add_sd(sum, _mm_unpackhi_pd(sum, sum)); 
    9595   _mm_store_sd(&ret, sum); 
    9696   return ret; 
     
    121121  sum2 = _mm_mul_pd(f2, sum2); 
    122122  sum = _mm_add_pd(sum1, sum2); 
    123   sum = _mm_add_sd(sum, (__m128d) _mm_movehl_ps((__m128) sum, (__m128) sum)); 
     123  sum = _mm_add_sd(sum, _mm_unpackhi_pd(sum, sum)); 
    124124  _mm_store_sd(&ret, sum); 
    125125  return ret; 
Note: See TracChangeset for help on using the changeset viewer.