mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-16 15:11:52 +00:00
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:
parent
8c9610c9fe
commit
17211a5f9a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134101
@ -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
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user