Commit Graph

2119 Commits

Author SHA1 Message Date
gnzlbg
a5be1028a7 Merge pull request rust-lang/libm#188 from m1el/negative-round
Fixed rounding to negative zero
2019-07-01 16:38:33 +02:00
gnzlbg
2705bb6066 Merge pull request rust-lang/libm#189 from m1el/j1f-f64-casts
Fix incorrect f32<->f64 casting in j1f/y1f
2019-07-01 16:38:09 +02:00
Igor null
b0c846bfd1 move tests to separate #[cfg(test)] mod 2019-07-01 17:23:52 +03:00
Igor null
2c05001264 separate tests into #[cfg(test)] mod 2019-07-01 17:21:43 +03:00
Igor null
217b9a34f8 fixed formatting in tests 2019-07-01 17:18:59 +03:00
Igor null
a1286b4f24 Fix incorrect f32<->f64 casting in j1f/y1f 2019-07-01 17:10:44 +03:00
Igor null
1011d29c55 Fixed rounding to negative zero 2019-07-01 17:05:46 +03:00
bjorn3
b31fdb1a70 Fix doc for floorf 2019-06-25 20:39:09 +02:00
Alex Crichton
f9b3247165 Update Rust install task 2019-06-13 09:21:50 -07:00
Diego Barrios Romero
e19b1f013d Bump version 2019-06-12 18:46:01 +02:00
Diego Barrios Romero
1319dfac2c Add changelog entry for v0.1.4 release 2019-06-12 18:45:42 +02:00
Diego Barrios Romero
9df2e2151c Add 0.1.3 changelog entry 2019-06-12 18:44:43 +02:00
Diego Barrios Romero
c955dbe5d0 Make module path compatible with Rust 1.31.0 2019-06-07 18:23:43 +02:00
varkor
319ae3ab42 Bump to 0.1.16 2019-06-06 01:09:47 +01:00
Alex Crichton
06dbf6ac2d Merge pull request #298 from varkor/update-libm
Update libm for fmin/fmax/fminf/fmaxf
2019-06-05 18:34:37 -05:00
Alex Crichton
22030968eb More fixes for CI 2019-06-05 16:19:26 -07:00
Alex Crichton
0d83008f7a Attempt to fix CI 2019-06-05 16:09:39 -07:00
varkor
3fe09ab411 Update libm for fmin/fmax/fminf/fmaxf 2019-06-05 23:41:18 +01:00
varkor
727722531e Correct libm names 2019-06-05 21:13:25 +01:00
varkor
1613fbc412 Alphabetise 2019-06-05 20:59:28 +01:00
varkor
2db94e02d8 Add max 2019-06-05 20:59:28 +01:00
varkor
a3c8111c5f Add maxf 2019-06-05 20:59:28 +01:00
varkor
193e7960f9 Add min 2019-06-05 20:59:28 +01:00
varkor
f1c957e832 Add minf 2019-06-05 20:59:28 +01:00
Alex Crichton
13a350ca5d Attempt to fix CI 2019-06-05 12:17:01 -07:00
Igor null
5c48fccd6c fixed add overflow in exp2 2019-06-03 13:16:03 +03:00
Sean Leather
3b18638b98 Fix typo: mingw_unwinding 2019-05-21 08:43:50 +02:00
Benjamin Schultzer
332d8fd21c Add docs 2019-05-16 23:06:43 -07:00
Benjamin Schultzer
c6b403f5a9 Run musl test in debug mode 2019-05-16 17:09:33 -07:00
Alex Crichton
9c469738d6 Bump to 0.1.15 2019-05-16 08:12:14 -07:00
Alex Crichton
b84b7143e8 Remove compiler-rt submodule from this repository
This commit removes the `compiler-rt` submodule from this repository.
The goal here is to align the `compiler-rt` used for compiling C
intrinsics with the upstream rust-lang/rust's usage of `llvm-project`.
Currently we have both an `llvm-project` repository as well as
`compiler-rt`, but they can naturally get out of sync and it's just one
more submodule to manage.

The thinking here is that the feature `c` for this crate, when
activated, will require the user to configure where the source code for
`compiler-rt` is present. This places the onus on the builder of
`compiler-builtins` to check-out and arrange for the appropriate
`compiler-rt` source code to be placed somewhere. For rust-lang/rust
this is already done with the `llvm-project` submodule, and we can
arrange for it to happen on this crate's CI anyway.

For users of this crate this is a bit of a bummer, but `c` is disabled
by default anyway and it seems unlikely that `c` is explicitly opted in
to all that much. (given the purpose of this crate)

