Changes

Jump to: navigation, search

Endianness

323 bytes added, 20:15, 26 April 2019
no edit summary
Still other architectures, generically called middle-endian or mixed-endian, may have a more complicated ordering; [[PDP-11]], for instance, stored some 32-bit words, counting from the most significant, as: 2nd byte first, then 1st, then 4th, and finally 3rd.
As a useful side-effect for computerchess from that war of endianness <ref>[httphttps://www.ietf.org/rfc/ien/ien137.txt IEN 137 - DAV's Endian FAQ - On Holy Wars and a Plea for Peace] by [httphttps://wwwen.myriwikipedia.comorg/staff/cohenwiki/ Danny_Cohen_(engineer) Danny Cohen], [httphttps://aien.isiwikipedia.eduorg/wiki/ U S CInformation_Sciences_Institute USC/I S IISI], April 1, 1980</ref> - almost every common processor has instructions to reverse the byte order of a word, a doubleword or a quadword inside a register, and there are applications to take advantage of that for a kind of reversed arithmetic, most notable as used inside the [[Hyperbola Quintessence]].
If we like to access the i-th byte of a quadword (e.g. a [[Bitboards|Bitboard]]), the following code is not endian-independent:
=External Links=
* [https://en.wikipedia.org/wiki/Endianness Endianness from Wikipedia]
* [https://www.ietf.org/rfc/ien/ien137.txt IEN 137 - DAV's Endian FAQ - On Holy Wars and a Plea for Peace] by [https://en.wikipedia.org/wiki/Danny_Cohen_(engineer) Danny Cohen], [https://en.wikipedia.org/wiki/Information_Sciences_Institute USC/ISI], April 1, 1980
* [https://developer.ibm.com/articles/au-endianc/ Writing endian-independent code in C] ''Don't let endianness "byte" you'' by Harsha Adiga, [https://developer.ibm.com/ IBM Developer], April 24, 2007

Navigation menu