summaryrefslogtreecommitdiff
path: root/apps/codecs/libmusepack/mpc_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libmusepack/mpc_config.h')
-rwxr-xr-xapps/codecs/libmusepack/mpc_config.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/apps/codecs/libmusepack/mpc_config.h b/apps/codecs/libmusepack/mpc_config.h
new file mode 100755
index 0000000000..6993775703
--- /dev/null
+++ b/apps/codecs/libmusepack/mpc_config.h
@@ -0,0 +1,48 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2008 by Andree Buschmann
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#ifndef _mpc_config_h_
21#define _mpc_config_h_
22
23#include "config.h"
24
25/* choose fixed point or floating point */
26#define MPC_FIXED_POINT
27
28#ifndef MPC_FIXED_POINT
29#error FIXME, mpc will not with floating point now
30#endif
31
32/* choose speed vs. accuracy for MPC_FIXED_POINT
33 * speed-setting will increase decoding speed on ARM only (+20%), loss of accuracy
34 * equals about 5 dB SNR (15bit output precision) to not use the speed-optimization
35 * -> comment OPTIMIZE_FOR_SPEED here for desired target */
36#if defined(MPC_FIXED_POINT)
37 #if defined(CPU_COLDFIRE)
38 // do nothing
39 #elif defined(CPU_ARM)
40 #define OPTIMIZE_FOR_SPEED
41 #else
42 #define OPTIMIZE_FOR_SPEED
43 #endif
44#else
45 // do nothing
46#endif
47
48#endif