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]

Re: [v3] libstdc++/44413 (for ext/vstring)


On 06/09/2010 03:52 PM, Doug Semler wrote:
> I don't see it. You're really hurting the 32 bit side with this. The
> original is reduced to a subtraction, while the new code adds:
>
>         xorl    %eax, %eax
>         cmpl    $0, %edx
>         je      .L3
>         setg    %al
>         movzbl  %al, %eax
>         leal    -1(%eax,%eax), %eax
> .L3
>         ret
>
> In addition, it seems that the attempt only reduces the code by one move?
>   
Agreed, let's revert this. I don't think we are going to do much before
the next ABI, at least.

Paolo.


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