Simon Trew <ten.egnaro@werts> wrote:
OK gotcha. Yes, there is that limitation. I vaguely recall there is a
setting for this, but I am just back from a short holiday so the old noggin
is not up to full speed yet.
I suppose you could try to get round it by putting the intermediate results
of calculations back into variables, so that the 80-to-64 truncation will
occur each time. Of course I realise this particular problem was just a
f'rinstance, & also that you'd probably have to do some horrible stuff to
stop it being optimized away by the C# compiler or the JITter.
No, temporary variables won't help - I *suspect* (although I don't
know) that each result *is* truncated to 64 bits. The point is that the
CPU is effectively converting each 64 bit operand into 80 bits, then
doing the operation, then converting the result back into 64 bits. That
will sometimes give a different result from doing the whole thing in 64
bits. I'll try to come up with a specific example if you like. (It'll
take a while though!)
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too