Commit Graph

2119 Commits

Author SHA1 Message Date
Andrey Zgarbul
7c1e4dbf11 fix traits 2019-05-09 07:36:52 +03:00
Andrey Zgarbul
ac371e42ef Merge branch 'm1elports' of https://github.com/burrbull/libm into m1elports 2019-05-09 07:00:32 +03:00
Andrey Zgarbul
5c5ba6fe82 rm asine, mv lgamma 2019-05-09 06:58:58 +03:00
Andrey Zgarbul
92db6e9c1b sh +x 2019-05-07 09:07:26 +03:00
Andrey Zgarbul
fcdb5a8c13 tests, fixes, format 2019-05-07 07:16:24 +03:00
Andrey Zgarbul
764f5741ee Merge branch 'lots-of-untested-ports' of https://github.com/m1el/libm 2019-05-06 09:11:10 +03:00
Alex Crichton
3a8b5e0244 Bump to 0.1.12 2019-05-02 15:18:37 -07:00
Alex Crichton
a41077e11b Merge pull request #286 from alexcrichton/fix-dupe
Fix duplicate symbol __clzsi2
2019-05-02 17:17:52 -05:00
Alex Crichton
74efb8e8e5 Merge pull request #287 from alexcrichton/reenable-mips
Enable historically segfaulting tests on MIPS
2019-05-02 16:44:40 -05:00
Alex Crichton
de566fec8c Fix duplicate floatdisf symbol on Windows MSVC 2019-05-02 14:22:19 -07:00
Alex Crichton
5aa50ead74 Merge pull request #284 from alexcrichton/ldexp
Include `ldexp*` intrinsics on the wasm target
2019-05-02 16:17:33 -05:00
Alex Crichton
21513cdcc2 Enable historically segfaulting tests on MIPS
They seem to be passing locally so let's see what CI has to say.

Closes #137
2019-05-02 13:44:20 -07:00
Alex Crichton
0899a164ed Fix duplicate symbol __clzsi2
Looks like our tests weren't quite testing compiler-builtins when it was
compiled with unmangled symbols, so update the tests to catch this and
then fix the compilation of the `__clzsi2` intrinsic to use the C
version if it's compiled.
2019-05-02 13:35:50 -07:00
Alex Crichton
98f4618c9a Revert "Use the Rust implementation of udivsi3 on ARM"
This reverts commit 681aaa914dea7cae8252c33023604ce6c91808bd.
2019-05-02 12:49:19 -07:00
Alex Crichton
1701e71ed6 Include ldexp* intrinsics on the wasm target
Looks like LLVM optimizes programs like:

    fn foo(a: u8) -> f32 {
        2.0f32.powf(a as f32)
    }

