Christopher Smith wrote:
If only C had things like function pointers/callbacks, variables like
errno that could indicate an error, or functions you could call to
verify that you didn't get a certain error since your last checkpoint
(or the last operation). Oh wait... ;-)
And that would be a very real performance hit.
If you need to check errno every arithmetic call, that would actually
create a synchronization point which *would* destroy performance. I
seem to recall that checking errno always requires a memory barrier.
I work with folks who do binary floating point just fine every day. ;-)
That said, it takes people a while to get the gist of floating point
math, regardless of whether it's in base 2 or base 10.
So, tell us where you work. I stand in awe.
-a
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg