diff options
author | Antonio Sanchez <cantonios@google.com> | 2021-02-09 12:01:09 -0800 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2021-02-10 22:48:05 +0000 |
commit | 9fde9cce5d261fba692082be6e7bcac04f98a22d (patch) | |
tree | cd0daa151b9edb50c3db9d7c663ed18a794e2e8a /Eigen/src/Core/arch/AltiVec/PacketMath.h | |
parent | 4cb563a01e0619ea1798c7927f1909755ead2dd8 (diff) |
Adjust bounds for pexp_float/double
The original clamping bounds on `_x` actually produce finite values:
```
exp(88.3762626647950) = 2.40614e+38 < 3.40282e+38
exp(709.437) = 1.27226e+308 < 1.79769e+308
```
so with an accurate `ldexp` implementation, `pexp` fails for large
inputs, producing finite values instead of `inf`.
This adjusts the bounds slightly outside the finite range so that
the output will overflow to +/- `inf` as expected.
Diffstat (limited to 'Eigen/src/Core/arch/AltiVec/PacketMath.h')
0 files changed, 0 insertions, 0 deletions