You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2013/05/16 23:31:20 UTC

svn commit: r1483575 - /subversion/trunk/subversion/include/svn_types.h

Author: stefan2
Date: Thu May 16 21:31:20 2013
New Revision: 1483575

URL: http://svn.apache.org/r1483575
Log:
Tell Subversion that unaligned access is o.k. in PowerPC machines as well.
This will speed up text processing on them significantly.

* subversion/include/svn_types.h
  (SVN_UNALIGNED_ACCESS_IS_OK): set to 1 on PPC

Patch by: Mattias EngdegÄrd

Modified:
    subversion/trunk/subversion/include/svn_types.h

Modified: subversion/trunk/subversion/include/svn_types.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/include/svn_types.h?rev=1483575&r1=1483574&r2=1483575&view=diff
==============================================================================
--- subversion/trunk/subversion/include/svn_types.h (original)
+++ subversion/trunk/subversion/include/svn_types.h Thu May 16 21:31:20 2013
@@ -75,7 +75,9 @@ extern "C" {
  * @since New in 1.7.
  */
 #ifndef SVN_UNALIGNED_ACCESS_IS_OK
-# if defined(_M_IX86) || defined(_M_X64) || defined(i386) || defined(__x86_64)
+# if defined(_M_IX86) || defined(i386) \
+     || defined(_M_X64) || defined(__x86_64) \
+     || defined __powerpc__ || defined __ppc__
 #  define SVN_UNALIGNED_ACCESS_IS_OK 1
 # else
 #  define SVN_UNALIGNED_ACCESS_IS_OK 0