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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user