diff options
author | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-15 11:25:29 +0000 |
---|---|---|
committer | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-15 11:25:29 +0000 |
commit | a339642028fb6ac9cf00de900c7025a2f5efd6e7 (patch) | |
tree | f2e9ca198ddeb6f11c4345061b9a3ce9ba48e9d4 /regint.h | |
parent | caccc84bf1f424a8e35f11d224602327b6256ff4 (diff) | |
download | ruby-a339642028fb6ac9cf00de900c7025a2f5efd6e7.tar.gz |
* regint.h (PLATFORM_UNALIGNED_WORD_ACCESS): The value of
UNALIGNED_WORD_ACCESS should be used to determine whether
unaligned word access is allowed or not. After this commit,
./configure CPPFLAGS="-DUNALIGNED_WORD_ACCESS=0" disables
unaligned word access even on platforms that support the feature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regint.h')
-rw-r--r-- | regint.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -48,10 +48,18 @@ #endif #endif +#ifndef UNALIGNED_WORD_ACCESS #if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \ defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || \ defined(__powerpc64__) || \ defined(__mc68020__) +#define UNALIGNED_WORD_ACCESS 1 +#else +#define UNALIGNED_WORD_ACCESS 0 +#endif +#endif + +#if UNALIGNED_WORD_ACCESS #define PLATFORM_UNALIGNED_WORD_ACCESS #endif |