This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes
Date 2012-10-08.14:33:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349706807.82.0.556520783402.issue16166@psf.upfronthosting.co.za>
In-reply-to
Content
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.

http://hg.python.org/cpython/file/dd5e98ddcd39/Modules/_sha3/keccak/brg_endian.h

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.
History
Date User Action Args
2012-10-08 14:33:27christian.heimessetrecipients: + christian.heimes
2012-10-08 14:33:27christian.heimessetmessageid: <1349706807.82.0.556520783402.issue16166@psf.upfronthosting.co.za>
2012-10-08 14:33:27christian.heimeslinkissue16166 messages
2012-10-08 14:33:27christian.heimescreate