This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3] Print ints directly to streambuf
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Jerry Quinn <jlquinn at optonline dot net>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Fri, 7 Mar 2003 19:43:30 -0600
- Subject: Re: [v3] Print ints directly to streambuf
- References: <E18mSJY-00059v-00@tiamat>
>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