1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Use glibc_likely instead __builtin_expect.

This commit is contained in:
Ondřej Bílka
2014-02-10 14:45:42 +01:00
parent 1448f32447
commit a1ffb40e32
466 changed files with 2224 additions and 1655 deletions

View File

@ -33,16 +33,16 @@ __csin (__complex__ double x)
__real__ x = fabs (__real__ x);
if (__builtin_expect (icls >= FP_ZERO, 1))
if (__glibc_likely (icls >= FP_ZERO))
{
/* Imaginary part is finite. */
if (__builtin_expect (rcls >= FP_ZERO, 1))
if (__glibc_likely (rcls >= FP_ZERO))
{
/* Real part is finite. */
const int t = (int) ((DBL_MAX_EXP - 1) * M_LN2);
double sinix, cosix;
if (__builtin_expect (rcls != FP_SUBNORMAL, 1))
if (__glibc_likely (rcls != FP_SUBNORMAL))
{
__sincos (__real__ x, &sinix, &cosix);
}
@ -136,7 +136,7 @@ __csin (__complex__ double x)
/* Real part is finite. */
double sinix, cosix;
if (__builtin_expect (rcls != FP_SUBNORMAL, 1))
if (__glibc_likely (rcls != FP_SUBNORMAL))
{
__sincos (__real__ x, &sinix, &cosix);
}