Allow modifying main ram size at compile time by changing Memory::REALRAM_SIZE.

This commit is contained in:
Shawn Hoffman committed 2011-11-27 19:52:05 -08:00
1 parent 04026ae19a
commit b62cac2ca9
4 files changed
+47 -48

No files matched your search

+7
View File
@@ -27,6 +27,13 @@
template <bool> struct CompileTimeAssert;
template<> struct CompileTimeAssert<true> {};
#define b2(x) ( (x) | ( (x) >> 1) )
#define b4(x) ( b2(x) | ( b2(x) >> 2) )
#define b8(x) ( b4(x) | ( b4(x) >> 4) )
#define b16(x) ( b8(x) | ( b8(x) >> 8) )
#define b32(x) (b16(x) | (b16(x) >>16) )
#define ROUND_UP_POW2(x) (b32(x - 1) + 1)
#if defined __GNUC__ && !defined __SSSE3__
#include <emmintrin.h>
static __inline __m128i __attribute__((__always_inline__))