math: fix expf(-NAN) and exp2f(-NAN) to return -NAN instead of 0