mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
301a11b24b
commit
e8ab94ede0
3 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
Fri Jul 15 01:51:25 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* 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.
|
||||
|
||||
Thu Jul 14 12:19:34 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
|
||||
|
||||
* ext/openssl/ossl.c (ossl_verify_cb): trap the exception from
|
||||
|
|
1
regint.h
1
regint.h
|
@ -48,7 +48,6 @@
|
|||
#endif
|
||||
|
||||
#if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
|
||||
(defined(__ppc__) && defined(__APPLE__)) || \
|
||||
defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD86) || \
|
||||
defined(__mc68020__)
|
||||
#define PLATFORM_UNALIGNED_WORD_ACCESS
|
||||
|
|
4
st.c
4
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
|
||||
|
|
Loading…
Reference in a new issue