| OLD | NEW |
| 1 /* Copyright (c) 2008-2011 Xiph.Org Foundation | 1 /* Copyright (c) 2008-2011 Xiph.Org Foundation |
| 2 Written by Jean-Marc Valin */ | 2 Written by Jean-Marc Valin */ |
| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 #include <stdio.h> | 38 #include <stdio.h> |
| 39 #include <stdlib.h> | 39 #include <stdlib.h> |
| 40 #include "vq.c" | 40 #include "vq.c" |
| 41 #include "cwrs.c" | 41 #include "cwrs.c" |
| 42 #include "entcode.c" | 42 #include "entcode.c" |
| 43 #include "entenc.c" | 43 #include "entenc.c" |
| 44 #include "entdec.c" | 44 #include "entdec.c" |
| 45 #include "mathops.c" | 45 #include "mathops.c" |
| 46 #include "bands.h" | 46 #include "bands.h" |
| 47 #include "pitch.c" |
| 48 #include "celt_lpc.c" |
| 47 #include <math.h> | 49 #include <math.h> |
| 50 |
| 51 #if defined(OPUS_X86_MAY_HAVE_SSE4_1) || defined(OPUS_X86_MAY_HAVE_SSE2) |
| 52 #include "x86/pitch_sse.c" |
| 53 #if defined(OPUS_X86_MAY_HAVE_SSE4_1) |
| 54 #include "x86/celt_lpc_sse.c" |
| 55 #endif |
| 56 #include "x86/x86_celt_map.c" |
| 57 #elif ((defined(OPUS_ARM_ASM) && defined(FIXED_POINT)) \ |
| 58 || defined(OPUS_ARM_NEON_INTR)) |
| 59 #if defined(OPUS_ARM_NEON_INTR) |
| 60 #include "arm/celt_neon_intr.c" |
| 61 #endif |
| 62 #include "arm/arm_celt_map.c" |
| 63 #endif |
| 64 |
| 48 #define MAX_SIZE 100 | 65 #define MAX_SIZE 100 |
| 49 | 66 |
| 50 int ret=0; | 67 int ret=0; |
| 51 void test_rotation(int N, int K) | 68 void test_rotation(int N, int K) |
| 52 { | 69 { |
| 53 int i; | 70 int i; |
| 54 double err = 0, ener = 0, snr, snr0; | 71 double err = 0, ener = 0, snr, snr0; |
| 55 opus_val16 x0[MAX_SIZE]; | 72 opus_val16 x0[MAX_SIZE]; |
| 56 opus_val16 x1[MAX_SIZE]; | 73 opus_val16 x1[MAX_SIZE]; |
| 57 for (i=0;i<N;i++) | 74 for (i=0;i<N;i++) |
| (...skipping 23 matching lines...) Expand all Loading... |
| 81 | 98 |
| 82 int main(void) | 99 int main(void) |
| 83 { | 100 { |
| 84 ALLOC_STACK; | 101 ALLOC_STACK; |
| 85 test_rotation(15, 3); | 102 test_rotation(15, 3); |
| 86 test_rotation(23, 5); | 103 test_rotation(23, 5); |
| 87 test_rotation(50, 3); | 104 test_rotation(50, 3); |
| 88 test_rotation(80, 1); | 105 test_rotation(80, 1); |
| 89 return ret; | 106 return ret; |
| 90 } | 107 } |
| OLD | NEW |