yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #06337
Re: likely/unlikely expressions
Ok, I found it!
GCC needs additional option for compiling -fprofile-generate
http://stackoverflow.com/questions/1851299/is-it-possible-to-tell-the-branch-predictor-how-likely-it-is-to-follow-the-branch
And then those examples are working.
Sorry for warning.
Anton
On Tue, Nov 30, 2010 at 11:59 AM, Anton Gladky <gladky.anton@xxxxxxxxx>wrote:
> Hi, (Vaclav)
>
> in experimental SubDomain branch
> http://bazaar.launchpad.net/~yade-dev/yade/subdomains/revision/2568<http://bazaar.launchpad.net/%7Eyade-dev/yade/subdomains/revision/2568>you are using likely/unlikely expressions, which should help to produce
> optimized code.
> But have you tried those examples? http://kerneltrap.org/node/4705
>
> As for me. in both examples the produced binary code is completely
> identical. Could you not try those?
>
> Thanks
>
> Anton
>
>
Follow ups
References