Skip to content
Commit 94b4be60 authored by Szabolcs Nagy's avatar Szabolcs Nagy
Browse files

math: fix spurious underflow in erff and erf

The code relied on the final x + c*x to be done via an fma, otherwise
the intermediate c*x could underflow for tiny (almost subnormal) x.

Use explicit fmaf like elsewhere (this code is not expected to be
fast when fma is not inlined, but at least it should be correct).
parent 15a1d62b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment