From: Jonathan D Johnston Date: Thu, 17 Aug 2000 23:13:01 +0000 (-0400) Subject: [ID 20000817.023] endianness description in perlfunc.pod X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b35e152f3ee71db2f423521c02a914217688f184;p=p5sagit%2Fp5-mst-13.2.git [ID 20000817.023] endianness description in perlfunc.pod Message-Id: <20000817.231304.-743351.1.jdjohnston2@juno.com> p4raw-id: //depot/perl@6715 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index fd724a1..5c8f88a 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -3153,8 +3153,8 @@ because they obey the native byteorder and endianness. For example a 4-byte integer 0x12345678 (305419896 decimal) be ordered natively (arranged in and handled by the CPU registers) into bytes as - 0x12 0x34 0x56 0x78 # little-endian - 0x78 0x56 0x34 0x12 # big-endian + 0x12 0x34 0x56 0x78 # big-endian + 0x78 0x56 0x34 0x12 # little-endian Basically, the Intel, Alpha, and VAX CPUs are little-endian, while everybody else, for example Motorola m68k/88k, PPC, Sparc, HP PA,