diff options
author | M. J. T. Guy <mjtg@cus.cam.ac.uk> | 1999-11-02 21:36:00 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-11-02 21:30:02 +0000 |
commit | 5d11dd564732ca7c214f8b8527cb98af3ed47ddf (patch) | |
tree | 8d8e11bd9bbf019ca6033c64105ac4d80ca3cc9e /pod | |
parent | cd39f2b66bd181466dfcec205891c8c477478488 (diff) | |
download | perl-5d11dd564732ca7c214f8b8527cb98af3ed47ddf.tar.gz |
Re: [ID 19991102.002] unpack('N', pack('N', -1)) not idempotent
To: ben@mucus.advanced.org, perl5-porters@perl.org
Message-Id: <E11ilay-00020o-00@taurus.cus.cam.ac.uk>
p4raw-id: //depot/cfgperl@4509
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlfunc.pod | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index f8efd7e428..033d4caf24 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -2769,10 +2769,10 @@ follows: what a local C compiler calls 'long'. If you want native-length longs, use the '!' suffix.) - n A short in "network" (big-endian) order. - N A long in "network" (big-endian) order. - v A short in "VAX" (little-endian) order. - V A long in "VAX" (little-endian) order. + n An unsigned short in "network" (big-endian) order. + N An unsigned long in "network" (big-endian) order. + v An unsigned short in "VAX" (little-endian) order. + V An unsigned long in "VAX" (little-endian) order. (These 'shorts' and 'longs' are _exactly_ 16 bits and _exactly_ 32 bits, respectively.) @@ -2934,7 +2934,7 @@ because they obey the native byteorder and endianness. For example a 0x12 0x34 0x56 0x78 # little-endian 0x78 0x56 0x34 0x12 # big-endian -Basically, the Intel, Alpha, and VAX CPUs and little-endian, while +Basically, the Intel, Alpha, and VAX CPUs are little-endian, while everybody else, for example Motorola m68k/88k, PPC, Sparc, HP PA, Power, and Cray are big-endian. MIPS can be either: Digital used it in little-endian mode; SGI uses it in big-endian mode. |