summaryrefslogtreecommitdiffstats
path: root/include/_ctype.h
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2007-10-27 22:32:27 +0000
committerache <ache@FreeBSD.org>2007-10-27 22:32:27 +0000
commit8e5ba8950a1be7f42f4a078942a087451e77f974 (patch)
treee16c2ba4304a0cf42bbc7a05f6fa3836419ad3c8 /include/_ctype.h
parenteaecf9354fcdefa62a44d01afb8e061606d4d01a (diff)
downloadFreeBSD-src-8e5ba8950a1be7f42f4a078942a087451e77f974.zip
FreeBSD-src-8e5ba8950a1be7f42f4a078942a087451e77f974.tar.gz
Micro-optimization of prev. commit, change
(_c < 0 || _c >= 128) to (_c & ~0x7F)
Diffstat (limited to 'include/_ctype.h')
-rw-r--r--include/_ctype.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/_ctype.h b/include/_ctype.h
index 0076adc..7600c4b 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);
}
OpenPOWER on IntegriCloud