[Zlib-devel] crc32 big/little endian

William A. Rowe Jr. wrowe at rowe-clan.net
Wed Apr 21 23:22:02 EDT 2010


On 4/21/2010 9:32 PM, Mark Adler wrote:
> On Apr 21, 2010, at 1:11 PM, Joakim Tjernlund wrote:
>> are you suggesting using u32 is less portable than
>> using long?
> ...
>> I would say that long is less portable.
> 
> ??
> 
> How could long be less portable?  Every C compiler since the beginning of time understands long, even with no header files at all.  Obviously I'm missing something here.

Of course; you can have a 8 bit cpu with 8 bit int; 16 bit long.  It would
certainly comply with K&R :)




More information about the Zlib-devel mailing list