| OLD | NEW |
| 1 /* Copyright (c) 2008-2011 Xiph.Org Foundation, Mozilla Corporation, | 1 /* Copyright (c) 2008-2011 Xiph.Org Foundation, Mozilla Corporation, |
| 2 Gregory Maxwell | 2 Gregory Maxwell |
| 3 Written by Jean-Marc Valin, Gregory Maxwell, and Timothy B. Terriberry */ | 3 Written by Jean-Marc Valin, Gregory Maxwell, and Timothy B. Terriberry */ |
| 4 /* | 4 /* |
| 5 Redistribution and use in source and binary forms, with or without | 5 Redistribution and use in source and binary forms, with or without |
| 6 modification, are permitted provided that the following conditions | 6 modification, are permitted provided that the following conditions |
| 7 are met: | 7 are met: |
| 8 | 8 |
| 9 - Redistributions of source code must retain the above copyright | 9 - Redistributions of source code must retain the above copyright |
| 10 notice, this list of conditions and the following disclaimer. | 10 notice, this list of conditions and the following disclaimer. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifdef HAVE_CONFIG_H | 29 #ifdef HAVE_CONFIG_H |
| 30 #include "config.h" | 30 #include "config.h" |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 #ifndef CUSTOM_MODES | 33 #ifndef CUSTOM_MODES |
| 34 #define CUSTOM_MODES | 34 #define CUSTOM_MODES |
| 35 #endif | 35 #endif |
| 36 | 36 |
| 37 #define CELT_C | |
| 38 | |
| 39 #include <stdio.h> | 37 #include <stdio.h> |
| 40 #include <math.h> | 38 #include <math.h> |
| 41 #include "mathops.c" | 39 #include "mathops.h" |
| 42 #include "entenc.c" | 40 #include "bands.h" |
| 43 #include "entdec.c" | |
| 44 #include "entcode.c" | |
| 45 #include "bands.c" | |
| 46 #include "quant_bands.c" | |
| 47 #include "laplace.c" | |
| 48 #include "vq.c" | |
| 49 #include "cwrs.c" | |
| 50 #include "pitch.c" | |
| 51 #include "celt_lpc.c" | |
| 52 #include "celt.c" | |
| 53 | |
| 54 #if defined(OPUS_X86_MAY_HAVE_SSE) || defined(OPUS_X86_MAY_HAVE_SSE2) || defined
(OPUS_X86_MAY_HAVE_SSE4_1) | |
| 55 # if defined(OPUS_X86_MAY_HAVE_SSE) | |
| 56 # include "x86/pitch_sse.c" | |
| 57 # endif | |
| 58 # if defined(OPUS_X86_MAY_HAVE_SSE2) | |
| 59 # include "x86/pitch_sse2.c" | |
| 60 # endif | |
| 61 # if defined(OPUS_X86_MAY_HAVE_SSE4_1) | |
| 62 # include "x86/pitch_sse4_1.c" | |
| 63 # include "x86/celt_lpc_sse.c" | |
| 64 # endif | |
| 65 # include "x86/x86_celt_map.c" | |
| 66 #elif defined(OPUS_ARM_ASM) || defined(OPUS_ARM_MAY_HAVE_NEON_INTR) | |
| 67 # include "arm/armcpu.c" | |
| 68 # if defined(OPUS_ARM_MAY_HAVE_NEON_INTR) | |
| 69 # include "arm/celt_neon_intr.c" | |
| 70 # if defined(HAVE_ARM_NE10) | |
| 71 # include "kiss_fft.c" | |
| 72 # include "mdct.c" | |
| 73 # include "arm/celt_ne10_fft.c" | |
| 74 # include "arm/celt_ne10_mdct.c" | |
| 75 # endif | |
| 76 # endif | |
| 77 # include "arm/arm_celt_map.c" | |
| 78 #endif | |
| 79 | 41 |
| 80 #ifdef FIXED_POINT | 42 #ifdef FIXED_POINT |
| 81 #define WORD "%d" | 43 #define WORD "%d" |
| 82 #else | 44 #else |
| 83 #define WORD "%f" | 45 #define WORD "%f" |
| 84 #endif | 46 #endif |
| 85 | 47 |
| 86 int ret = 0; | 48 int ret = 0; |
| 87 | 49 |
| 88 void testdiv(void) | 50 void testdiv(void) |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 testdiv(); | 257 testdiv(); |
| 296 testsqrt(); | 258 testsqrt(); |
| 297 testlog2(); | 259 testlog2(); |
| 298 testexp2(); | 260 testexp2(); |
| 299 testexp2log2(); | 261 testexp2log2(); |
| 300 #ifdef FIXED_POINT | 262 #ifdef FIXED_POINT |
| 301 testilog2(); | 263 testilog2(); |
| 302 #endif | 264 #endif |
| 303 return ret; | 265 return ret; |
| 304 } | 266 } |
| OLD | NEW |