Packing/unpacking binary data in C - doubles, 64 bits
Jerry Feldman
gaf at blu.org
Fri Sep 11 15:10:06 EDT 2009
On 09/11/2009 09:09 AM, bruce.labitt at autoliv.com wrote:
> Here are the sizes run on the two platforms, both 64 bit OS. Identical.
>
> P4 Cell
> double 8 8
> float 4 4
> long double 16 16
> long signed long 8 8
> long unsigned long 8 8
> signed char 1 1
> signed long 8 8
> signed short 2 2
> unsigned char 1 1
> unsigned long 8 8
> unsigned short 2 2
> void * 8 8
>
As I mentioned earlier, this is the LP64 convention where longs and
pointers are 64 bits. Windows 64 bit systems use LLP64 where longs are
32-bits but pointers and long longs are 64.
--
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix
PGP key id: 537C5846
PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB CA3B 4607 4319 537C 5846
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20090911/5dc54540/attachment.bin
More information about the gnhlug-discuss
mailing list