diff options
| author | Guillaume Chatelet <gchatelet@google.com> | 2023-02-07 13:16:33 +0000 |
|---|---|---|
| committer | Guillaume Chatelet <gchatelet@google.com> | 2023-02-07 13:16:53 +0000 |
| commit | 29f8e076bd4279a013e8512591ca62da5ee3aac4 (patch) | |
| tree | 18695dc03a6a45d8f0adb1f2be61f0ba341a12ee /libc/src/math/generic/sincosf.cpp | |
| parent | 8f3c2c5ee64504949d1cdca73d6408574272ea1a (diff) | |
[libc][NFC] Move attributes from common to macros folder
Diffstat (limited to 'libc/src/math/generic/sincosf.cpp')
| -rw-r--r-- | libc/src/math/generic/sincosf.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/src/math/generic/sincosf.cpp b/libc/src/math/generic/sincosf.cpp index 75d985d79579..19e5d2bf525f 100644 --- a/libc/src/math/generic/sincosf.cpp +++ b/libc/src/math/generic/sincosf.cpp @@ -97,8 +97,8 @@ LLVM_LIBC_FUNCTION(void, sincosf, (float x, float *sinp, float *cosp)) { // Sollya respectively. // |x| < 0x1.0p-12f - if (unlikely(x_abs < 0x3980'0000U)) { - if (unlikely(x_abs == 0U)) { + if (LIBC_UNLIKELY(x_abs < 0x3980'0000U)) { + if (LIBC_UNLIKELY(x_abs == 0U)) { // For signed zeros. *sinp = x; *cosp = 1.0f; @@ -141,7 +141,7 @@ LLVM_LIBC_FUNCTION(void, sincosf, (float x, float *sinp, float *cosp)) { } // x is inf or nan. - if (unlikely(x_abs >= 0x7f80'0000U)) { + if (LIBC_UNLIKELY(x_abs >= 0x7f80'0000U)) { if (x_abs == 0x7f80'0000U) { errno = EDOM; fputil::set_except(FE_INVALID); @@ -154,7 +154,7 @@ LLVM_LIBC_FUNCTION(void, sincosf, (float x, float *sinp, float *cosp)) { // Check exceptional values. for (int i = 0; i < N_EXCEPTS; ++i) { - if (unlikely(x_abs == EXCEPT_INPUTS[i])) { + if (LIBC_UNLIKELY(x_abs == EXCEPT_INPUTS[i])) { uint32_t s = EXCEPT_OUTPUTS_SIN[i][0]; // FE_TOWARDZERO uint32_t c = EXCEPT_OUTPUTS_COS[i][0]; // FE_TOWARDZERO bool x_sign = x < 0; |
