From: Jarkko Hietaniemi Date: Wed, 2 May 2001 18:21:29 +0000 (+0000) Subject: Minor doc tweaks on endianness, closes bug 20010327.004. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=82e239e7a1ea777ddd36194e1dcefc6427be98da;p=p5sagit%2Fp5-mst-13.2.git Minor doc tweaks on endianness, closes bug 20010327.004. p4raw-id: //depot/perl@9965 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index b97c4a8..a7e6ef7 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -3202,7 +3202,7 @@ not support long longs.) The integer formats C, C, C, C, C, and C are inherently non-portable between processors and operating systems because they obey the native byteorder and endianness. For example a -4-byte integer 0x12345678 (305419896 decimal) be ordered natively +4-byte integer 0x12345678 (305419896 decimal) would be ordered natively (arranged in and handled by the CPU registers) into bytes as 0x12 0x34 0x56 0x78 # big-endian @@ -3211,7 +3211,8 @@ because they obey the native byteorder and endianness. For example a Basically, the Intel and VAX CPUs are little-endian, while everybody else, for example Motorola m68k/88k, PPC, Sparc, HP PA, Power, and Cray are big-endian. Alpha and MIPS can be either: Digital/Compaq -used/uses them in little-endian mode; SGI/Cray uses them in big-endian mode. +used/uses them in little-endian mode; SGI/Cray uses them in big-endian +mode. The names `big-endian' and `little-endian' are comic references to the classic "Gulliver's Travels" (via the paper "On Holy Wars and a @@ -3238,7 +3239,7 @@ Byteorders C<'1234'> and C<'12345678'> are little-endian, C<'4321'> and C<'87654321'> are big-endian. If you want portable packed integers use the formats C, C, -C, and C, their byte endianness and size is known. +C, and C, their byte endianness and size are known. See also L. =item *