Skip to content

Commit b811065

Browse files
authored
Merge branch 'main' into tidyref
2 parents 8d1b6ac + 3ea99a9 commit b811065

39 files changed

+379
-38
lines changed

libc/config/linux/aarch64/entrypoints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,7 @@ if(LIBC_TYPES_HAS_FLOAT16)
660660
list(APPEND TARGET_LIBM_ENTRYPOINTS
661661
# math.h C23 _Float16 entrypoints
662662
# libc.src.math.acoshf16
663+
libc.src.math.asinpif16
663664
libc.src.math.canonicalizef16
664665
libc.src.math.ceilf16
665666
libc.src.math.copysignf16

libc/config/linux/x86_64/entrypoints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ if(LIBC_TYPES_HAS_FLOAT16)
703703
libc.src.math.acospif16
704704
libc.src.math.asinf16
705705
libc.src.math.asinhf16
706+
libc.src.math.asinpif16
706707
libc.src.math.atanf16
707708
libc.src.math.atanhf16
708709
libc.src.math.canonicalizef16

libc/docs/headers/math/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ Higher Math Functions
259259
+-----------+------------------+-----------------+------------------------+----------------------+------------------------+------------------------+----------------------------+
260260
| asinh | |check| | | | |check| | | 7.12.5.2 | F.10.2.2 |
261261
+-----------+------------------+-----------------+------------------------+----------------------+------------------------+------------------------+----------------------------+
262-
| asinpi | | | | | | 7.12.4.9 | F.10.1.9 |
262+
| asinpi | | | | |check| | | 7.12.4.9 | F.10.1.9 |
263263
+-----------+------------------+-----------------+------------------------+----------------------+------------------------+------------------------+----------------------------+
264264
| atan | |check| | 1 ULP | | |check| | | 7.12.4.3 | F.10.1.3 |
265265
+-----------+------------------+-----------------+------------------------+----------------------+------------------------+------------------------+----------------------------+

libc/include/math.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ functions:
7979
arguments:
8080
- type: _Float16
8181
guard: LIBC_TYPES_HAS_FLOAT16
82+
- name: asinpif16
83+
standards:
84+
- stdc
85+
return_type: _Float16
86+
arguments:
87+
- type: _Float16
88+
guard: LIBC_TYPES_HAS_FLOAT16
8289
- name: atan
8390
standards:
8491
- stdc

libc/src/__support/math/acos.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace LIBC_NAMESPACE_DECL {
2424

2525
namespace math {
2626

27-
static constexpr double acos(double x) {
27+
LIBC_INLINE static constexpr double acos(double x) {
2828
using DoubleDouble = fputil::DoubleDouble;
2929
using namespace asin_internal;
3030
using FPBits = fputil::FPBits<double>;

libc/src/__support/math/acosf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static constexpr fputil::ExceptValues<float, N_EXCEPTS> ACOSF_EXCEPTS = {{
4545

4646
} // namespace acosf_internal
4747

48-
static constexpr float acosf(float x) {
48+
LIBC_INLINE static constexpr float acosf(float x) {
4949
using namespace acosf_internal;
5050
using namespace inv_trigf_utils_internal;
5151
using FPBits = typename fputil::FPBits<float>;

libc/src/__support/math/acosf16.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace LIBC_NAMESPACE_DECL {
2626

2727
namespace math {
2828

29-
static constexpr float16 acosf16(float16 x) {
29+
LIBC_INLINE static constexpr float16 acosf16(float16 x) {
3030

3131
// Generated by Sollya using the following command:
3232
// > round(pi/2, SG, RN);

libc/src/__support/math/acoshf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace LIBC_NAMESPACE_DECL {
2121

2222
namespace math {
2323

24-
static constexpr float acoshf(float x) {
24+
LIBC_INLINE static constexpr float acoshf(float x) {
2525
using namespace acoshf_internal;
2626
using FPBits_t = typename fputil::FPBits<float>;
2727
FPBits_t xbits(x);

libc/src/__support/math/acoshf16.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace LIBC_NAMESPACE_DECL {
2828

2929
namespace math {
3030

31-
static constexpr float16 acoshf16(float16 x) {
31+
LIBC_INLINE static constexpr float16 acoshf16(float16 x) {
3232

3333
using namespace acoshf_internal;
3434
constexpr size_t N_EXCEPTS = 2;

libc/src/__support/math/acospif16.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace LIBC_NAMESPACE_DECL {
2525

2626
namespace math {
2727

28-
static constexpr float16 acospif16(float16 x) {
28+
LIBC_INLINE static constexpr float16 acospif16(float16 x) {
2929
using FPBits = fputil::FPBits<float16>;
3030
FPBits xbits(x);
3131

0 commit comments

Comments
 (0)