Subject: Re: spring cleaning step #1

Re: spring cleaning step #1

From: Alexander Lamaison <swish_at_lammy.co.uk>
Date: Sat, 17 Apr 2010 15:48:11 +0100

On 17 April 2010 15:46, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Sat, 17 Apr 2010, Alexander Lamaison wrote:
>
>>> 'int' - for variables that are just counters and generic values that are
>>> not
>>> likely to be extremely large (ie they will always be less than 2
>>> billion).
>>
>> My question relates to this change.  Why is int better than unsigned long?
>
> Because 'int' is defined to be the "natural" data size for the architecture.
> Thus it is generally faster and make better generated code than forcing it
> to be another type.

I wasn't aware of that. What about the signedness? Is that significant?

Alex
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-04-17