diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-10 13:25:49 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-15 23:22:06 -0700 |
| commit | ba0a984a862f4f4246a3be014b9b244525bedd20 (patch) | |
| tree | d4fe59c7f09d1063289618312e8decb8c27c04e1 /src/rustllvm/RustWrapper.cpp | |
| parent | 4994f3cd455333749b8613b8cfc002e7397bf236 (diff) | |
| download | rust-ba0a984a862f4f4246a3be014b9b244525bedd20.tar.gz rust-ba0a984a862f4f4246a3be014b9b244525bedd20.zip | |
core: Move intrinsic float functionality from std
The Float trait in libstd is quite a large trait which has dependencies on cmath (libm) and such, which libcore cannot satisfy. It also has many functions that libcore can implement, however, as LLVM has intrinsics or they're just bit twiddling. This commit moves what it can of the Float trait from the standard library into libcore to allow floats to be usable in the core library. The remaining functions are now resident in a FloatMath trait in the standard library (in the prelude now). Previous code which was generic over just the Float trait may now need to be generic over the FloatMath trait. [breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
