Skip to content
Snippets Groups Projects
Commit 1499bf1e authored by Sam Yates's avatar Sam Yates Committed by Ben Cumming
Browse files

Avoid intermediate underflow in expm1 calc with ftz. (#454)

Intel compiler with default options does not guarantee correct fp behaviour with subnormals; it presumably sets the fp state to flush to zero.

Reordering a multiply and divide in the expm1 calculation avoids a transient subnormal value that was causing the routine to incorrectly return zero for very small, but normal, arguments.
parent f3be6dff
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment