| OLD | NEW |
| 1 /* Copyright (c) 2014, Cisco Systems, INC | 1 /* Copyright (c) 2014, Cisco Systems, INC |
| 2 Written by XiangMingZhu WeiZhou MinPeng YanWang | 2 Written by XiangMingZhu WeiZhou MinPeng YanWang |
| 3 | 3 |
| 4 Redistribution and use in source and binary forms, with or without | 4 Redistribution and use in source and binary forms, with or without |
| 5 modification, are permitted provided that the following conditions | 5 modification, are permitted provided that the following conditions |
| 6 are met: | 6 are met: |
| 7 | 7 |
| 8 - Redistributions of source code must retain the above copyright | 8 - Redistributions of source code must retain the above copyright |
| 9 notice, this list of conditions and the following disclaimer. | 9 notice, this list of conditions and the following disclaimer. |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 #if defined(OPUS_X86_MAY_HAVE_SSE4_1) && defined(FIXED_POINT) | 35 #if defined(OPUS_X86_MAY_HAVE_SSE4_1) && defined(FIXED_POINT) |
| 36 #define OVERRIDE_CELT_FIR | 36 #define OVERRIDE_CELT_FIR |
| 37 | 37 |
| 38 void celt_fir_sse4_1( | 38 void celt_fir_sse4_1( |
| 39 const opus_val16 *x, | 39 const opus_val16 *x, |
| 40 const opus_val16 *num, | 40 const opus_val16 *num, |
| 41 opus_val16 *y, | 41 opus_val16 *y, |
| 42 int N, | 42 int N, |
| 43 int ord, | 43 int ord, |
| 44 opus_val16 *mem, | |
| 45 int arch); | 44 int arch); |
| 46 | 45 |
| 47 #if defined(OPUS_X86_PRESUME_SSE4_1) | 46 #if defined(OPUS_X86_PRESUME_SSE4_1) |
| 48 #define celt_fir(x, num, y, N, ord, mem, arch) \ | 47 #define celt_fir(x, num, y, N, ord, arch) \ |
| 49 ((void)arch, celt_fir_sse4_1(x, num, y, N, ord, mem, arch)) | 48 ((void)arch, celt_fir_sse4_1(x, num, y, N, ord, arch)) |
| 50 | 49 |
| 51 #else | 50 #else |
| 52 | 51 |
| 53 extern void (*const CELT_FIR_IMPL[OPUS_ARCHMASK + 1])( | 52 extern void (*const CELT_FIR_IMPL[OPUS_ARCHMASK + 1])( |
| 54 const opus_val16 *x, | 53 const opus_val16 *x, |
| 55 const opus_val16 *num, | 54 const opus_val16 *num, |
| 56 opus_val16 *y, | 55 opus_val16 *y, |
| 57 int N, | 56 int N, |
| 58 int ord, | 57 int ord, |
| 59 opus_val16 *mem, | |
| 60 int arch); | 58 int arch); |
| 61 | 59 |
| 62 # define celt_fir(x, num, y, N, ord, mem, arch) \ | 60 # define celt_fir(x, num, y, N, ord, arch) \ |
| 63 ((*CELT_FIR_IMPL[(arch) & OPUS_ARCHMASK])(x, num, y, N, ord, mem, arch)) | 61 ((*CELT_FIR_IMPL[(arch) & OPUS_ARCHMASK])(x, num, y, N, ord, arch)) |
| 64 | 62 |
| 65 #endif | 63 #endif |
| 66 #endif | 64 #endif |
| 67 | 65 |
| 68 #endif | 66 #endif |
| OLD | NEW |