Skip to content

[flang] add folding support for quad bessels #77314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions flang/lib/Evaluate/intrinsics-library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ template <> struct HostRuntimeLibrary<float, LibraryVersion::LibmExtensions> {
template <> struct HostRuntimeLibrary<__float128, LibraryVersion::Libm> {
using F = FuncPointer<__float128, __float128>;
using F2 = FuncPointer<__float128, __float128, __float128>;
using FN = FuncPointer<__float128, int, __float128>;
static constexpr HostRuntimeFunction table[]{
FolderFactory<F, F{::acosq}>::Create("acos"),
FolderFactory<F, F{::acoshq}>::Create("acosh"),
Expand All @@ -329,6 +330,12 @@ template <> struct HostRuntimeLibrary<__float128, LibraryVersion::Libm> {
FolderFactory<F, F{::atanq}>::Create("atan"),
FolderFactory<F2, F2{::atan2q}>::Create("atan2"),
FolderFactory<F, F{::atanhq}>::Create("atanh"),
FolderFactory<F, F{::j0q}>::Create("bessel_j0"),
FolderFactory<F, F{::j1q}>::Create("bessel_j1"),
FolderFactory<FN, FN{::jnq}>::Create("bessel_jn"),
FolderFactory<F, F{::y0q}>::Create("bessel_y0"),
FolderFactory<F, F{::y1q}>::Create("bessel_y1"),
FolderFactory<FN, FN{::ynq}>::Create("bessel_yn"),
FolderFactory<F, F{::cosq}>::Create("cos"),
FolderFactory<F, F{::coshq}>::Create("cosh"),
FolderFactory<F, F{::erfq}>::Create("erf"),
Expand Down