- Timestamp:
- Jan 9, 2020 9:05:50 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/third_party/speex/libspeex/resample_sse.h
r2002 r6129 10 10 modification, are permitted provided that the following conditions 11 11 are met: 12 12 13 13 - Redistributions of source code must retain the above copyright 14 14 notice, this list of conditions and the following disclaimer. 15 15 16 16 - Redistributions in binary form must reproduce the above copyright 17 17 notice, this list of conditions and the following disclaimer in the 18 18 documentation and/or other materials provided with the distribution. 19 19 20 20 - Neither the name of the Xiph.org Foundation nor the names of its 21 21 contributors may be used to endorse or promote products derived from 22 22 this software without specific prior written permission. 23 23 24 24 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 25 25 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT … … 72 72 } 73 73 74 #ifdef _USE_SSE274 #ifdef USE_SSE2 75 75 #include <emmintrin.h> 76 76 #define OVERRIDE_INNER_PRODUCT_DOUBLE … … 92 92 sum = _mm_add_pd(sum, _mm_cvtps_pd(_mm_movehl_ps(t, t))); 93 93 } 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)); 95 95 _mm_store_sd(&ret, sum); 96 96 return ret; … … 121 121 sum2 = _mm_mul_pd(f2, sum2); 122 122 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)); 124 124 _mm_store_sd(&ret, sum); 125 125 return ret;
Note: See TracChangeset
for help on using the changeset viewer.