47 Commits

Author SHA1 Message Date
bors[bot]
76a8bcba39 Merge rust-lang/libm#91
91: Implement exp2 and exp2f r=japaric a=porglezomp

Closes rust-lang/libm#15
Closes rust-lang/libm#16

Co-authored-by: C Jones <code@calebjones.net>
2018-07-14 19:33:54 +00:00
C Jones
62b9897c29 Implement exp2 2018-07-14 15:31:22 -04:00
C Jones
353409ada7 Add exp2f 2018-07-14 15:30:33 -04:00
Jorge Aparicio
7486cdb70e Merge branch 'master' into master 2018-07-14 14:02:33 -05:00
bors[bot]
18177f5599 Merge rust-lang/libm#84
84: Implement fmod r=japaric a=P1n3appl3

closes rust-lang/libm#21 
I replaced the `isnanf()` function from `fmodf()` with a call to the core function `is_nan()`. If there's a reason we needed to re-implement it then I can change that back.

Also I couldn't figure out what to do in `src/lib.rs`. Is the `#[cfg(todo]` that I should be removing the one for `mod_euc()`? If so why is the equivalent one for the `f64` version still there?

Co-authored-by: Joseph Ryan <josephryan3.14@gmail.com>
Co-authored-by: Jorge Aparicio <jorge@japaric.io>
2018-07-14 18:51:34 +00:00
Jorge Aparicio
b566794827 Merge branch 'master' into master 2018-07-14 13:50:57 -05:00
Jorge Aparicio
c3906586cb Merge branch 'master' into master 2018-07-14 13:48:22 -05:00
bors[bot]
380a8c0b0f Merge rust-lang/libm#101
101: implement cbrt and cbrtf r=japaric a=erikdesjardins

closes rust-lang/libm#10, closes rust-lang/libm#43

Co-authored-by: Erik <erikdesjardins@users.noreply.github.com>
2018-07-14 18:41:27 +00:00
Erik
e228036053 implement cbrt and cbrtf 2018-07-14 14:07:14 -04:00
bors[bot]
932992a697 Merge rust-lang/libm#93
93: fdimf r=japaric a=jackmott

closes rust-lang/libm#47 

Co-authored-by: Jack Mott <jack.mott@gmail.com>
2018-07-14 18:03:06 +00:00
Erik
08dabf5dca implement exp 2018-07-14 13:37:27 -04:00
Jack Mott
743f0152b7 rebase 2018-07-14 11:45:39 -05:00
Jorge Aparicio
ebb89e686d Merge branch 'master' into master 2018-07-14 11:30:47 -05:00
Jorge Aparicio
1eaffdc9a3 Merge branch 'master' into ceil 2018-07-14 11:18:56 -05:00
Lucas Marques
42e52da010 enable test generation for ceil 2018-07-14 12:17:48 -03:00
Jack Mott
643287e1f1 fdim 2018-07-14 06:20:13 -05:00
Jack Mott
480531461c fdimf 2018-07-14 05:35:07 -05:00
Zgarbul Andrey
3dfbfec6c1 Merge branch 'master' into master 2018-07-14 10:05:32 +03:00
Opal
137d99d55b Adding acos implementation 2018-07-14 19:00:47 +12:00
Zgarbul Andrey
9056c9c5e3 Merge branch 'master' into master 2018-07-14 09:38:50 +03:00
Erik
f73c61b762 implement log1p and log1pf 2018-07-14 02:13:12 -04:00
Opal
83673acaa4 Add log implementation.
Fixes rust-lang/libm#23
2018-07-14 17:25:20 +12:00
Zgarbul Andrey
60bc600cf8 Merge branch 'master' into master 2018-07-14 08:18:18 +03:00
Joseph Ryan
7eecb9a0ef Merge branch 'master' into master 2018-07-14 00:18:02 -05:00
Joseph Ryan
c6b01ad00d Merge branch 'master' into master 2018-07-13 23:31:38 -05:00
Erik
6536807106 implement log10 and log10f 2018-07-14 00:26:49 -04:00
Joseph Ryan
a749e176b1 Implement fmod and tweak fmodf 2018-07-13 23:15:36 -05:00
Erik
30c31d32d3 implement log2 and log2f 2018-07-13 23:53:58 -04:00
bors[bot]
56e1b0d52b Merge rust-lang/libm#77
77: adding ceilf and floorf  r=japaric a=jackmott

Finishes issues rust-lang/libm#56  and rust-lang/libm#54 

Co-authored-by: Jack Mott <jack.mott@gmail.com>
2018-07-14 02:35:57 +00:00
Jack Mott
6237ba2890 adding ceilf and floorf for issues rust-lang/libm#56 and rust-lang/libm#54 2018-07-13 21:32:59 -05:00
Andrey Zgarbul
f40b8096aa add cosf test 2018-07-14 05:20:09 +03:00
Joseph Ryan
6ed6ede4ab Merge remote-tracking branch 'upstream/master' 2018-07-13 20:51:17 -05:00
Joseph Ryan
bc94c70687 implement roundf 2018-07-13 20:46:09 -05:00
Erik
892cd4f5b8 implement sqrt and hypot 2018-07-13 18:36:29 -04:00
bors[bot]
6b61c50db7 Merge rust-lang/libm#69
69: implement hypotf r=japaric a=erikdesjardins

closes rust-lang/libm#48

Co-authored-by: Erik <erikdesjardins@users.noreply.github.com>
2018-07-13 21:53:23 +00:00
Erik
6dbd8b3303 implement hypotf 2018-07-13 17:44:48 -04:00
Jorge Aparicio
1ba1301250 catch panics in tests
so we can print the inputs that triggered the panic
2018-07-13 16:32:57 -05:00
Erik
8cdd267830 implement trunc and truncf 2018-07-13 16:04:30 -04:00
Jorge Aparicio
47afc3992f enable tests for floor and scalbn 2018-07-13 13:36:59 -05:00
Jorge Aparicio
b8aae8ef23 enable tests for expf and logf 2018-07-13 11:16:43 -05:00
Michael Howell
50f9ad97a5 Implement round 2018-07-13 01:34:52 +00:00
Jorge Aparicio
333d27ab6a add more commented out tests 2018-07-12 18:26:39 -05:00
Jorge Aparicio
3073bdd29a add more testing infrastructure 2018-07-12 15:30:32 -05:00
Jorge Aparicio
fdfc13afb9 add test infrastructure for f64 functions 2018-07-12 14:24:02 -05:00
Jorge Aparicio
69f61b4149 implement fmodf 2018-07-12 12:32:16 -05:00
Jorge Aparicio
5b950eaea2 use approximate equality with 1 ULP of tolerance 2018-07-12 12:20:55 -05:00
Jorge Aparicio
8e271704ef initial commit 2018-07-12 00:44:28 -05:00