Re: surprising optimization of comparison operations for __int128_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 9, 2010 at 12:35 PM, Andrew Haley <aph@xxxxxxxxxx> wrote:
>> things). Do you know of a way to convince gcc to not generate this
>> specialization so that I really measure the generic comparison
>> function ? I guess that I could pull the constant values from the
>> command line to ensure that gcc does not generate this specialization
>> but is there a better way ?
>
> Sure, just don't use constants for 1 and 2.  Putting them as variables
> in file scope ought to do it.
>
> int one = 1;

that did not work: I had to pull them explicitely from the command-line.

> P.S.  Please cc: me on copies, don't send a separate mail.

Yes: I need to get used to that stupid gmail, sorry for that :/

Mathieu
-- 
Mathieu Lacage <mathieu.lacage@xxxxxxxxx>



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux