From 5dfb7ce5fc1e7a32423c890e3caa9eaecdcbd1da Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sat, 27 Oct 2007 22:32:27 +0000 Subject: [PATCH] Micro-optimization of prev. commit, change (_c < 0 || _c >= 128) to (_c & ~0x7F) --- include/_ctype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/_ctype.h b/include/_ctype.h index 0076adc7b624..7600c4b5b6bc 100644 --- a/include/_ctype.h +++ b/include/_ctype.h @@ -126,7 +126,7 @@ __sbistype(__ct_rune_t _c, unsigned long _f) static __inline int __isctype(__ct_rune_t _c, unsigned long _f) { - return (_c < 0 || _c >= 128) ? 0 : + return (_c & ~0x7F) ? 0 : !!(_DefaultRuneLocale.__runetype[_c] & _f); }