about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-10 14:06:25 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-15 23:22:06 -0700
commitbcab97a32eca0bec431ff3d1065f07e10c600d80 (patch)
tree8f6a1ef09781b35a20c26197b26d81fb4c1ecf8f /src/rustllvm/RustWrapper.cpp
parent1de4b65d2a88e88201026485f9622916c5717555 (diff)
downloadrust-bcab97a32eca0bec431ff3d1065f07e10c600d80.tar.gz
rust-bcab97a32eca0bec431ff3d1065f07e10c600d80.zip
core: Implement f32/f64 formatting
This is a migration of the std::{f32, f64}::to_str* functionality to the core
library. This removes the growable `Vec` used in favor of a large stack buffer.
The maximum base 10 exponent for f64 is 308, so a stack buffer of 512 bytes
should be sufficient to store all floats.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions