[all-commits] [llvm/llvm-project] 5d2cc4: [libc][math] Improve the performance of sin/cos fo...
lntue via All-commits
all-commits at lists.llvm.org
Mon Jun 8 12:28:17 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5d2cc4dc1742d7373f0c52a0a29dcc5ab97a4446
https://github.com/llvm/llvm-project/commit/5d2cc4dc1742d7373f0c52a0a29dcc5ab97a4446
Author: lntue <lntue at google.com>
Date: 2026-06-08 (Mon, 08 Jun 2026)
Changed paths:
M libc/src/__support/math/cos.h
M libc/src/__support/math/sin.h
Log Message:
-----------
[libc][math] Improve the performance of sin/cos for small inputs |x| < 2^-4. (#201748)
- Use a degree-9 polynomial for fast path for sin(x), generated by Sollya,
with errors bounded by `|x| * 2^-68 + 2* ulp(x^3 / 6)`.
- Use a degree-8 polynomial for fast path for cos(x), generated by Sollya,
with errors bounded by `2^-69 + ulp(x^2/ 2 )`.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list