mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-13 23:00:22 +00:00
Remove incorrect towlower/towupper optimizations.
This commit is contained in:
parent
fbddfbecee
commit
1d72020051
@ -235,21 +235,6 @@ extern wint_t towupper __P ((wint_t __wc));
|
|||||||
/* Map the wide character WC using the mapping described by DESC. */
|
/* Map the wide character WC using the mapping described by DESC. */
|
||||||
extern wint_t __towctrans __P ((wint_t __wc, wctrans_t __desc));
|
extern wint_t __towctrans __P ((wint_t __wc, wctrans_t __desc));
|
||||||
|
|
||||||
#if __GNUC__ >= 2 && defined __OPTIMIZE__
|
|
||||||
/* The tables are always organized in a way which allows direct access
|
|
||||||
for single byte characters. */
|
|
||||||
extern __const __int32_t *__ctype_tolower; /* Case conversions. */
|
|
||||||
extern __const __int32_t *__ctype_toupper; /* Case conversions. */
|
|
||||||
|
|
||||||
# define towlower(wc) \
|
|
||||||
(__builtin_constant_p (wc) && (wc) >= L'\0' && (wc) <= L'\xff' \
|
|
||||||
? (wint_t) __ctype_tolower[wc] : towlower (wc))
|
|
||||||
# define towupper(wc) \
|
|
||||||
(__builtin_constant_p (wc) && (wc) >= L'\0' && (wc) <= L'\xff' \
|
|
||||||
? (wint_t) __ctype_toupper[wc] : towupper (wc))
|
|
||||||
|
|
||||||
#endif /* gcc && optimizing */
|
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
#endif /* need iswxxx. */
|
#endif /* need iswxxx. */
|
||||||
|
Loading…
Reference in New Issue
Block a user