[libc][math] Refactor nextdown family to header-only (#181679)

closes #181678

GitOrigin-RevId: 4ef6a8a16ee711cdcccd630877fc1811999d3324
23 files changed