gcc/libstdc++-v3/config
Paolo Carlini e3c0c0989b re PR libstdc++/13341 (ctype<wchar_t>::do_narrow(wchar_t, char) is slow)
2003-12-12  Paolo Carlini  <pcarlini@suse.de>
	    Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/13341
	* include/bits/locale_facets.h (ctype<wchar_t>): Declare
	_M_initialize_ctype() and _M_narrow_ok, _M_narrow and _M_widen.
	* src/ctype.cc (ctype<wchar_t>::ctype(size_t),
	ctype<wchar_t>::ctype(__c_locale, size_t)): Use
	_M_initialize_ctype to fill _M_narrow and _M_widen.
	(ctype_byname<wchar_t>::ctype_byname(const char*, size_t)):
	Likewise.
	* config/locale/generic/ctype_members.cc (do_narrow, do_widen)
	Use _M_narrow and _M_widen when possible, instead of calling
	wctob and btowc, respectively.
	(_M_initialize_ctype): Define, it fills at construction time
	_M_narrow and _M_widen.
	* config/locale/gnu/ctype_members.cc: Likewise.
	* testsuite/performance/narrow_widen_wchar_t.cc: New.

Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>

From-SVN: r74580
2003-12-12 19:44:17 +00:00
..
abi
cpu linker-map.gnu: Remove private ios_base members from export list. 2003-12-10 04:52:37 +00:00
io re PR libstdc++/10063 (stdio_filebuf broken) 2003-12-10 17:37:25 +00:00
locale re PR libstdc++/13341 (ctype<wchar_t>::do_narrow(wchar_t, char) is slow) 2003-12-12 19:44:17 +00:00
os ctype_noninline.h: Adjust ctor to match 2003-10-21 change. 2003-10-23 05:33:49 +00:00
linker-map.dummy
linker-map.gnu linker-map.gnu: Remove private ios_base members from export list. 2003-12-10 04:52:37 +00:00