Adafruit mp3
statname.h
1 /* ***** BEGIN LICENSE BLOCK *****
2  * Version: RCSL 1.0/RPSL 1.0
3  *
4  * Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved.
5  *
6  * The contents of this file, and the files included with this file, are
7  * subject to the current version of the RealNetworks Public Source License
8  * Version 1.0 (the "RPSL") available at
9  * http://www.helixcommunity.org/content/rpsl unless you have licensed
10  * the file under the RealNetworks Community Source License Version 1.0
11  * (the "RCSL") available at http://www.helixcommunity.org/content/rcsl,
12  * in which case the RCSL will apply. You may also obtain the license terms
13  * directly from RealNetworks. You may not use this file except in
14  * compliance with the RPSL or, if you have a valid RCSL with RealNetworks
15  * applicable to this file, the RCSL. Please see the applicable RPSL or
16  * RCSL for the rights, obligations and limitations governing use of the
17  * contents of the file.
18  *
19  * This file is part of the Helix DNA Technology. RealNetworks is the
20  * developer of the Original Code and owns the copyrights in the portions
21  * it created.
22  *
23  * This file, and the files included with this file, is distributed and made
24  * available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
25  * EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL SUCH WARRANTIES,
26  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS
27  * FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
28  *
29  * Technology Compatibility Kit Test Suite(s) Location:
30  * http://www.helixcommunity.org/content/tck
31  *
32  * Contributor(s):
33  *
34  * ***** END LICENSE BLOCK ***** */
35 
36 /**************************************************************************************
37  * Fixed-point MP3 decoder
38  * Jon Recker (jrecker@real.com), Ken Cooke (kenc@real.com)
39  * June 2003
40  *
41  * statname.h - name mangling macros for static linking
42  **************************************************************************************/
43 
44 #ifndef _STATNAME_H
45 #define _STATNAME_H
46 
47 /* define STAT_PREFIX to a unique name for static linking
48  * all the C functions and global variables will be mangled by the preprocessor
49  * e.g. void FFT(int *fftbuf) becomes void cook_FFT(int *fftbuf)
50  */
51 #define STAT_PREFIX xmp3
52 
53 #define STATCC1(x,y,z) STATCC2(x,y,z)
54 #define STATCC2(x,y,z) x##y##z
55 
56 #ifdef STAT_PREFIX
57 #define STATNAME(func) STATCC1(STAT_PREFIX, _, func)
58 #else
59 #define STATNAME(func) func
60 #endif
61 
62 /* these symbols are common to all implementations */
63 #define CheckPadBit STATNAME(CheckPadBit)
64 #define UnpackFrameHeader STATNAME(UnpackFrameHeader)
65 #define UnpackSideInfo STATNAME(UnpackSideInfo)
66 #define AllocateBuffers STATNAME(AllocateBuffers)
67 #define FreeBuffers STATNAME(FreeBuffers)
68 #define DecodeHuffman STATNAME(DecodeHuffman)
69 #define Dequantize STATNAME(Dequantize)
70 #define IMDCT STATNAME(IMDCT)
71 #define UnpackScaleFactors STATNAME(UnpackScaleFactors)
72 #define Subband STATNAME(Subband)
73 
74 #define samplerateTab STATNAME(samplerateTab)
75 #define bitrateTab STATNAME(bitrateTab)
76 #define samplesPerFrameTab STATNAME(samplesPerFrameTab)
77 #define bitsPerSlotTab STATNAME(bitsPerSlotTab)
78 #define sideBytesTab STATNAME(sideBytesTab)
79 #define slotTab STATNAME(slotTab)
80 #define sfBandTable STATNAME(sfBandTable)
81 
82 /* in your implementation's top-level include file (e.g. real\coder.h) you should
83  * add new #define sym STATNAME(sym) lines for all the
84  * additional global functions or variables which your
85  * implementation uses
86  */
87 
88 #endif /* _STATNAME_H */