]> git.lizzy.rs Git - rust.git/commit
Add some f32 and f64 inherent methods in libcore
authorSimon Sapin <simon.sapin@exyr.org>
Sun, 8 Apr 2018 08:09:52 +0000 (10:09 +0200)
committerSimon Sapin <simon.sapin@exyr.org>
Sat, 21 Apr 2018 07:47:37 +0000 (09:47 +0200)
commit8a374f2827a222322a631e313cd8fd8d9ba34932
treec1f1b8351580fe7a4d20dabc321f299fa01c54c1
parentf0705bf033363757a8a2901cd1a7bd76f0fea820
Add some f32 and f64 inherent methods in libcore

… previously in the unstable core::num::Float trait.

Per https://github.com/rust-lang/rust/issues/32110#issuecomment-379503183,
the `abs`, `signum`, and `powi` methods are *not* included for now
since they rely on LLVM intrinsics and we haven’t determined yet whether
those instrinsics lower to calls to libm functions on any platform.
src/liballoc/vec.rs
src/libcore/lib.rs
src/libcore/num/f32.rs
src/libcore/num/f64.rs
src/librustc/middle/lang_items.rs
src/librustc_typeck/check/method/probe.rs
src/librustc_typeck/coherence/inherent_impls.rs
src/librustdoc/clean/inline.rs
src/libstd/f32.rs
src/libstd/f64.rs