diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index fb7296f25..ad0d59d04 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -1579,9 +1579,10 @@ extern const char bb_default_login_shell[]; | |||
| 1579 | #undef isupper | 1579 | #undef isupper |
| 1580 | #undef isxdigit | 1580 | #undef isxdigit |
| 1581 | 1581 | ||
| 1582 | /* This one is more efficient - we save ~400 bytes */ | 1582 | /* This one is more efficient - we save ~500 bytes. |
| 1583 | * BTW, x86 likes (unsigned char) cast more than (unsigned). */ | ||
| 1583 | #undef isdigit | 1584 | #undef isdigit |
| 1584 | #define isdigit(a) ((unsigned)((a) - '0') <= 9) | 1585 | #define isdigit(a) ((unsigned char)((a) - '0') <= 9) |
| 1585 | 1586 | ||
| 1586 | /* This one is more efficient too! ~200 bytes */ | 1587 | /* This one is more efficient too! ~200 bytes */ |
| 1587 | /* In POSIX/C locale (the only locale we care about: do we REALLY want | 1588 | /* In POSIX/C locale (the only locale we care about: do we REALLY want |
