[all-commits] [llvm/llvm-project] f21c24: [libc++] Fix numeric of exp(complex) at inf
Gao, Xiang via All-commits
all-commits at lists.llvm.org
Thu Oct 28 13:11:11 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f21c2473006f1e6f9e3e28ba70f898a0aece8cb4
https://github.com/llvm/llvm-project/commit/f21c2473006f1e6f9e3e28ba70f898a0aece8cb4
Author: Xiang Gao <qasdfgtyuiop at gmail.com>
Date: 2021-10-28 (Thu, 28 Oct 2021)
Changed paths:
M libcxx/include/complex
M libcxx/test/std/numerics/complex.number/cases.h
M libcxx/test/std/numerics/complex.number/complex.transcendentals/exp.pass.cpp
Log Message:
-----------
[libc++] Fix numeric of exp(complex) at inf
This fixes the bug that exp({501, 0}) returns {inf, nan} instead
of {inf, 0}.
Differential Revision: https://reviews.llvm.org/D112277
Commit: de493a26b9709fde96938c9e34bd817d0e0b1f6a
https://github.com/llvm/llvm-project/commit/de493a26b9709fde96938c9e34bd817d0e0b1f6a
Author: Xiang Gao <qasdfgtyuiop at gmail.com>
Date: 2021-10-28 (Thu, 28 Oct 2021)
Changed paths:
M libcxx/include/complex
M libcxx/test/std/numerics/complex.number/complex.transcendentals/tanh.pass.cpp
Log Message:
-----------
[libc++] Fix buggy numerics of tanh(complex) at inf
Because:
lim[x->inf, tanh(x+iy)] = 1
lim[x->-inf, tanh(x+iy)] = -1
See also https://github.com/NVIDIA/libcudacxx/pull/210
Differential Revision: https://reviews.llvm.org/D112252
Compare: https://github.com/llvm/llvm-project/compare/627fa0b9a897...de493a26b970
More information about the All-commits
mailing list