Re: semi OT: 64-bit-clean code

2009-01-07 Thread Wojciech Puchar
Is there a good guide anywhere to writing 64-bit-clean code? simply use sizeof() not assumptions nothing else. too - don't assume big/little endian system. actually it's VERY simple. ___ freebsd-questions@freebsd.org mailing list http://list

Re: semi OT: 64-bit-clean code

2009-01-07 Thread Robert Huff
Roland Smith writes: > >Is there a good guide anywhere to writing 64-bit-clean code? > > Something that's thorough but understandable, possibly with examples > > of the trickier bits. > > For the rest, searching for '64-bit-clean' will give you > thousands of links. That's the

Re: semi OT: 64-bit-clean code

2009-01-07 Thread Roland Smith
On Wed, Jan 07, 2009 at 01:51:40PM -0500, Robert Huff wrote: > > Is there a good guide anywhere to writing 64-bit-clean code? > Something that's thorough but understandable, possibly with examples > of the trickier bits. Do not assume that the size of a void* equals the size of an integer a