FastLED 3.9.15
Loading...
Searching...
No Matches
statname.h
Go to the documentation of this file.
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 * NOTE: STAT_PREFIX disabled because we use C++ namespaces (fl::third_party)
52 * for symbol isolation instead of preprocessor prefixing
53 */
54// #define STAT_PREFIX xmp3
55
56#define STATCC1(x,y,z) STATCC2(x,y,z)
57#define STATCC2(x,y,z) x##y##z
58
59#ifdef STAT_PREFIX
60#define STATNAME(func) STATCC1(STAT_PREFIX, _, func)
61#else
62#define STATNAME(func) func
63#endif
64
65/* these symbols are common to all implementations
66 * NOTE: These macros are disabled because we use C++ namespaces (fl::third_party)
67 * for symbol isolation instead of preprocessor prefixing
68 */
69// #define CheckPadBit STATNAME(CheckPadBit)
70// #define UnpackFrameHeader STATNAME(UnpackFrameHeader)
71// #define UnpackSideInfo STATNAME(UnpackSideInfo)
72// #define AllocateBuffers STATNAME(AllocateBuffers)
73// #define FreeBuffers STATNAME(FreeBuffers)
74// #define DecodeHuffman STATNAME(DecodeHuffman)
75// #define Dequantize STATNAME(Dequantize)
76// #define IMDCT STATNAME(IMDCT)
77// #define UnpackScaleFactors STATNAME(UnpackScaleFactors)
78// #define Subband STATNAME(Subband)
79
80// #define samplerateTab STATNAME(samplerateTab)
81// #define bitrateTab STATNAME(bitrateTab)
82// #define samplesPerFrameTab STATNAME(samplesPerFrameTab)
83// #define bitsPerSlotTab STATNAME(bitsPerSlotTab)
84// #define sideBytesTab STATNAME(sideBytesTab)
85// #define slotTab STATNAME(slotTab)
86// #define sfBandTable STATNAME(sfBandTable)
87
88/* in your implementation's top-level include file (e.g. real\coder.h) you should
89 * add new #define sym STATNAME(sym) lines for all the
90 * additional global functions or variables which your
91 * implementation uses
92 */
93
94#endif /* _STATNAME_H */