1 /* FCE Ultra - NES/Famicom Emulator
3 * Copyright notice for this file:
4 * Copyright (C) 2001 Aaron Oneal
5 * Copyright (C) 2002 Ben Parnell
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 typedef unsigned char uint8;
26 typedef unsigned short uint16;
27 typedef unsigned long uint32;
30 typedef unsigned long long uint64;
31 typedef long long int64;
33 #define GINLINE inline
35 typedef __int64 int64;
36 typedef unsigned __int64 uint64;
37 #define INLINE __inline
38 #define GINLINE /* Can't declare a function INLINE
39 and global in MSVC. Bummer.
41 #define PSS_STYLE 2 /* Does MSVC compile for anything
42 other than Windows/DOS targets?
45 typedef signed char int8;
46 typedef signed short int16;
47 typedef signed long int32;
53 #define FASTAPASS(x) __attribute__((regparm(x)))
54 #define FP_FASTAPASS FASTAPASS
57 #define FP_FASTAPASS(x)
60 #define FP_FASTAPASS(x)
61 #define FASTAPASS(x) __fastcall
64 typedef void FP_FASTAPASS(2) (*writefunc)(uint32 A, uint8 V);
65 typedef uint8 FP_FASTAPASS(1) (*readfunc)(uint32 A);