[PATCH] Add branch prediction favouring normal numbers
Mike Frysinger
vapier@gentoo.org
Wed Dec 26 17:33:00 GMT 2012
On Wednesday 26 December 2012 04:54:32 Siddhesh Poyarekar wrote:
> - if (EX> -42) norm(x,y,p);
> - else if (EX==-42 && X[1]>=TWO10) norm(x,y,p);
> - else denorm(x,y,p);
> + if (__builtin_expect (EX> -42 || (EX==-42 && X[1]>=TWO10), 1))
> + norm(x,y,p);
we have __glibc_unlikely & __glibc_likely now
-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/20121226/98a9a170/attachment.sig>
More information about the Libc-alpha
mailing list