[libc][math] Refactor tanf16 to header only (#181523)

Part of https://github.com/llvm/llvm-project/issues/147386

GitOrigin-RevId: 1cb86450d8fe6c4681e60d10ebbe436dc6fd61fc
8 files changed