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.
This commit is contained in:
Tim J. Robbins 2004-08-21 07:00:40 +00:00
parent 8c9610c9fe
commit 17211a5f9a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134101

View File

@ -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
/*