[v3] conditional tweak

Jerry Quinn jlquinn@optonline.net
Thu Nov 6 00:06:00 GMT 2003


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;



More information about the Libstdc++ mailing list