Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I think your detailed investigation demonstrates why the code I posted in repsonse to creamygoodness's post behaves the way it does.
After much poking and scratching and re-reading of suggestions that have been kindly and thoughtfully presented here, I've eventually come up with using this approach in the PDL code: It seems to be doing the right thing with all of my compilers. I don't think that C script needs to have the optimization turned off - the creation of the dummy variable is alone sufficient to get the behaviour I'm after. But for some reason, in the PDL code, creation of the dummy variable is *not*, by itself, sufficient - optimization also needs to be disabled. (I turn it off for the setvaltobad functions, then turn it back on again.) Thanks to *all* who replied. Cheers, Rob In reply to Re^2: [Win32, C, and way OT] C floats, doubles, and their equivalence
by syphilis
|
|