apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: cvs commit: apr configure.in
Date Fri, 07 Nov 2003 09:37:49 GMT
Aaron Bannert wrote:

> 
> On Nov 6, 2003, at 8:55 AM, Joe Orton wrote:
> 
>> On Thu, Nov 06, 2003 at 08:27:57AM -0800, Aaron Bannert wrote:
>>
>>> What is this and the APR_IS_BIGENDIAN macro used for? Do we have
>>> any code that is endian-dependent?
>>
>>
>> $ grep -l -r --include \*.c APR_IS_BIGENDIAN .
>> ./random/unix/sha2.c
> 
> 
> Ah, I didn't pick up the new directory in my last cvs update, so I
> didn't see it. Thanks.
> 
> I don't understand the use of REVERSE32, why isn't htonl() and ntohl()
> used?

Hmm. They might work, but they're there for a different reason, I guess.

> And for REVERSE64, is there a longword version of h-to-n/n-to-h that we
> could use instead?

I doubt there's a portable one.

Cheers,

Ben.

-- 
http://www.apache-ssl.org/ben.html       http://www.thebunker.net/

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff



Mime
View raw message