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

ruby-changes:41469

From: ngoto <ko1@a...>
Date: Fri, 15 Jan 2016 20:24:59 +0900 (JST)
Subject: [ruby-changes:41469] ngoto:r53543 (trunk): * regint.h (PLATFORM_UNALIGNED_WORD_ACCESS): The value of

ngoto	2016-01-15 20:25:29 +0900 (Fri, 15 Jan 2016)

  New Revision: 53543

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

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/regint.h
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53542)
+++ ChangeLog	(revision 53543)
@@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jan 15 20:20:20 2016  Naohisa Goto  <ngotogenome@g...>
+
+	* 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.
+
 Fri Jan 15 16:12:10 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (string1): reset heredoc indent fore each string leteral
Index: regint.h
===================================================================
--- regint.h	(revision 53542)
+++ regint.h	(revision 53543)
@@ -48,10 +48,18 @@ https://github.com/ruby/ruby/blob/trunk/regint.h#L48
 #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
 

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

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