softmath: Add error handling for acosh, acoshf and acoshl
softmath: Fix errno in log and logl
softmath: Add error handling for expm1, expm1f and expm1l
softmath: Add error handling for exp and expl