Skip to content

Commit 92bdef5

Browse files
committed
clang-format
1 parent c6bc857 commit 92bdef5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

libc/src/math/generic/sincosf16_utils.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ LIBC_INLINE int32_t range_reduction_sincospif16(float x, float &y) {
5050
// Recall, range reduction:
5151
// k = round(x * 32/pi)
5252
// y = x * 32/pi - k
53-
//
53+
//
5454
// The constant 0x1.45f306dc9c883p3 is 32/pi rounded to double-precision.
5555
// 32/pi is generated by Sollya with the following commands:
5656
// > display = hexadecimal;
5757
// > round(32/pi, D, RN);
58-
//
58+
//
5959
// The precision choice of 'double' is to minimize rounding errors
6060
// in this initial scaling step, preserving enough bits so errors accumulated
6161
// while computing the subtraction: y = x * 32/pi - round(x * 32/pi)
62-
// are beyond the least-significant bit of single-precision used during
63-
// intermediate computation.
62+
// are beyond the least-significant bit of single-precision used during
63+
// further intermediate computation.
6464
LIBC_INLINE int32_t range_reduction_sincosf16(float x, float &y) {
6565
double prod = x * 0x1.45f306dc9c883p3;
6666
double kf = fputil::nearest_integer(prod);

libc/src/math/generic/sinf16.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ LLVM_LIBC_FUNCTION(float16, sinf16, (float16 x)) {
5555

5656
// Handle exceptional values
5757
if (LIBC_UNLIKELY(x_abs == 0x585c || x_abs == 0x5cb0 || x_abs == 0x51f5 ||
58-
x_abs == 0x2b45)) {
58+
x_abs == 0x2b45)) {
5959
bool x_sign = x_u >> 15;
6060
if (auto r = SINF16_EXCEPTS.lookup_odd(x_abs, x_sign);
6161
LIBC_UNLIKELY(r.has_value()))
6262
return r.value();
6363
}
6464

6565
// Exhaustive tests show that for |x| <= 0x13d0, 1ULP rounding errors occur.
66-
// To fix this, the following apply:
66+
// To fix this, the following apply:
6767
// - When x >= 0, and rounding upward, sin(x) == x.
6868
// - When x < 0, and rounding downward, sin(x) == x.
6969
// - When x < 0, and rounding upward, sin(x) == (x - 1ULP)
@@ -83,7 +83,7 @@ LLVM_LIBC_FUNCTION(float16, sinf16, (float16 x)) {
8383
}
8484

8585
if (xbits.is_inf_or_nan()) {
86-
if (xbits.is_inf()){
86+
if (xbits.is_inf()) {
8787
fputil::set_errno_if_required(EDOM);
8888
fputil::raise_except_if_required(FE_INVALID);
8989
}

0 commit comments

Comments
 (0)