Skip to content

Commit 6c1cc4c

Browse files
committed
Fix formatting.
1 parent 2f10f9c commit 6c1cc4c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

libc/src/math/generic/sin.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ LLVM_LIBC_FUNCTION(double, sin, (double x)) {
4646
if (LIBC_LIKELY(x_e < FPBits::EXP_BIAS + FAST_PASS_EXPONENT)) {
4747
// |x| < 2^-7
4848
if (LIBC_UNLIKELY(x_e < FPBits::EXP_BIAS - 7)) {
49-
// |x| < 2^-26
49+
// |x| < 2^-26, |sin(x) - x| < ulp(x)/2.
5050
if (LIBC_UNLIKELY(x_e < FPBits::EXP_BIAS - 26)) {
5151
// Signed zeros.
5252
if (LIBC_UNLIKELY(x == 0.0))
5353
return x;
5454

55-
// For |x| < 2^-26, |sin(x) - x| < ulp(x)/2.
5655
#ifdef LIBC_TARGET_CPU_HAS_FMA
5756
return fputil::multiply_add(x, -0x1.0p-54, x);
5857
#else

libc/src/math/generic/tan.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,12 @@ LLVM_LIBC_FUNCTION(double, tan, (double x)) {
134134
if (LIBC_LIKELY(x_e < FPBits::EXP_BIAS + FAST_PASS_EXPONENT)) {
135135
// |x| < 2^-7
136136
if (LIBC_UNLIKELY(x_e < FPBits::EXP_BIAS - 7)) {
137-
// |x| < 2^-27
137+
// |x| < 2^-27, |tan(x) - x| < ulp(x)/2.
138138
if (LIBC_UNLIKELY(x_e < FPBits::EXP_BIAS - 27)) {
139139
// Signed zeros.
140140
if (LIBC_UNLIKELY(x == 0.0))
141141
return x;
142142

143-
// For |x| < 2^-27, |tan(x) - x| < ulp(x)/2.
144143
#ifdef LIBC_TARGET_CPU_HAS_FMA
145144
return fputil::multiply_add(x, 0x1.0p-54, x);
146145
#else

0 commit comments

Comments
 (0)