Author christian.heimes
Recipients christian.heimes
Date 2012-10-08.14:33:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I propose the addition of three new macros in pyport.h

#define PY_LITTLE_ENDIAN 1234
#define PY_BIG_ENDIAN 4321
#define PY_BYTE_ORDER <either little or big endian>

that are either set by a configure test or implemented like brg_endian.h. pyconfig.h has WORDS_BIGENDIAN which just checks for __BIG_ENDIAN__. The sysmodule has its own C code that checks the first byte of a long to detect the endianess.

I'd like to remove Keccak's brg_endian.h (#16113 SHA-3 module) for something more official and useful to other code. I had to re-add the file because the tests were failing on a big endian Solaris (Sparc) machine.
Date User Action Args
2012-10-08 14:33:27christian.heimessetrecipients: + christian.heimes
2012-10-08 14:33:27christian.heimessetmessageid: <>
2012-10-08 14:33:27christian.heimeslinkissue16166 messages
2012-10-08 14:33:27christian.heimescreate