summaryrefslogtreecommitdiff
path: root/apps/codecs/libspeex/rockbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libspeex/rockbox.c')
-rw-r--r--apps/codecs/libspeex/rockbox.c77
1 files changed, 0 insertions, 77 deletions
diff --git a/apps/codecs/libspeex/rockbox.c b/apps/codecs/libspeex/rockbox.c
deleted file mode 100644
index 2abf8ccb32..0000000000
--- a/apps/codecs/libspeex/rockbox.c
+++ /dev/null
@@ -1,77 +0,0 @@
1/**************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 *
9 * Copyright (C) 2007 Dan Everton
10 *
11 * All files in this archive are subject to the GNU General Public License.
12 * See the file COPYING in the source tree root for full license agreement.
13 *
14 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
15 * KIND, either express or implied.
16 *
17 ***************************************************************************/
18
19#include "../codec.h"
20#include "../lib/codeclib.h"
21
22#if defined(DEBUG) || defined(SIMULATOR)
23#undef DEBUGF
24#define DEBUGF ci->debugf
25#else
26#define DEBUGF(...)
27#endif
28
29#ifdef ROCKBOX_HAS_LOGF
30#undef LOGF
31#define LOGF ci->logf
32#else
33#define LOGF(...)
34#endif
35
36extern struct codec_api* ci;
37
38float floor(float x) {
39 return ((float)(((int)x)));
40}
41
42//Placeholders (not fixed point, only used when encoding):
43float pow(float a, float b) {
44 DEBUGF("pow(%f, %f)\n", a, b);
45 return 0;
46}
47
48float log(float l) {
49 DEBUGF("log(%f)\n", l);
50 return 0;
51}
52
53float fabs(float a) {
54 DEBUGF("fabs(%f)\n", a);
55 return 0;
56}
57
58float sin(float a) {
59 DEBUGF("sin(%f)\n", a);
60 return 0;
61}
62
63float cos(float a) {
64 DEBUGF("cos(%f)\n", a);
65 return 0;
66}
67
68float sqrt(float a) {
69 DEBUGF("sqrt(%f)\n", a);
70 return 0;
71}
72
73float exp(float a) {
74 DEBUGF("exp(%f)\n", a);
75 return 0;
76}
77