| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  *  Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2  *  Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 
| 3  * | 3  * | 
| 4  *  Use of this source code is governed by a BSD-style license | 4  *  Use of this source code is governed by a BSD-style license | 
| 5  *  that can be found in the LICENSE file in the root of the source | 5  *  that can be found in the LICENSE file in the root of the source | 
| 6  *  tree. An additional intellectual property rights grant can be found | 6  *  tree. An additional intellectual property rights grant can be found | 
| 7  *  in the file PATENTS.  All contributing project authors may | 7  *  in the file PATENTS.  All contributing project authors may | 
| 8  *  be found in the AUTHORS file in the root of the source tree. | 8  *  be found in the AUTHORS file in the root of the source tree. | 
| 9  */ | 9  */ | 
| 10 | 10 | 
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 46 14055,  14125,  14194,  14262,  14329,  14395,  14460,  14525, | 46 14055,  14125,  14194,  14262,  14329,  14395,  14460,  14525, | 
| 47 14588,  14650,  14711,  14772,  14831,  14890,  14947,  15003, | 47 14588,  14650,  14711,  14772,  14831,  14890,  14947,  15003, | 
| 48 15059,  15113,  15166,  15219,  15270,  15320,  15369,  15417, | 48 15059,  15113,  15166,  15219,  15270,  15320,  15369,  15417, | 
| 49 15464,  15509,  15554,  15597,  15640,  15681,  15721,  15760, | 49 15464,  15509,  15554,  15597,  15640,  15681,  15721,  15760, | 
| 50 15798,  15835,  15871,  15905,  15938,  15971,  16001,  16031, | 50 15798,  15835,  15871,  15905,  15938,  15971,  16001,  16031, | 
| 51 16060,  16087,  16113,  16138,  16162,  16185,  16206,  16227, | 51 16060,  16087,  16113,  16138,  16162,  16185,  16206,  16227, | 
| 52 16246,  16263,  16280,  16295,  16309,  16322,  16334,  16345, | 52 16246,  16263,  16280,  16295,  16309,  16322,  16334,  16345, | 
| 53 16354,  16362,  16369,  16374,  16378,  16382,  16383,  16384 | 53 16354,  16362,  16369,  16374,  16378,  16382,  16383,  16384 | 
| 54 }; | 54 }; | 
| 55 | 55 | 
| 56 void WebRtcSpl_GetHanningWindow(int16_t *v, int16_t size) | 56 void WebRtcSpl_GetHanningWindow(int16_t *v, size_t size) | 
| 57 { | 57 { | 
| 58     int jj; | 58     size_t jj; | 
| 59     int16_t *vptr1; | 59     int16_t *vptr1; | 
| 60 | 60 | 
| 61     int32_t index; | 61     int32_t index; | 
| 62     int32_t factor = ((int32_t)0x40000000); | 62     int32_t factor = ((int32_t)0x40000000); | 
| 63 | 63 | 
| 64     factor = WebRtcSpl_DivW32W16(factor, size); | 64     factor = WebRtcSpl_DivW32W16(factor, (int16_t)size); | 
| 65     if (size < 513) | 65     if (size < 513) | 
| 66         index = (int32_t)-0x200000; | 66         index = (int32_t)-0x200000; | 
| 67     else | 67     else | 
| 68         index = (int32_t)-0x100000; | 68         index = (int32_t)-0x100000; | 
| 69     vptr1 = v; | 69     vptr1 = v; | 
| 70 | 70 | 
| 71     for (jj = 0; jj < size; jj++) | 71     for (jj = 0; jj < size; jj++) | 
| 72     { | 72     { | 
| 73         index += factor; | 73         index += factor; | 
| 74         (*vptr1++) = kHanningTable[index >> 22]; | 74         (*vptr1++) = kHanningTable[index >> 22]; | 
| 75     } | 75     } | 
| 76 | 76 | 
| 77 } | 77 } | 
| OLD | NEW | 
|---|