Skip to content

Commit 10f2410

Browse files
committed
Clang-formated the files
1 parent 43fefed commit 10f2410

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

libc/src/math/generic/rsqrtf16.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ LLVM_LIBC_FUNCTION(float16, rsqrtf16, (float16 x)) {
3535
}
3636
return x;
3737
}
38-
38+
3939
// |x| = 0
4040
if (LIBC_UNLIKELY(x_abs == 0x0)) {
4141
fputil::raise_except_if_required(FE_DIVBYZERO);
@@ -44,7 +44,7 @@ LLVM_LIBC_FUNCTION(float16, rsqrtf16, (float16 x)) {
4444
}
4545

4646
// -inf <= x < 0
47-
if (LIBC_UNLIKELY(x_sign == 1)) {
47+
if (LIBC_UNLIKELY(x_sign == 1)) {
4848
fputil::raise_except_if_required(FE_INVALID);
4949
fputil::set_errno_if_required(EDOM);
5050
return FPBits::quiet_nan().get_val();
@@ -54,13 +54,14 @@ LLVM_LIBC_FUNCTION(float16, rsqrtf16, (float16 x)) {
5454
if (LIBC_UNLIKELY(xbits.is_inf())) {
5555
return fputil::cast<float16>(0.0f);
5656
}
57-
57+
5858
// x = 1 => rsqrt(x) = 1
5959
if (LIBC_UNLIKELY(x_u == 0x1)) {
6060
return fputil::cast<float16>(1.0f);
6161
}
6262

63-
// x is valid, estimate the result - below is temporary solution for just testing
63+
// x is valid, estimate the result - below is temporary solution for just
64+
// testing
6465
float xf = x;
6566
return fputil::cast<float16>(1.0f / xf);
6667
}

libc/test/src/math/smoke/rsqrtf16_test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ TEST_F(LlvmLibcRsqrtf16Test, SpecialNumbers) {
1717
EXPECT_FP_EQ(aNaN, LIBC_NAMESPACE::rsqrtf16(aNaN));
1818
EXPECT_MATH_ERRNO(0);
1919

20-
EXPECT_FP_EQ_WITH_EXCEPTION(aNaN, LIBC_NAMESPACE::rsqrtf16(sNaN),
21-
FE_INVALID);
20+
EXPECT_FP_EQ_WITH_EXCEPTION(aNaN, LIBC_NAMESPACE::rsqrtf16(sNaN), FE_INVALID);
2221
EXPECT_MATH_ERRNO(0);
2322

2423
EXPECT_FP_EQ(aNaN, LIBC_NAMESPACE::rsqrtf16(0.0f));

0 commit comments

Comments
 (0)