1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +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 @@ __csinh (__complex__ double x)
__real__ x = fabs (__real__ x);
if (__builtin_expect (rcls >= FP_ZERO, 1))
if (__glibc_likely (rcls >= FP_ZERO))
{
/* Real part is finite. */
if (__builtin_expect (icls >= FP_ZERO, 1))
if (__glibc_likely (icls >= FP_ZERO))
{
/* Imaginary part is finite. */
const int t = (int) ((DBL_MAX_EXP - 1) * M_LN2);
double sinix, cosix;
if (__builtin_expect (icls != FP_SUBNORMAL, 1))
if (__glibc_likely (icls != FP_SUBNORMAL))
{
__sincos (__imag__ x, &sinix, &cosix);
}
@ -125,12 +125,12 @@ __csinh (__complex__ double x)
else if (rcls == FP_INFINITE)
{
/* Real part is infinite. */
if (__builtin_expect (icls > FP_ZERO, 1))
if (__glibc_likely (icls > FP_ZERO))
{
/* Imaginary part is finite. */
double sinix, cosix;
if (__builtin_expect (icls != FP_SUBNORMAL, 1))
if (__glibc_likely (icls != FP_SUBNORMAL))
{
__sincos (__imag__ x, &sinix, &cosix);
}