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:
@ -32,7 +32,7 @@ __clog10f (__complex__ float x)
|
||||
int rcls = fpclassify (__real__ x);
|
||||
int icls = fpclassify (__imag__ x);
|
||||
|
||||
if (__builtin_expect (rcls == FP_ZERO && icls == FP_ZERO, 0))
|
||||
if (__glibc_unlikely (rcls == FP_ZERO && icls == FP_ZERO))
|
||||
{
|
||||
/* Real and imaginary part are 0.0. */
|
||||
__imag__ result = signbit (__real__ x) ? M_PI : 0.0;
|
||||
@ -40,7 +40,7 @@ __clog10f (__complex__ float x)
|
||||
/* Yes, the following line raises an exception. */
|
||||
__real__ result = -1.0 / fabsf (__real__ x);
|
||||
}
|
||||
else if (__builtin_expect (rcls != FP_NAN && icls != FP_NAN, 1))
|
||||
else if (__glibc_likely (rcls != FP_NAN && icls != FP_NAN))
|
||||
{
|
||||
/* Neither real nor imaginary part is NaN. */
|
||||
float absx = fabsf (__real__ x), absy = fabsf (__imag__ x);
|
||||
|
Reference in New Issue
Block a user