public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Denis Vlasenko <vda@ilport.com.ua>
To: Robert Hancock <hancockr@shaw.ca>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: C++ pushback
Date: Thu, 27 Apr 2006 17:41:41 +0300	[thread overview]
Message-ID: <200604271741.41999.vda@ilport.com.ua> (raw)
In-Reply-To: <4450D3CD.9060002@shaw.ca>

On Thursday 27 April 2006 17:23, Robert Hancock wrote:
> Denis Vlasenko wrote:
> > Random example. gcc-3.4.3/include/g++-v3/bitset:
> > 
> >   template<size_t _Nw>
> >     struct _Base_bitset
> >     {
> >       typedef unsigned long _WordT;
> > 
> >       /// 0 is the least significant word.
> >       _WordT            _M_w[_Nw];
> > 
> >       _Base_bitset() { _M_do_reset(); }
> > ...
> >       void
> >       _M_do_set()
> >       {
> >         for (size_t __i = 0; __i < _Nw; __i++)
> >           _M_w[__i] = ~static_cast<_WordT>(0);
> >       }
> >       void
> >       _M_do_reset() { memset(_M_w, 0, _Nw * sizeof(_WordT)); }
> > ...
> > 
> 
> ..
> 
> > Why _M_do_reset() is not inlined?
> 
> It is.. anything declared as part of the declaration is considered 
> inline by default.

You're right, I forgot about that 

  reply	other threads:[~2006-04-27 14:43 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <65Jcu-3js-23@gated-at.bofh.it>
     [not found] ` <665wi-39E-3@gated-at.bofh.it>
     [not found]   ` <669JO-WQ-59@gated-at.bofh.it>
     [not found]     ` <66fcv-Cu-9@gated-at.bofh.it>
2006-04-27 14:23       ` C++ pushback Robert Hancock
2006-04-27 14:41         ` Denis Vlasenko [this message]
2006-04-24 19:27 Compiling C++ modules Greg KH
2006-04-24 20:02 ` C++ pushback Gary Poppitz
2006-04-24 20:15   ` Christoph Hellwig
2006-04-24 20:16   ` Greg KH
2006-04-24 20:18   ` Martin Mares
2006-04-24 21:36     ` Jeff V. Merkey
2006-04-24 21:28       ` J.A. Magallon
2006-04-24 21:43         ` Harald Arnesen
2006-04-24 21:52       ` Alan Cox
2006-04-24 22:16         ` J.A. Magallon
2006-04-25  0:05           ` Harald Arnesen
2006-04-25  0:46             ` Diego Calleja
2006-04-25  9:12               ` Harald Arnesen
2006-04-25  1:30           ` linux-os (Dick Johnson)
2006-04-25  2:58             ` marty fouts
2006-04-27 22:55             ` Bill Davidsen
2006-05-02 15:58               ` Randy.Dunlap
2006-05-02 20:36               ` David Schwartz
2006-04-25  8:15           ` Xavier Bestel
2006-04-25  8:42             ` Avi Kivity
2006-04-25  8:52               ` Martin Mares
2006-04-25  9:00                 ` Avi Kivity
2006-04-25  9:05                   ` Martin Mares
2006-04-25  9:13                     ` Avi Kivity
2006-04-25  9:22                       ` Xavier Bestel
2006-04-25 20:20                         ` J.A. Magallon
2006-04-25 20:31                           ` Barry Kelly
2006-04-25  9:09           ` Nikita Danilov
2006-04-25 20:10             ` J.A. Magallon
2006-04-25 18:02           ` Geert Uytterhoeven
2006-04-27  9:09           ` Alexander E. Patrakov
2006-04-24 22:39         ` Willy Tarreau
2006-04-24 22:57         ` Jeff V. Merkey
2006-04-24 23:02     ` David Schwartz
2006-04-25  8:55       ` Martin Mares
2006-04-25  8:59         ` Jan Engelhardt
2006-04-25 14:37         ` David Schwartz
2006-04-25 19:50           ` Martin Mares
2006-04-26  2:33             ` David Schwartz
2006-04-26  3:42               ` Matthew Frost
2006-04-26 19:25                 ` David Schwartz
2006-04-26 20:01                   ` Jan-Benedict Glaw
2006-04-26 20:09                     ` Linus Torvalds
2006-04-26 20:19                       ` Al Viro
2006-04-26 21:37                         ` Sam Ravnborg
2006-04-28  9:23                           ` Avi Kivity
2006-04-28 12:00                             ` linux-os (Dick Johnson)
2006-04-28 12:46                               ` Jan-Benedict Glaw
2006-04-26 20:25                       ` Jan-Benedict Glaw
2006-04-26 20:43                       ` David Schwartz
2006-04-26 23:00                       ` Roman Kononov
2006-04-27  0:38                         ` Kyle Moffett
2006-04-27  2:05                           ` Roman Kononov
2006-04-27  3:37                             ` Kyle Moffett
2006-04-27  5:37                               ` Roman Kononov
2006-04-27 13:58                                 ` Michael Buesch
2006-04-27 14:22                                   ` linux-os (Dick Johnson)
2006-04-27  8:07                               ` Avi Kivity
2006-04-27 13:55                                 ` Denis Vlasenko
2006-04-27 14:27                                   ` Avi Kivity
2006-04-27 14:56                                     ` Denis Vlasenko
2006-04-27 15:54                                       ` Bob Copeland
2006-04-27 16:03                                       ` Avi Kivity
2006-04-27 15:00                                     ` Martin Mares
2006-04-27 15:31                                       ` Avi Kivity
2006-04-27 15:38                                         ` Martin Mares
2006-04-28  8:16                                           ` Avi Kivity
2006-04-28  8:30                                             ` Avi Kivity
2006-04-28 15:47                                             ` Jan Engelhardt
2006-04-28 15:51                                     ` Jan Engelhardt
2006-04-28 16:51                                       ` Avi Kivity
2006-04-27 14:50                               ` Sam Ravnborg
2006-04-27  8:50                             ` Martin Mares
2006-04-27  3:57                         ` Willy Tarreau
2006-04-27  5:53                           ` Roman Kononov
2006-04-27  7:55                         ` Jan-Benedict Glaw
2006-04-30 17:48                         ` Jan Harkes
2006-04-30 20:55                           ` David Schwartz
2006-04-26 20:05                   ` linux-os (Dick Johnson)
2006-04-26 20:09                   ` Xavier Bestel
2006-04-26 20:44                     ` Randy.Dunlap
2006-04-27  7:49                     ` Jiri Kosina
2006-04-26 21:05                   ` Martin Mares
2006-04-25  7:33     ` Avi Kivity
2006-04-25  7:47       ` Nick Piggin
2006-05-13 16:21       ` Esben Nielsen
2006-04-24 20:36   ` Thiago Galesi
2006-04-24 21:38   ` Kurt Wall
2006-04-27 16:17   ` Roman Kononov
2006-04-27 21:59     ` Grant Coady
2006-04-27 22:09   ` Bill Davidsen
2006-04-27 23:19     ` Jan Knutar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200604271741.41999.vda@ilport.com.ua \
    --to=vda@ilport.com.ua \
    --cc=hancockr@shaw.ca \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox