This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] Print ints directly to streambuf


>2003-02-22  Jerry Quinn  <jlquinn at optonline dot net>
>
>        * include/bits/locale_facets.h: Use climits, streambuf_iterator.h.
>	(__bypass): New.
>	(__num_base::_Threshold_type, __num_base::struct __format_length,
>	__num_base::_S_lengths_initialized, __num_base::_S_lengths,
>	__num_base::_S_init_format_length_table,
>	__num_base::_M_estimate_length): New.
>	* include/bits/locale_facets.tcc (num_put::_M_convert_int): Use
>	__bypass and _M_estimate_length.
>	* include/bits/streambuf.tcc (basic_streambuf::xsputn): Only update
>	endpointers if using own buffer.
>	* include/bits/streambuf_iterator.h (ostreambuf_iterator::_M_bypass):
>	New.
>	* include/std/std_streambuf.h (basic_streambuf::_M_bypass): New.
>	* src/locale.cc (__num_base::_S_lengths_initialized): Define.
>	(__num_base::_S_init_format_length_table): Define.

Can you update this to use __builtin_clz as suggested by Richard? 

thanks,
benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]