summaryrefslogtreecommitdiff
path: root/libpcsxcore/r3000a.h
diff options
context:
space:
mode:
authorSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-10-06 16:51:35 +0000
committerSND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-10-06 16:51:35 +0000
commit0d1bc99a99024e561d48d9acf73a96503e3c91c5 (patch)
tree8bef6d1a72904a422fb5f589c78bca76099f1ed5 /libpcsxcore/r3000a.h
parent609b09af544e8adf4f1a841f77cfe3c1203173f4 (diff)
downloadpcsxr-0d1bc99a99024e561d48d9acf73a96503e3c91c5.tar.gz
* GTE;
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87357 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/r3000a.h')
-rwxr-xr-xlibpcsxcore/r3000a.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libpcsxcore/r3000a.h b/libpcsxcore/r3000a.h
index af9de9c5..ee70ad80 100755
--- a/libpcsxcore/r3000a.h
+++ b/libpcsxcore/r3000a.h
@@ -57,6 +57,8 @@ typedef union {
struct { s8 l, h, h2, h3; } sb;
struct { s16 l, h; } sw;
#endif
+ u32 d;
+ s32 sd;
} PAIR;
typedef union {
@@ -252,6 +254,15 @@ static inline u32 *Read_ICache(u32 pc, boolean isolate) {
return (u32 *)PSXM(pc);
}
+// U64 and S64 are used to wrap long integer constants.
+#ifdef __GNUC__
+#define U64(val) val##ULL
+#define S64(val) val##LL
+#else
+#define U64(val) val
+#define S64(val) val
+#endif
+
#if defined(__BIGENDIAN__)
#define _i32(x) *(s32 *)&x