numeric.c: Use macros instead of strchr()
authorKarl Williamson <public@khwilliamson.com>
Wed, 1 Jan 2014 05:41:39 +0000 (22:41 -0700)
committerKarl Williamson <public@khwilliamson.com>
Wed, 1 Jan 2014 20:49:24 +0000 (13:49 -0700)
commit626ef08910b91efb9ac7ecd5f41e991c2a4ce5dd
tree243c359e9d115d0661755f0a66a0cd2ddc78aff9
parentcb27eebd32af3dfebf46f5eb3778fe29175004b5
numeric.c: Use macros instead of strchr()

This replaces uses of strchr() (and hence its loop) with a simple array
lookup, mask, and test.  This causes an extra test to be needed later in
the hex decoding case to get the hex value, instead of a subtract
previously.  However these two tests are fewer than the average number
in strchr().
numeric.c