|
|
Vahur Krouverk wrote:
>
> Instead of shifting bit masking with & could be considered as well...
>
Well of course, shifting for divisions and bit masking for modulus...
> Generate assembler code and look at it, this might give hint. I tried it
> with IBM compiler and only difference is the fact, that in first case
> double value 1.0 (yes, compiler converted it to double) is put into same
> segment as code, on second case it was put into constant segment. This
> might be one reason (loading constant segment page into memory or
> something like this).
Good point, I'll try and see what gcc does...
--
* Doctor Jekyll had something * mailto:ber### [at] inamecom
* to Hyde... * http://www.enst.fr/~jberger
*******************************
Post a reply to this message
|
|