Skip to content

Commit 8f44c6b

Browse files
committed
[libc][math][c23] Do some change for comments again.
1 parent 7d653a1 commit 8f44c6b

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

libc/src/math/generic/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3956,7 +3956,6 @@ add_entrypoint_object(
39563956
libc.hdr.errno_macros
39573957
libc.hdr.fenv_macros
39583958
libc.src.__support.FPUtil.cast
3959-
libc.src.__support.FPUtil.except_value_utils
39603959
libc.src.__support.FPUtil.fenv_impl
39613960
libc.src.__support.FPUtil.fp_bits
39623961
libc.src.__support.FPUtil.multiply_add

libc/src/math/generic/acoshf16.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ LLVM_LIBC_FUNCTION(float16, acoshf16, (float16 x)) {
5555
}
5656

5757
// Domain error for inputs less than 1.0.
58-
if (LIBC_UNLIKELY(x_abs < 0x3c00)) {
58+
if (LIBC_UNLIKELY(x_abs < 0x3c00U)) {
5959
fputil::set_errno_if_required(EDOM);
6060
fputil::raise_except_if_required(FE_INVALID);
6161
return FPBits::quiet_nan().get_val();
@@ -65,7 +65,7 @@ LLVM_LIBC_FUNCTION(float16, acoshf16, (float16 x)) {
6565
if (LIBC_UNLIKELY(x_u == 0x3c00U))
6666
return float16(0.0f);
6767

68-
float xf32 = static_cast<float>(x);
68+
float xf32 = x;
6969

7070
// High precision for inputs very close to 1.0
7171
// if (LIBC_UNLIKELY(xf32 < 1.25f)) {

libc/test/src/math/acoshf16_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- Unittests for acoshf16 ----------------------------------------------===//
1+
//===-- Unittests for acoshf16 --------------------------------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ TEST_F(LlvmLibcAcoshf16Test, SpecialNumbers) {
3838

3939
EXPECT_FP_EQ(aNaN, LIBC_NAMESPACE::acoshf16(float16(0.5f)));
4040
EXPECT_MATH_ERRNO(EDOM);
41-
}
41+
}

0 commit comments

Comments
 (0)