]> git.lizzy.rs Git - rust.git/commit
fmt: reduce the stack space required by float formatting
authorNathan Froyd <froydnj@gmail.com>
Thu, 13 Apr 2017 19:49:37 +0000 (15:49 -0400)
committerNathan Froyd <froydnj@gmail.com>
Fri, 28 Apr 2017 19:27:08 +0000 (15:27 -0400)
commita21f61685d4aa2bd93152eaf53c469b29a3a9bee
tree26bf478f97f97695b7400a817c59790296d4c028
parent5a0078520e80579307124aca567a70e195637682
fmt: reduce the stack space required by float formatting

For the two major entry points for float formatting, we split the exact
case and the shortest cases into separate functions.  We mark the
separate functions as #[inline(never) so the exact cases won't bloat
stack space in their callers unnecessarily.  The shortest cases are
marked so for similar reasons.

Fixes #41234.
src/libcore/fmt/float.rs