This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] Use __builtin_clz* for __lg
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Joe Buck <Joe dot Buck at synopsys dot COM>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Thu, 25 Oct 2007 00:19:32 +0200
- Subject: Re: [Patch] Use __builtin_clz* for __lg
- References: <471FA3AD.5010507@suse.de> <20071024215743.GM6597@synopsys.com>
Joe Buck wrote:
> Your "specializations" aren't specializations, but ordinary functions.
> I'm not sure whether this matters in practice, though.
>
> That is, you define __lg(int), not __lg<int>(int).
>
Right. In fact I carefully used the term -overloads- in the ChangeLog.
> I guess this might matter when __lg is called from a template.
>
I went through the various uses and all seem safe to me.
Thanks,
Paolo.