This should allow us to archive the `compiler-rt` repository and simply
use `llvm-project` in the rust-lang/rust repository.
2019-05-16 07:50:20 -07:00
Alex Crichton
e6503aeea7 Bump to 0.1.14 2019-05-15 14:47:58 -07:00
Alex Crichton
f567dbb36b Remove the need for #[cfg] in #[use_c_shim_if]
This commit tweaks the implementation of the synthetic
`#[use_c_shim_if]` attribute, renaming it to
`#[maybe_use_optimized_c_shim]` in the process. This no longer requires
specifying a `#[cfg]` clause indicating when the optimized intrinsic
should be used, but rather this is inferred and printed from the build
script.

The build script will now print out appropriate `#[cfg]` directives for
rustc to indicate what intrinsics it's compiling. This should remove the
need for us to keep the build script and the source in sync, but rather
the build script can simply take care of everything.
2019-05-15 12:59:31 -07:00
Alex Crichton
02aaab7026 Bump to 0.1.13 2019-05-14 14:41:07 -07:00
Alex Crichton
b2cfc3a4f1 Run rustfmt over everything 2019-05-14 14:40:38 -07:00
Alex Crichton
55f996f77f Merge pull request #291 from alexcrichton/fix-riscv
Don't compile C code on riscv targets
2019-05-14 16:40:27 -05:00
Alex Crichton
9886a163b3 Don't compile C code on riscv targets
This fixes a longstanding bug in compiler-builtins where C code was
compiled for the riscv targets but when distributed in rust-lang/rust
all the C code was actually compiled for x86_64 since there is no
configured C compiler for riscv. This was exposed by #286 by accident
but the underlying cause was somewhat unrelated.

For now we forcibly disable C code for riscv targets, and when the C
compiler story is sorted out in rust-lang/rust and with `cc-rs` we can
reenable. For now just use all the Rust definitions.

cc rust-lang/rust#60747
2019-05-14 14:29:29 -07:00
Alex Crichton
9c0c27c87f Merge pull request #290 from alexcrichton/fix-targets
Fix __divsi3 and __udivsi3 on thumbv6m targets
2019-05-14 15:02:57 -05:00
Alex Crichton
6ddcff1475 Fix __divsi3 and __udivsi3 on thumbv6m targets
This commit fixes a bug accidentally introduced in #285 where some
lingering references remained to `#[cfg(thumbv6m)]` but this, since the
historical revert, was renamed to `#[cfg(thumb_1)]`. This caused on the
thumbv6m platform for the intrinsics to be accidentally omitted because
the build script didn't actually compile them but the Rust code thought
the C code was in use.

After correcting the `#[cfg]` statements the CI configuration for the
`thumb*` family of targets was all updated. The support for xargo
testing was removed from `run.sh` since it had long since bitrotted, and
the script was updated to simply build the intrinsics example to attempt
to link for each of these targets. This in turn exposed the bug locally
and allowed to confirm a fix once the `#[cfg]` statements were
corrected.

cc rust-lang/rust#60782
2019-05-14 12:26:09 -07:00
Alex Crichton
7448d0fac3 Bump to 0.1.3 2019-05-14 09:06:43 -07:00
Ralf Jung
546492b69a don't force-on c feature when working in rustc workspace 2019-05-14 17:57:42 +02:00
Igor null
03f6b3194e formatted rem_pio2 tests 2019-05-13 18:05:38 +03:00
Igor null
d583764530 added tests near pi for rem_pio2 2019-05-13 17:42:18 +03:00
Igor null
f8e5ff50c5 rem_pio2: actually return medium value for x ~<= 5pi/4 2019-05-13 12:14:03 +03:00
Andrey Zgarbul
0dff1621e0 fix jn, ilogb 2019-05-09 18:40:19 +03:00
Alex Crichton
8a74ccde21 Test jn and jnf 2019-05-09 07:58:57 -07:00
Alex Crichton
fba10c51e6 Generate NaN and Infinity more often
Make sure they come up in RNG generation of floats
2019-05-09 07:53:21 -07:00
Alex Crichton
f3e2ed67f9 Test sincos and sincosf 2019-05-09 07:52:52 -07:00
Alex Crichton
13981db1e1 Move non-public functions to pub(crate)
Remove exceptions from the test list after doing so
2019-05-09 07:27:10 -07:00
Andrey Zgarbul
bb88bad222 test several outputs 2019-05-09 12:10:11 +03:00