to actually invoking `ldexpf`, so let's be sure to include bindings so
there's not undefined symbols.
2019-05-02 12:40:39 -07:00
Alex Crichton
ef8a8ae9ee Merge pull request rust-lang/libm#161 from alexcrichton/ldexp
Add bindings for ldexp/ldexpf
2019-05-02 14:38:55 -05:00
Alex Crichton
a3ed9fdfcd Merge pull request rust-lang/libm#151 from 4tm4j33tk4ur/clippy
fixed some clippy warnings
2019-05-02 14:38:27 -05:00
Alex Crichton
01d0e3eed8 Run cargo fmt 2019-05-02 12:36:37 -07:00
Alex Crichton
3c2a09589a Merge pull request rust-lang/libm#153 from m1el/floorf-uint-underflow
Fixed uint overflow in floorf for negative exponents
2019-05-02 14:35:15 -05:00
Alex Crichton
dc3eebd0b7 Add a test that overflow does not happen 2019-05-02 12:34:05 -07:00
Alex Crichton
3110f741a6 Merge pull request rust-lang/libm#143 from mb64/wrapping-atan2
Fix the atan family of functions behavior with bounds checks
2019-05-02 14:32:22 -05:00
Alex Crichton
ef597e0e8f Update some URLs 2019-05-02 12:31:48 -07:00
Alex Crichton
beac41a229 Merge pull request rust-lang/libm#142 from mb64/wrapping-sqrt
Change `sqrt` to use wrapping newtypes
2019-05-02 14:30:49 -05:00
Alex Crichton
9b63889bae Merge pull request rust-lang/libm#128 from rrbutani/pow
Add some tests for pow
2019-05-02 14:23:47 -05:00
Alex Crichton
a7ca98487e Add bindings for ldexp/ldexpf
Should help in fixing wasmerio/wasmer#407
2019-05-02 12:21:55 -07:00
Anna Bogus
6ab6ca024e fixed some clippy warnings 2019-05-02 12:16:48 -07:00
Igor null
f4c572727a fixed uint underflow in floorf for negative exponents 2019-05-02 12:14:30 -07:00
Mark Barbone
c981490c75 Modify atan2 to use wrapping_ ops 2019-05-02 12:13:26 -07:00
Alex Crichton
1cbbb87c89 Update contributing docs 2019-05-02 12:12:47 -07:00
Mark Barbone
d8cc6337f6 Change sqrt to use wrapping operations 2019-05-02 12:09:22 -07:00
Rahul Butani
7f76eda7b5 Use core for constants instead of std
(thanks @vks)
2019-05-02 12:08:30 -07:00
Rahul Butani
f52b7ea8f5 rustfmt'ed 2019-05-02 12:08:30 -07:00
Rahul Butani
770e0edb70 Some additional tests 2019-05-02 12:08:30 -07:00
Rahul Butani
399b9acdd2 Cleaned up + rustfmt'ed 2019-05-02 12:08:30 -07:00
Rahul Butani
272f92def5 Add some tests for pow
These probably aren't comprehensive but they cover all the edge cases identified in the original musl source.
2019-05-02 12:08:30 -07:00
Alex Crichton
c4468281d4 More azure config fixes 2019-05-02 12:05:02 -07:00
Alex Crichton
47a543171c Run rustfmt 2019-05-02 11:44:58 -07:00
Alex Crichton
9cf8475f2f Fix azure config 2019-05-02 11:41:20 -07:00
Alex Crichton
0656dec456 Delete stray test 2019-05-02 11:38:26 -07:00
Alex Crichton
8d79795d70 Overhaul tests
* Move everything to azure pipelines
* Inline docker configuration in this repo (no `cross`)
* Delete `no-panic` example, use `#[no_panic]` instead.
2019-05-02 11:37:21 -07:00
Alex Crichton
7cb4a204a2 Rework how testing is done
Use a build script to generate musl reference outputs and then ensure
that everything gets hooked up to actually run reference tests.
2019-05-02 10:48:55 -07:00
Alex Crichton
8560077059 Remove newlib generator
It's broken and we can try to add it back later if necessary
2019-05-02 08:12:23 -07:00
Alex Crichton
ae69253dc7 Move crates to crates folder 2019-05-02 08:12:00 -07:00
Alex Crichton
fa6d92bb41 Set up CI with Azure Pipelines
[skip ci]
2019-05-02 09:15:01 -05:00
Alex Crichton
3789bb1a98 Bump to 0.1.11 2019-04-30 10:08:23 -07:00
Goirad
63c0bd2522 Added missing fdim signature 2019-04-29 14:42:14 -07:00
Alex Crichton
76184c21e0 Add instructions for publishing 2019-04-08 07:55:09 -07:00
Alex Crichton
c2e2634223 Bump to 0.1.10 2019-04-08 07:52:05 -07:00
John Kåre Alsaker
36e4db0364 Update submodule for VS 2019 support 2019-04-08 16:30:33 +02:00
Alex Crichton
78d40ed30c Update azure pipelines badge 2019-04-02 15:41:20 -05:00