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]

[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;


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