Charles Curley <[EMAIL PROTECTED]> writes:
>
> Picky, picky.
>
> OK, 0 is a likely value in an embedded context, so I added code for
> that. I have two return statements, which would save a branch
> instruction on some compilers, but maybe not on others.
>
> I didn't handle INT_MIN because it's a boundary condition, and not a
> likely value. If INT_MIN is likely, the caller should be using longs,
> and hope they are larger than ints (not required by ANSI).
So, you're punting on a known corner case because it's unlikely?
C'mon, you know that's wrong. Besides, you can make it work without
special-casing it.
--Levi
/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/