[libc][math] Fix near-overflow and NaN handling in expm1 and expm1f. (#246103)
- Clamp the `-2^(-hi)` exponent when `hi >= 1023` in `expm1` so `hi ==
1024` near overflow does not construct `-Inf` and raise a spurious
`FE_INVALID` in `exact_add`.
- Explicitly quiet `+/-sNaN` and raise `FE_INVALID` in `expm1` and
`expm1f`, and use `fputil::round_result_slightly_up(-1.0f)` for large
negative finite inputs in `expm1f` so `FE_INEXACT` is raised.
- Add smoke tests for `+/-sNaN`, `+/-qNaN`, and near-overflow `expm1`
inputs, and sync CMake and Bazel dependencies.
Assisted-by: Gemini