Commit Graph

426 Commits

Author SHA1 Message Date
Caleb Zulawski
0ddf7acc89 Reenable rounding ops 2020-12-14 00:07:36 -05:00
Caleb Zulawski
9cc3deaa92 Finish refactoring vector types 2020-12-14 00:00:02 -05:00
Caleb Zulawski
25c7640fb3 Reenable ops and fix tests 2020-12-14 00:00:02 -05:00
Caleb Zulawski
22576bb6e0 Implement additional functions 2020-12-14 00:00:02 -05:00
Caleb Zulawski
27e944231c Begin changing vectors to const generics 2020-12-14 00:00:02 -05:00
Caleb Zulawski
35b9ab9f5c Simplify some formatting 2020-12-14 00:00:02 -05:00
Caleb Zulawski
78a8d615b5 Implement missing traits on opaque masks, fix tests 2020-12-14 00:00:02 -05:00
Caleb Zulawski
5bc5d7f0d1 Add comparison ops 2020-12-14 00:00:02 -05:00
Caleb Zulawski
cebc2ca707 Add opaque masks 2020-12-13 23:59:07 -05:00
Jubilee
a69c4414bc
Use platform intrinsics, not LLVM, for floor & ceil
This PR removes the direct linkage to LLVM for trunc and round intrinsics, while replacing that link with rustc's platform intrinsics for floor and ceil functions, namely simd_floor and simd_ceil. Tests that are no longer testable are removed. In doing so it resolves the riscv64gc compilation problems.
2020-12-08 15:42:48 -08:00
Jubilee Young
3d9bbf9b86 Use simd_{floor,ceil} intrinsics for round.rs 2020-11-30 19:31:08 -08:00
Jubilee Young
e9cc3066a8 Remove round, trunc tests
There are no platform intrinsics in the rustc for these functions yet,
so this removes them as a distinct commit for later reversion.
2020-11-30 19:26:53 -08:00
Jubilee Young
7538ff810a Revert "Disable riscv64gc"
This reverts commit 3ad356d902.
2020-11-30 19:26:53 -08:00
Jubilee
3aec4a2d00
Merge pull request #43 from rust-lang/docs/layout
Document size/align of SIMD types
2020-10-17 23:57:47 -07:00
Jubilee Young
a5bdb8b1ff Document size/align of SIMD types 2020-10-16 17:11:52 -07:00
Caleb Zulawski
4baa8c27a7
Merge pull request #34 from rust-lang/feature/round
Feature/round
2020-10-12 23:34:56 -04:00
Caleb Zulawski
3870633828 Add rounding mode test 2020-10-12 20:48:05 -04:00
Ashley Mannix
285fff01f1
Merge pull request #37 from rust-lang/link-more
Add cross-links to Zulip, etc.
2020-10-13 08:55:23 +10:00
Jubilee
db7d98675b
Add cross-links to Zulip, etc. 2020-10-12 14:31:55 -07:00
Caleb Zulawski
3ad356d902 Disable riscv64gc 2020-10-12 15:36:14 -04:00
Caleb Zulawski
dc85c13ff3 Account for sign bit 2020-10-11 21:41:26 -04:00
Caleb Zulawski
c27c76182b Fix UB in test (really this time) 2020-10-11 21:28:50 -04:00
Caleb Zulawski
6e07982c4c Fix UB in test 2020-10-11 19:08:25 -04:00
Caleb Zulawski
5805c7a051 Fix comment 2020-10-11 14:34:57 -04:00
Caleb Zulawski
3d8721b053 Fix casts, add tests 2020-10-11 14:32:46 -04:00
Caleb Zulawski
75fdacde1c Add rounding to integers 2020-10-11 13:22:26 -04:00
Jubilee
e4332915a7
Draft a CONTRIBUTING.md (#33) 2020-10-09 23:49:43 -07:00
Caleb Zulawski
ffedbe5b15 Add rounding functions 2020-10-10 00:22:36 -04:00
Lokathor
48729010ec
Merge pull request #30 from thomcc/wfci
Completely overhaul CI
2020-10-07 22:15:50 -06:00
Lokathor
0a46ca43e2
Merge pull request #31 from thomcc/negxor
Use xor to implement Neg::neg for floats
2020-10-07 22:15:30 -06:00
Thom Chiovoloni
ffd562f218 Add comment about fneg to the bitxor in float neg 2020-10-07 13:24:21 -07:00
Thom Chiovoloni
873639d6fd Use bitxor to implement Neg for floats 2020-10-07 11:51:54 -07:00
Thom Chiovoloni
e8a7f474bb Rewrite (and improve) CI. 2020-10-07 09:02:34 -07:00
Lokathor
a1c327a034
Merge pull request #27 from thomcc/abs_from_to_bits
Implement abs, to_bits, and from_bits for float vectors
2020-10-06 18:57:24 -06:00
Thom Chiovoloni
8d3d616b13 Apply review feedback 2020-10-06 13:40:39 -07:00
Thom Chiovoloni
541369c38e use NEG_INFINITY and NAN constants instead computing them 2020-10-06 12:30:19 -07:00
Thom Chiovoloni
866971adf5 Implement abs, to_bits, and from_bits for float vectors 2020-10-06 11:33:29 -07:00
Ashley Mannix
0b39351ba5
Merge pull request #21 from rust-lang/chore/build-badge
Add build badge
2020-10-03 17:46:19 +10:00
Ashley Mannix
5aa7cffde1
add build badge 2020-10-03 16:40:18 +10:00
Ashley Mannix
0fbf64bae8
Add CI for wasm targets using wasm-bindgen (#20) 2020-10-03 16:36:51 +10:00
Ashley Mannix
19c85295fe
Merge pull request #19 from rust-lang/license
Add licenses and update Cargo.toml
2020-10-02 19:24:21 +10:00
Caleb Zulawski
e7f133ead0 Add licenses and update Cargo.toml 2020-10-01 23:42:10 -04:00
Jubilee Young
9028cdde14 Offer a checklist for math PRs 2020-10-01 19:50:49 -07:00
Caleb Zulawski
43dabd1aea
Implement core::ops (#10)
* Add vector-vector arithmetic ops
* Add operators and integer conversions for masks
* Add unary traits
* Implement Index and IndexMut
* Implement by-ref ops for masks
* Document intrinsics
* Implement format traits for masks
* Add floating point ops tests
* Add integer tests
* Add mask tests
2020-10-01 19:50:15 -07:00
Ashley Mannix
fa6bb81e44
Merge pull request #3 from rust-lang/ci
Initial CI using travis
2020-09-29 10:08:56 +10:00
Ashley Mannix
ea8f511f7f add i586 targets 2020-09-29 09:02:16 +10:00
Ashley Mannix
965edaecdc add initial travis CI 2020-09-28 20:22:40 +10:00
Lokathor
e1a9ffafa2
Merge pull request #8 from rust-lang/lokathor
Add a beginner's guide
2020-09-27 11:10:13 -06:00
Lokathor
fdfbf7c68b resolve https://github.com/rust-lang/stdsimd/pull/8#discussion_r495584133 2020-09-27 10:55:49 -06:00
Lokathor
656312e33c Resolve https://github.com/rust-lang/stdsimd/pull/8#discussion_r495583060 2020-09-27 10:27:24 -06:00