Fix reading of host-endian VMAs.
This commit is contained in:
parent
2004486a1e
commit
caa216c290
1 changed files with 3 additions and 3 deletions
|
@ -111,15 +111,15 @@ public:
|
||||||
/**
|
/**
|
||||||
* Get system endianess.
|
* Get system endianess.
|
||||||
*/
|
*/
|
||||||
#if DISABLE_FAST_MEMORY && (defined(__i386__) || defined(__x86_64__))
|
#if (defined(__i386__) || defined(__x86_64__))
|
||||||
static int get_system_endian() throw() { return -1; }
|
static int get_system_endian() throw() { return -1; }
|
||||||
#else
|
#else
|
||||||
static int get_system_endian() throw() { if(!sysendian) _get_system_endian(); return sysendian; }
|
static int get_system_endian() throw() { if(!sysendian) sysendian = _get_system_endian(); return sysendian; }
|
||||||
#endif
|
#endif
|
||||||
/**
|
/**
|
||||||
* Do native unaligned reads work?
|
* Do native unaligned reads work?
|
||||||
*/
|
*/
|
||||||
#if DISABLE_FAST_MEMORY && (defined(__i386__) || defined(__x86_64__))
|
#if (defined(__i386__) || defined(__x86_64__))
|
||||||
static int can_read_unaligned() throw() { return true; }
|
static int can_read_unaligned() throw() { return true; }
|
||||||
#else
|
#else
|
||||||
static int can_read_unaligned() throw() { return false; }
|
static int can_read_unaligned() throw() { return false; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue