Closed
Description
There are many cases of math functions not returning correct errno and floating point exceptions according to the C standard. The following cases are reported by Fred J. Tydeman:
log(1) = -0
forFE_DOWNWARD
logb(0)
is not raising divide-by-zerosqrt(-infinity)
=> missing errno == EDOMfmod(-NAN,-NAN) = +NAN
remainder(-infinity, -infinity)
=> no invalidnextafter(-max, -infinity)
=> no overflow, no inexactfdim(-inf, -inf)
=> invalid (should be no FP exception)fdim(-max, -den)
=> inexact (should be no FP exception)fma( -min, +min, +min )
=> missing underflowasinf()
issue: no inexact