This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[v3] conditional tweak
- From: Jerry Quinn <jlquinn at optonline dot net>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 05 Nov 2003 19:06:39 -0500
- Subject: [v3] conditional tweak
2003-11-05 Jerry Quinn <jlquinn@optonline.net>
* include/bits/basic_ios.h (basic_ios::fill): Use
__builtin_expect.
*** basic_ios.h.~1.25.~ Fri Aug 22 00:10:05 2003
--- basic_ios.h Wed Nov 5 18:57:17 2003
***************
*** 341,347 ****
char_type
fill() const
{
! if (!_M_fill_init)
{
_M_fill = this->widen(' ');
_M_fill_init = true;
--- 341,347 ----
char_type
fill() const
{
! if (__builtin_expect(!_M_fill_init, false))
{
_M_fill = this->widen(' ');
_M_fill_init = true;