[Python-checkins] cpython: Update comment: SPARC requires proper alignment

christian.heimes python-checkins at python.org
Sun Oct 14 14:36:28 CEST 2012


http://hg.python.org/cpython/rev/3cfe50908fbd
changeset:   79720:3cfe50908fbd
user:        Christian Heimes <christian at cheimes.de>
date:        Sun Oct 14 14:36:09 2012 +0200
summary:
  Update comment: SPARC requires proper alignment

files:
  Modules/_sha3/sha3module.c |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Modules/_sha3/sha3module.c b/Modules/_sha3/sha3module.c
--- a/Modules/_sha3/sha3module.c
+++ b/Modules/_sha3/sha3module.c
@@ -96,7 +96,8 @@
  * *************************************************************************/
 
 #ifdef __sparc
-  /* On SPARC with Solaris CC opt64 fails with 'invalid address alignment' */
+  /* opt64 uses un-aligned memory access that causes a BUS error with msg
+   * 'invalid address alignment' on SPARC. */
   #define KeccakOpt 32
 #elif SIZEOF_VOID_P == 8 && defined(PY_UINT64_T)
   /* opt64 works only for 64bit platforms with unsigned int64 */

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list