Define UNALIGNED_PROFITABLE on x86 platforms

This commit is contained in:
gbeauche 2006-05-07 16:54:58 +00:00
parent 75f3bdea68
commit 12195c32b5
2 changed files with 11 additions and 0 deletions

View File

@ -166,6 +166,12 @@ typedef int64 intptr;
#error "Unsupported size of pointer"
#endif
// Define if the host processor supports fast unaligned load/stores
#if defined __i386__ || defined __x86_64__
#define UNALIGNED_PROFITABLE 1
#endif
/**
* Helper functions to byteswap data
**/

View File

@ -125,6 +125,11 @@ typedef int64 intptr;
#error "Unsupported size of pointer"
#endif
// Define if the host processor supports fast unaligned load/stores
#if defined __i386__ || defined __x86_64__
#define UNALIGNED_PROFITABLE 1
#endif
/**
* Helper functions to byteswap data