Skip to content

Commit e5dc117

Browse files
committed
nit formatting changes
1 parent 31ea8dc commit e5dc117

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

libc/src/math/generic/cospif16.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "src/__support/macros/optimization.h"
1818

1919
namespace LIBC_NAMESPACE_DECL {
20+
2021
LLVM_LIBC_FUNCTION(float16, cospif16, (float16 x)) {
2122
using FPBits = typename fputil::FPBits<float16>;
2223
FPBits xbits(x);
@@ -76,4 +77,5 @@ LLVM_LIBC_FUNCTION(float16, cospif16, (float16 x)) {
7677
return fputil::cast<float16>(fputil::multiply_add(
7778
cos_k, cosm1_y, fputil::multiply_add(-sin_k, sin_y, cos_k)));
7879
}
80+
7981
} // namespace LIBC_NAMESPACE_DECL

libc/src/math/generic/sincosf16_utils.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ LIBC_INLINE void sincospif16_eval(float xf, float &sin_k, float &cos_k,
6060
float ysq = y * y;
6161

6262
// Degree-6 minimax even polynomial for sin(y*pi/32)/y generated by Sollya
63-
// with:
63+
// with:
6464
// > Q = fpminimax(sin(y * pi/32)/y, [|0, 2, 4, 6|], [|SG...|], [0, 0.5]);
6565
sin_y = y * fputil::polyeval(ysq, 0x1.921fb6p-4f, -0x1.4aeabcp-13f,
6666
0x1.a03354p-21f, -0x1.ad02d2p-20f);
6767

68-
// Degree-6 minimax even polynomial for cos(y*pi/32) generated by Sollya with:
68+
// Degree-6 minimax even polynomial for cos(y*pi/32) generated by Sollya
69+
// with:
6970
// > P = fpminimax(cos(y * pi/32), [|0, 2, 4, 6|],[|1, SG...|], [0, 0.5]);
7071
cosm1_y = ysq * fputil::polyeval(ysq, -0x1.3bd3ccp-8f, 0x1.03a61ap-18f,
7172
0x1.a6f7a2p-29f);

libc/src/math/generic/sinpif16.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "src/__support/FPUtil/multiply_add.h"
1717

1818
namespace LIBC_NAMESPACE_DECL {
19+
1920
LLVM_LIBC_FUNCTION(float16, sinpif16, (float16 x)) {
2021
using FPBits = typename fputil::FPBits<float16>;
2122
FPBits xbits(x);
@@ -71,4 +72,5 @@ LLVM_LIBC_FUNCTION(float16, sinpif16, (float16 x)) {
7172
return fputil::cast<float16>(fputil::multiply_add(
7273
sin_y, cos_k, fputil::multiply_add(cosm1_y, sin_k, sin_k)));
7374
}
75+
7476
} // namespace LIBC_NAMESPACE_DECL

0 commit comments

Comments
 (0)