diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-27 08:17:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-27 08:17:49 +0200 |
| commit | 68597c764120b31b066f17d4f07de0d0a4384a0b (patch) | |
| tree | 1cf9b343f9fc69b097b6eea6254f719e7259d878 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 6d20265a9e8cdde5f339005ee12a3103a8ddac0c (diff) | |
| parent | e33d8707c8ed516fd798c835acf7e1567293cf9a (diff) | |
| download | rust-68597c764120b31b066f17d4f07de0d0a4384a0b.tar.gz rust-68597c764120b31b066f17d4f07de0d0a4384a0b.zip | |
Rollup merge of #63698 - Phosphorus15:master, r=nagisa
Fixed floating point issue with asinh function This should fixes #63271 , in which `asinh(-0.0)` returns `0.0` instead of `-0.0`. according to @nagisa > > > IEEE-754 (2008), section 9.2.1: > > > For the functions expm1, exp2m1, exp10m1, logp1, log2p1, log10p1, sin, tan, sinPi, atanPi, asin, atan, sinh, tanh, asinh, and atanh, f(+0) is +0 and f(−0) is −0 with no exception. > > and > > > sinh(±∞) and asinh(±∞) are ±∞ with no exception. After ensuring that the function `asinh` is the only function affected (functions like `sin`, `sinh` are all based on `cmath` library or `llvm` intrinsics), and that `atanh` always gives the correct result. The only function to modify is `asinh`.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
