[PATCH] Add branch prediction favouring normal numbers

Mike Frysinger vapier@gentoo.org
Thu Dec 27 21:39:00 GMT 2012


On Thursday 27 December 2012 05:41:48 you wrote:
> On Wed, Dec 26, 2012 at 12:33:16PM -0500, Mike Frysinger wrote:
> > we have __glibc_unlikely & __glibc_likely now
> > -mike
> 
> We have __glibc_unlikely, but not glibc_likely (and I realized that I
> had added it ;) ).  So here's a patch to add __glibc_likely.

touche

Acked-by: Mike Frysinger <vapier@gentoo.org>

> +  if (__glibc_likely (EX> -42 || (EX==-42 && X[1]>=TWO10)))
> +    norm(x,y,p);
> +  else
> +    denorm(x,y,p);

should we fix the style while we're modifying the file ?  there's quite a number 
of spaces that are "missing" ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20121227/c5a360f4/attachment.sig>


More information about the Libc-alpha mailing list