math: fix acoshf for negative inputs