Lisandro Dalcin wrote:
> BTW, can I asume that if I write
>
> if ( sizeof(c_type) < sizeof(long) ) {
>
> } else if ( sizeof(c_type) == sizeof(long) ) {
>
> } else {
>
> }
>
> then C compiler will be smart enough to eliminate the branching? (I
> know, I have to learn how to read disasemblies....)
Absolutely. The result of sizeof() is known at compile time and the C
compiler will only generate code for the first branch that evaluates to true.
Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev