[libc][math] Optimize nearest integer functions using builtins when available (#98376)
[libc][math] Optimize generic nearest integer functions (#98483)