From 17211a5f9a0963117be5a2aef12bcaa8312b2cc6 Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Sat, 21 Aug 2004 07:00:40 +0000 Subject: Let GCC know that ___runetype(), ___tolower() and ___toupper() are pure functions, allowing it to generate better code for the and 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. --- include/_ctype.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/_ctype.h b/include/_ctype.h index a1fc0a2e973e..1a42952a09dc 100644 --- a/include/_ctype.h +++ b/include/_ctype.h @@ -72,9 +72,9 @@ /* See comments in 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 /* -- cgit v1.3