Minor simplifications for std::to_chars implementation
commit6e672b1801f9443916a8b5033d9e3bf88baa3f5d
authorJonathan Wakely <jwakely@redhat.com>
Mon, 2 Sep 2019 11:31:25 +0000 (2 12:31 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 2 Sep 2019 11:31:25 +0000 (2 12:31 +0100)
tree6efe7614d3c1006adc3c0e663ed36224068dfdbc
parent000a5f8d23c04cc52f265519fccf37c81b5a0bad
Minor simplifications for std::to_chars implementation

* include/std/charconv (__detail::__to_chars_2_len): Use std::log2p1.
(__detail::__to_chars_8_len): Remove.
(__detail::__to_chars_8): Inline length calculation here.
(__detail::__from_chars_binary): Use numeric_limits instead of
CHAR_BIT.

From-SVN: r275313
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/charconv