itoa'd you so?
levi at cold.org
Fri Sep 21 18:07:23 MDT 2007
Charles Curley <charlescurley at charlescurley.com> 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
More information about the PLUG