num-traits/src/ops
bors[bot] 2f0cffd522
Merge #99
99: Revive Float+Real in no_std thanks to libm r=cuviper a=yoanlcq

Greetings,

This is a hopeful fix for #75.  
Basically: Add `libm` as an optional dependency, and handle three possible cases depending on which features are enabled:
- std and libm: std is used;
- std and not libm: std is used;
- libm and not std: libm and FloatCore are used.

It was briefly mentioned that `libm` wasn't ready yet, but this was months ago, and I believe it is better not to wait for too long.  
If anything, bugs in `libm` should be fixed in `libm`; `num-traits` is only delegating its implementations to it; not to mention that the more `libm` is used, the likelier issues are to be found and hopefully fixed.

Thanks in advance!

Co-authored-by: Yoan Lecoq <yoanlecoq.io@gmail.com>
Co-authored-by: Josh Stone <cuviper@gmail.com>
2019-09-30 16:39:17 +00:00
..
checked.rs Fix CheckedShl/CheckedShr documentation 2018-10-09 11:55:18 +02:00
inv.rs Run cargo fmt 2018-07-12 17:09:22 -07:00
mod.rs Run cargo fmt 2018-07-12 17:09:22 -07:00
mul_add.rs Merge #99 2019-09-30 16:39:17 +00:00
saturating.rs Automatically detect support for i128/u128 2018-05-11 15:50:48 -07:00
wrapping.rs Add wrapping shifts 2018-09-02 00:51:04 -04:00