[libc][nfc] move printf inf/nan to separate function
authorMichael Jones <michaelrj@google.com>
Wed, 13 Jul 2022 17:17:54 +0000 (10:17 -0700)
committerMichael Jones <michaelrj@google.com>
Fri, 22 Jul 2022 17:29:35 +0000 (10:29 -0700)
commit3b0c78fe3bc9e20061e38935ca6d4fb435027f41
tree7c5cdb556c142e7bd5393e2dc6680d9faf02d374
parent535b507ba58e8b5f604d53ffc961be1456d229a7
[libc][nfc] move printf inf/nan to separate function

The floating point functions all use the same inf and nan formatting. By
separating this functionality out of the %a conversion I make it
available for reuse by %f/e/g.

Reviewed By: lntue, sivachandra

Differential Revision: https://reviews.llvm.org/D129665
libc/src/stdio/printf_core/CMakeLists.txt
libc/src/stdio/printf_core/float_hex_converter.h
libc/src/stdio/printf_core/float_inf_nan_converter.h [new file with mode: 0644]