[libc-commits] [libc] Add sinf16 function (PR #116674)
via libc-commits
libc-commits at lists.llvm.org
Wed Nov 27 09:51:54 PST 2024
================
@@ -46,10 +47,17 @@ LIBC_INLINE int32_t range_reduction_sincospif16(float x, float &y) {
return static_cast<int32_t>(kf);
}
-LIBC_INLINE void sincospif16_eval(float xf, float &sin_k, float &cos_k,
- float &sin_y, float &cosm1_y) {
- float y;
- int32_t k = range_reduction_sincospif16(xf, y);
+LIBC_INLINE int32_t range_reduction_sincosf16(float x, float &y) {
+ double prod = x * 0x1.45f306dc9c883p3;
----------------
overmighty wrote:
Could you add comments to explain this?
https://github.com/llvm/llvm-project/pull/116674
More information about the libc-commits
mailing list