aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-14 16:51:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-14 16:51:29 +0000
commite8ab94ede0609bb02cea9960e685fd3752dbe762 (patch)
treea25db4e83159ac872ca6cfe0b3595869f4fe041b /st.c
parent301a11b24b728aa15b811c50f68396a81cf15b85 (diff)
downloadruby-e8ab94ede0609bb02cea9960e685fd3752dbe762.tar.gz
* regint.h (PLATFORM_UNALIGNED_WORD_ACCESS): Power PC does not
allow unaligned word access. * st.c (UNALIGNED_WORD_ACCESS): x86_64 allows unaligned word access as well as i386. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r--st.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/st.c b/st.c
index ba21b31a5b..8394cc6b72 100644
--- a/st.c
+++ b/st.c
@@ -999,7 +999,9 @@ strhash(st_data_t arg)
#else
#ifndef UNALIGNED_WORD_ACCESS
-# if defined __i386__ || defined _M_IX86
+# if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
+ defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD86) || \
+ defined(__mc68020__)
# define UNALIGNED_WORD_ACCESS 1
# endif
#endif