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 23 matching lines...) Expand all Loading... |
34 #define CUSTOM_MODES | 34 #define CUSTOM_MODES |
35 #endif | 35 #endif |
36 | 36 |
37 #define CELT_C | 37 #define CELT_C |
38 | 38 |
39 #include "mathops.c" | 39 #include "mathops.c" |
40 #include "entenc.c" | 40 #include "entenc.c" |
41 #include "entdec.c" | 41 #include "entdec.c" |
42 #include "entcode.c" | 42 #include "entcode.c" |
43 #include "bands.c" | 43 #include "bands.c" |
| 44 #include "quant_bands.c" |
| 45 #include "laplace.c" |
44 #include "vq.c" | 46 #include "vq.c" |
45 #include "cwrs.c" | 47 #include "cwrs.c" |
46 #include <stdio.h> | 48 #include <stdio.h> |
47 #include <math.h> | 49 #include <math.h> |
48 | 50 |
49 #ifdef FIXED_POINT | 51 #ifdef FIXED_POINT |
50 #define WORD "%d" | 52 #define WORD "%d" |
51 #else | 53 #else |
52 #define WORD "%f" | 54 #define WORD "%f" |
53 #endif | 55 #endif |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 testdiv(); | 266 testdiv(); |
265 testsqrt(); | 267 testsqrt(); |
266 testlog2(); | 268 testlog2(); |
267 testexp2(); | 269 testexp2(); |
268 testexp2log2(); | 270 testexp2log2(); |
269 #ifdef FIXED_POINT | 271 #ifdef FIXED_POINT |
270 testilog2(); | 272 testilog2(); |
271 #endif | 273 #endif |
272 return ret; | 274 return ret; |
273 } | 275 } |
OLD | NEW |