diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-10 14:06:25 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-15 23:22:06 -0700 |
| commit | bcab97a32eca0bec431ff3d1065f07e10c600d80 (patch) | |
| tree | 8f6a1ef09781b35a20c26197b26d81fb4c1ecf8f /src/rustllvm/RustWrapper.cpp | |
| parent | 1de4b65d2a88e88201026485f9622916c5717555 (diff) | |
| download | rust-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
