yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #06343
Re: likely/unlikely expressions
As I understand from this link
http://stackoverflow.com/questions/1851299/is-it-possible-to-tell-the-branch-predictor-how-likely-it-is-to-follow-the-branch
it is not really necessary to put those ___builtin's into the code, as Core2
and newer processor do this work even better.
Anton
2010/11/30 Václav Šmilauer <eu@xxxxxxxx>
>
> We can try and measure productivity with additional parameter. If it
>> really helps, why not. Bit I think, first of all, we should add more of
>> those "likely/unlikely" expressions to get the difference.
>>
> Ah, please, do not do that. I wanted to use them only in a very specific
> places, and to evaluate if they make any difference. I am not a computer
> expert either, but I can imagine people putting them everywhere thinking
> they know better than the computer... and that would be a real mess. Perhaps
> I will remove them again, dunno.
>
>
> v
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> More help : https://help.launchpad.net/ListHelp
>
References