On Tue, 27 Jun 2000, Bjorn Eriksson wrote:
> > double x = 3.4;
> > double y = 5.67;
> > double z = 0.0;
> > for (long i=1; i<10000; i++) {
> > z += x+y;
> > }
> >
> > printf("%lf\n",z);
> Rewriting so as to not make the code dependent on how smart the optimizer
> is. Sound advice which I ASsumed the original poster had though of. I'd like
Well, I was not concerned about optimizer (but now I am as well).
I just thought that may be if emulation is done by interrupts, then blocking
them just causes no exceptions - no operations beeing done. Therefore I would
expect z=0.0 on exit when interrupts are blocked. But I was just guessing.
--
Tomek
--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.