diff options
author | tjr <tjr@FreeBSD.org> | 2004-08-21 07:00:40 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-08-21 07:00:40 +0000 |
commit | 690161113f0f5046e897c9375a2042f08072c65d (patch) | |
tree | 591477643be7239310fc803ef18c49b7cc25ba86 /include | |
parent | 1095443edbb84334ef9b49955f2116afed0713b4 (diff) | |
download | FreeBSD-src-690161113f0f5046e897c9375a2042f08072c65d.zip FreeBSD-src-690161113f0f5046e897c9375a2042f08072c65d.tar.gz |
Let GCC know that ___runetype(), ___tolower() and ___toupper() are pure
functions, allowing it to generate better code for the <ctype.h> and
<wctype.h> functions. For example, it can now keep _CurrentRuneLocale
in a register across calls to these functions, and can delete calls to
___runetype() if the result is already known or not used.
Diffstat (limited to 'include')
-rw-r--r-- | include/_ctype.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/_ctype.h b/include/_ctype.h index a1fc0a2..1a42952 100644 --- a/include/_ctype.h +++ b/include/_ctype.h @@ -72,9 +72,9 @@ /* See comments in <sys/_types.h> about __ct_rune_t. */ __BEGIN_DECLS -unsigned long ___runetype(__ct_rune_t); -__ct_rune_t ___tolower(__ct_rune_t); -__ct_rune_t ___toupper(__ct_rune_t); +unsigned long ___runetype(__ct_rune_t) __pure; +__ct_rune_t ___tolower(__ct_rune_t) __pure; +__ct_rune_t ___toupper(__ct_rune_t) __pure; __END_DECLS /* |