[前][次][番号順一覧][スレッド一覧]

ruby-changes:34832

From: nobu <ko1@a...>
Date: Wed, 23 Jul 2014 23:50:20 +0900 (JST)
Subject: [ruby-changes:34832] nobu:r46915 (trunk): UNALIGNED_WORD_ACCESS on ppc64

nobu	2014-07-23 23:50:12 +0900 (Wed, 23 Jul 2014)

  New Revision: 46915

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46915

  Log:
    UNALIGNED_WORD_ACCESS on ppc64
    
    * include/ruby/defines.h, siphash.c, st.c (UNALIGNED_WORD_ACCESS):
      add PowerPC64 too, which is capable to access unaligned words.
      patched by Gustavo Frederico Temple Pedrosa in [ruby-core:63937].
      [Feature #10081]
    * regint.h (PLATFORM_UNALIGNED_WORD_ACCESS): ditto.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/defines.h
    trunk/regint.h
    trunk/siphash.c
    trunk/st.c
Index: include/ruby/defines.h
===================================================================
--- include/ruby/defines.h	(revision 46914)
+++ include/ruby/defines.h	(revision 46915)
@@ -264,6 +264,7 @@ void rb_ia64_flushrs(void); https://github.com/ruby/ruby/blob/trunk/include/ruby/defines.h#L264
 #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
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46914)
+++ ChangeLog	(revision 46915)
@@ -1,3 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jul 23 23:50:11 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* include/ruby/defines.h, siphash.c, st.c (UNALIGNED_WORD_ACCESS):
+	  add PowerPC64 too, which is capable to access unaligned words.
+	  patched by Gustavo Frederico Temple Pedrosa in [ruby-core:63937].
+	  [Feature #10081]
+
+	* regint.h (PLATFORM_UNALIGNED_WORD_ACCESS): ditto.
+
 Wed Jul 23 04:04:38 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* lib/drb/extserv.rb: remove duplicate code with sample directory.
Index: st.c
===================================================================
--- st.c	(revision 46914)
+++ st.c	(revision 46915)
@@ -1320,6 +1320,7 @@ strhash(st_data_t arg) https://github.com/ruby/ruby/blob/trunk/st.c#L1320
 #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
 # endif
Index: regint.h
===================================================================
--- regint.h	(revision 46914)
+++ regint.h	(revision 46915)
@@ -50,6 +50,7 @@ https://github.com/ruby/ruby/blob/trunk/regint.h#L50
 
 #if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
     defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || \
+    defined(__powerpc64__) || \
     defined(__mc68020__)
 #define PLATFORM_UNALIGNED_WORD_ACCESS
 #endif
Index: siphash.c
===================================================================
--- siphash.c	(revision 46914)
+++ siphash.c	(revision 46915)
@@ -30,6 +30,7 @@ https://github.com/ruby/ruby/blob/trunk/siphash.c#L30
 #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
 # endif

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]