aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2012-10-14 14:36:09 +0200
committerChristian Heimes <christian@cheimes.de>2012-10-14 14:36:09 +0200
commit1f476504fe64b5ea066cdd027bded4c50b2f3d82 (patch)
tree3e5ac983360025ecc664ea896da23cb74e16b418
parentget 64bit platforms without uint64 right again (diff)
downloadcpython-1f476504fe64b5ea066cdd027bded4c50b2f3d82.tar.gz
cpython-1f476504fe64b5ea066cdd027bded4c50b2f3d82.tar.bz2
cpython-1f476504fe64b5ea066cdd027bded4c50b2f3d82.zip
Update comment: SPARC requires proper alignment
-rw-r--r--Modules/_sha3/sha3module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_sha3/sha3module.c b/Modules/_sha3/sha3module.c
index ac568b83f92..bde474f8f83 100644
--- 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 */