[libc][math] Add Missing math functions to math.yaml
Some of the missing functions
-
[x] Trigonometric Functions: https://github.com/llvm/llvm-project/pull/199442
- acospif
- atan2f16
-
[x] Error, Gamma Functions and fma: https://github.com/llvm/llvm-project/pull/199485
- dfmaf128
- dfmal
-
[ ] ~~Canonical : https://github.com/llvm/llvm-project/pull/199317~~
- iscanonical
- iscanonicalf
- iscanonicalf128
- iscanonicalf16
- iscanonicall
-
[ ] ~~Signaling: https://github.com/llvm/llvm-project/pull/199357~~
- issignaling
- issignalingf
- issignalingf128
- issignalingf16
- issignalingl
Feel free to add any additional missing functions apart from this. Make sure to adhere to LLVM AI Tool Use Policy.
@llvm/issue-subscribers-libc
Author: Zorojuro (Sukumarsawant)
Feel free to add any additional missing function apart from this.
Adding iscanonical in https://github.com/llvm/llvm-project/pull/199317 . : )
Hi! I observed that there exists
- name: atan2f128
standards:
- stdc
return_type: float128
arguments:
- type: float128
- type: float128
guard: LIBC_TYPES_HAS_FLOAT128
but no other transcendental function supports float128.
I'll go ahead and add the _Float128 variants of most/all functions mentioned in the first comment in this thread.
Hi, I’d like to work on the sinh, asinh, cosh, acosh, tanh, and atanh functions. Could you please assign this issue to me?
@ArnavM21git you can work on Error, Gamma Functions and fma,
@skandanyal on issignalling family
and @iamaayushrivastava on trigonometric ones, It would be better to review separately.
Adding Error, Gamma Functions and Fma in math.yaml in https://github.com/llvm/llvm-project/pull/199340#issue-4507829433
Hello! Thank you for assigning the work. I'll take it up and execute it at my earliest convenience.
Hi! I observed that there exists
- name: atan2f128 standards: - stdc return_type: float128 arguments: - type: float128 - type: float128 guard: LIBC_TYPES_HAS_FLOAT128 but no other transcendental function supports float128.
I'll go ahead and add the _Float128 variants of most/all functions mentioned in the first comment in this thread.
feel free to add a comment listing the functions here so can add into the tracking issue
Hi! I observed that there exists
- name: atan2f128 standards:
- stdc return_type: float128 arguments:
- type: float128
- type: float128 guard: LIBC_TYPES_HAS_FLOAT128 but no other transcendental function supports float128.
I'll go ahead and add the _Float128 variants of most/all functions mentioned in the first comment in this thread.
feel free to add a comment listing the functions here so can add into the tracking issue
Um... I'm sorry, I got confused and I happened to close that particular branch. But here are the functions which were originally added -
- atanhf128
- acoshf128
- acosf128
- asinf128
- asinhf128
- cosf128
- coshf128
- cospif128
- sinf128
- sinhf128
- sinpif128
- tanf128
- tanhf128
- tanpif128
I can take up the job to add them to math.yaml, and even implement them further if required.
@ArnavM21git you can work on Error, Gamma Functions and fma,
@skandanyal on issignalling family
and @iamaayushrivastava on trigonometric ones, It would be better to review separately.
Hi, thank you for assigning the work. I've started working on the trigonometric functions.
Hi! I observed that there exists
name: atan2f128 standards:
- stdc return_type: float128 arguments:
- type: float128
- type: float128 guard: LIBC_TYPES_HAS_FLOAT128 but no other transcendental function supports float128.
I'll go ahead and add the _Float128 variants of most/all functions mentioned in the first comment in this thread.
feel free to add a comment listing the functions here so can add into the tracking issue
Um... I'm sorry, I got confused and I happened to close that particular branch. But here are the functions which were originally added -
- atanhf128
- acoshf128
- acosf128
- asinf128
- asinhf128
- cosf128
- coshf128
- cospif128
- sinf128
- sinhf128
- sinpif128
- tanf128
- tanhf128
- tanpif128
I can take up the job to add them to
math.yaml, and even implement them further if required.
They haven't been implemented yet, and also hold f128 for now. You can try some other functions . There's one tgammabf16 if you want to try implementing some (#199245)
@Sukumarsawant any left that i can work on ?
@Sukumarsawant any left that i can work on ?
All are taken already. You can add any missing ones from the description though. (Which are implemented)
Hi @Sukumarsawant, I've opened a PR implementing the missing hyperbolic math functions acosh, asinh, atanh, cosh, sinh, and tanh along with fixing the missing math.yaml entries for acospif and atan2f16. Could you please review it when you get a chance? Thank you!
PR: 199442
Hi @Sukumarsawant, I've opened a PR implementing the missing hyperbolic math functions
acosh,asinh,atanh,cosh,sinh, andtanhalong with fixing the missingmath.yamlentries foracospifandatan2f16. Could you please review it when you get a chance? Thank you!PR: 199442
Some haven't been implemented yet, do check the comment on your PR .Have updated the description accordingly.
hypotf16 ?
hypotf16
It's already there in math.yaml
I was looking through the remaining entries related to this issue and would like to contribute.
Are there any missing functions in math.yaml that have not yet been claimed or covered by existing PRs? If so, I'd be happy to work on one of them.