libsidplayfp  1.0.1
siddefs-fp.h
1 // ---------------------------------------------------------------------------
2 // This file is part of reSID, a MOS6581 SID emulator engine.
3 // Copyright (C) 1999 Dag Lem <resid@nimrod.no>
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 // ---------------------------------------------------------------------------
19 
20 #ifndef VICE__SIDDEFS_FP_H__
21 #define VICE__SIDDEFS_FP_H__
22 
23 #ifndef M_PI
24 # define M_PI 3.14159265358979323846
25 #endif
26 
27 // Define bool, true, and false for C++ compilers that lack these keywords.
28 #define RESID_HAVE_BOOL 1
29 
30 #if !RESID_HAVE_BOOL
31 typedef int bool;
32 const bool true = 1;
33 const bool false = 0;
34 #endif
35 
36 typedef unsigned char reg4;
37 typedef unsigned char reg8;
38 typedef unsigned short reg12;
39 typedef unsigned short reg16;
40 typedef unsigned int reg24;
41 typedef unsigned int reg32;
42 
43 namespace reSIDfp {
44 
45 typedef enum chip_model { MOS6581=1, MOS8580 } ChipModel;
46 
47 typedef enum sampling_method { DECIMATE=1, RESAMPLE } SamplingMethod;
48 }
49 
50 
51 extern "C"
52 {
53 #ifndef __VERSION_CC__
54 extern const char* residfp_version_string;
55 #else
56 const char* residfp_version_string = "0.0.2";
57 #endif
58 }
59 
60 // Inlining on/off.
61 #define RESID_INLINING 1
62 #define RESID_INLINE inline
63 
64 #endif // not __SIDDEFS_H__