120: test edge cases r=japaric a=japaric
the test generator is not good at generating test cases that contain values like inf, zero and nan.
This commit adds test cases that contain those values.
Co-authored-by: Jorge Aparicio <jorge@japaric.io>
110: Implement tan r=japaric a=porglezomp
Also includes implementing the private `k_tan` function.
Closesrust-lang/libm#36
Co-authored-by: C Jones <code@calebjones.net>
109: Implement sinh r=japaric a=porglezomp
This also adds `expo2` for the `__expo2` function, and `combine_words` to replace
the `INSERT_WORDS` macro.
Closesrust-lang/libm#35
Co-authored-by: C Jones <code@calebjones.net>
107: add an implemetation of asin r=japaric a=japaric
Fixesrust-lang/libm#7
Additonally adds inline functions for macros dealing with low and high words of f64s to the root module.
Also, the muslc code used a hexdecimal float. This shouldn't be needed because Rust implements
floating point parsing well.
---
rebased version of rust-lang/libm#95closesrust-lang/libm#95
Thanks @vjackson725 for the original PR!
Co-authored-by: vjackson725 <vjackson725@users.noreply.github.com>
Fixesrust-lang/libm#7
Additonally adds inline functions for macros dealing with low and high words of f64s to the root module.
Also, the muslc code used a hexdecimal float. This shouldn't be needed because Rust implements
floating point parsing well.
104: add more #[inline] r=japaric a=erikdesjardins
Some of these are pretty big so they may not get inlined in practice, but we might as well make them consistent with the rest.
Co-authored-by: Erik <erikdesjardins@users.noreply.github.com>
100: Implement expm1 r=japaric a=Veykril
~~Closes 13~~, closesrust-lang/libm#18 and ~~closes 14~~.
~~I wasn't sure where to put `__expo2(x: f64) -> f64` so I left it in `src/math/cosh.rs` for now.~~ Moved the function into it's own module.
Edit: Didn't see that `exp` was already done in a pull request, I'll take it out once rust-lang/libm#90 lands then.
103: implement fma r=japaric a=erikdesjardins
closesrust-lang/libm#19
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Co-authored-by: Erik <erikdesjardins@users.noreply.github.com>