~ubuntu-branches/ubuntu/raring/vice/raring

« back to all changes in this revision

Viewing changes to src/arch/win32/msvc/siddefs.h

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-03-31 00:37:15 UTC
  • mfrom: (1.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20090331003715-mzclchtl0dp7fcl0
Tags: upstream-2.1.dfsg
ImportĀ upstreamĀ versionĀ 2.1.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
//  ---------------------------------------------------------------------------
 
19
// C64 DTV modifications written by
 
20
//   Daniel Kahlin <daniel@kahlin.net>
 
21
// Copyright (C) 2007  Daniel Kahlin <daniel@kahlin.net>
 
22
 
 
23
#ifndef __SIDDEFS_H__
 
24
#define __SIDDEFS_H__
 
25
 
 
26
// Define bool, true, and false for C++ compilers that lack these keywords.
 
27
#define RESID_HAVE_BOOL 1
 
28
 
 
29
#if !RESID_HAVE_BOOL
 
30
typedef int bool;
 
31
const bool true = 1;
 
32
const bool false = 0;
 
33
#endif
 
34
 
 
35
// We could have used the smallest possible data type for each SID register,
 
36
// however this would give a slower engine because of data type conversions.
 
37
// An int is assumed to be at least 32 bits (necessary in the types reg24,
 
38
// cycle_count, and sound_sample). GNU does not support 16-bit machines
 
39
// (GNU Coding Standards: Portability between CPUs), so this should be
 
40
// a valid assumption.
 
41
 
 
42
typedef unsigned int reg4;
 
43
typedef unsigned int reg8;
 
44
typedef unsigned int reg12;
 
45
typedef unsigned int reg16;
 
46
typedef unsigned int reg24;
 
47
 
 
48
typedef int cycle_count;
 
49
typedef int sound_sample;
 
50
typedef sound_sample fc_point[2];
 
51
 
 
52
enum chip_model { MOS6581, MOS8580, DTVSID };
 
53
 
 
54
enum sampling_method { SAMPLE_FAST, SAMPLE_INTERPOLATE,
 
55
                       SAMPLE_RESAMPLE_INTERPOLATE, SAMPLE_RESAMPLE_FAST };
 
56
 
 
57
extern "C"
 
58
{
 
59
#ifndef __VERSION_CC__
 
60
extern const char* resid_version_string;
 
61
#else
 
62
const char* resid_version_string = VERSION;
 
63
#endif
 
64
}
 
65
 
 
66
// Inlining on/off.
 
67
#define RESID_INLINING 1
 
68
#define RESID_INLINE inline
 
69
 
 
70
#endif // not __SIDDEFS_H__