Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pub use core::simd; #89167

Merged
merged 307 commits into from
Nov 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
307 commits
Select commit Hold shift + click to select a range
db7d986
Add cross-links to Zulip, etc.
workingjubilee Oct 12, 2020
285fff0
Merge pull request #37 from rust-lang/link-more
KodrAus Oct 12, 2020
3870633
Add rounding mode test
calebzulawski Oct 13, 2020
4baa8c2
Merge pull request #34 from rust-lang/feature/round
calebzulawski Oct 13, 2020
a5bdb8b
Document size/align of SIMD types
workingjubilee Oct 16, 2020
3aec4a2
Merge pull request #43 from rust-lang/docs/layout
workingjubilee Oct 18, 2020
7538ff8
Revert "Disable riscv64gc"
workingjubilee Nov 30, 2020
e9cc306
Remove round, trunc tests
workingjubilee Nov 30, 2020
3d9bbf9
Use simd_{floor,ceil} intrinsics for round.rs
workingjubilee Nov 30, 2020
a69c441
Use platform intrinsics, not LLVM, for floor & ceil
workingjubilee Dec 8, 2020
cebc2ca
Add opaque masks
calebzulawski Oct 13, 2020
5bc5d7f
Add comparison ops
calebzulawski Oct 28, 2020
78a8d61
Implement missing traits on opaque masks, fix tests
calebzulawski Nov 22, 2020
35b9ab9
Simplify some formatting
calebzulawski Nov 27, 2020
27e9442
Begin changing vectors to const generics
calebzulawski Dec 5, 2020
22576bb
Implement additional functions
calebzulawski Dec 6, 2020
25c7640
Reenable ops and fix tests
calebzulawski Dec 6, 2020
9cc3dea
Finish refactoring vector types
calebzulawski Dec 14, 2020
0ddf7ac
Reenable rounding ops
calebzulawski Dec 14, 2020
2720ccc
Fix masks
calebzulawski Dec 14, 2020
62d98e3
Remove obsolete macros
calebzulawski Dec 14, 2020
9b8cb18
Remove obsolete files
calebzulawski Dec 14, 2020
5994771
Add workaround for rust-lang/rust#80108
calebzulawski Dec 17, 2020
cd36c98
Deploy documentation to GitHub Pages
calebzulawski Dec 28, 2020
c7d031c
Merge pull request #52 from rust-lang/feature/deploy-docs
KodrAus Dec 29, 2020
d72927c
Switch docs deploy to GITHUB_TOKEN
calebzulawski Dec 29, 2020
b931c15
Merge pull request #49 from rust-lang/feature/const-generics
KodrAus Jan 19, 2021
cb036b5
min_const_generics ride the train to stable
workingjubilee Jan 27, 2021
3717408
Merge pull request #57 from rust-lang/stable-min-const
calebzulawski Jan 27, 2021
c67fc2e
Add guards/tests for div,rem overflow cases
miguelraz Jan 25, 2021
9801540
Merge pull request #55 from miguelraz/min-panics
workingjubilee Feb 3, 2021
e4cdd15
Add issue templates
workingjubilee Jan 28, 2021
9b6b5d7
Merge pull request #58 from rust-lang/issue-templates
workingjubilee Feb 3, 2021
fd6179b
Add a blank issue template
workingjubilee Feb 3, 2021
8bea634
AsRef -> as_slices()
miguelraz Feb 3, 2021
acbde03
Merge pull request #60 from miguelraz/as-slice-prettify
workingjubilee Feb 5, 2021
4ad53da
Merge pull request #59 from rust-lang/blank-ish
workingjubilee Feb 6, 2021
5424140
Add SIMD shuffles for SimdType{2,4,8,16,32,64}
workingjubilee Feb 4, 2021
55f0efc
add a link to docs to the readme
KodrAus Feb 9, 2021
38ae9bd
Merge pull request #65 from rust-lang/KodrAus-patch-1
KodrAus Feb 9, 2021
1b0c231
Merge pull request #62 from rust-lang/feature/shuffle-self
KodrAus Feb 9, 2021
92293af
Add bitmask that supports up to 64 lanes. Simplify mask op API.
calebzulawski Feb 4, 2021
9e96c8a
Add missing From implementation, add simple mask API tests
calebzulawski Feb 5, 2021
26061b4
Fix wasm tests
calebzulawski Feb 9, 2021
8aa7ba7
Merge pull request #61 from rust-lang/feature/masks
calebzulawski Feb 10, 2021
6362540
Limit all types to 64 lanes
calebzulawski Feb 10, 2021
16904eb
Add missing type bounds
calebzulawski Feb 13, 2021
faae170
Remove glob import
calebzulawski Feb 13, 2021
08ee338
Add to glossary: vectorize, scalar, vector register
workingjubilee Jan 27, 2021
cbca211
Merge pull request #67 from rust-lang/limit-lanes
workingjubilee Feb 15, 2021
d3c58da
Merge pull request #73 from rust-lang/scalar-docs
calebzulawski Feb 15, 2021
d5c2279
Add proptest float tests
calebzulawski Jan 3, 2021
0ac057a
Add integer tests
calebzulawski Jan 7, 2021
5b0818a
Remove old integer tests
calebzulawski Jan 7, 2021
223daea
Update supported lane counts
calebzulawski Feb 11, 2021
b38d342
Simplify test creation
calebzulawski Feb 13, 2021
38b1890
Remove obsolete helpers
calebzulawski Feb 13, 2021
8d5702e
Fix performance issues
calebzulawski Feb 13, 2021
976fafc
Fix wasm tests
calebzulawski Feb 13, 2021
0ec3ecf
Split ops tests
calebzulawski Feb 13, 2021
714ad63
Fix MulAssign typo in tests, move panic tests
calebzulawski Feb 13, 2021
8c378d3
Add documentation
calebzulawski Feb 13, 2021
15dd0ae
Disable CI on branches without PR
calebzulawski Feb 13, 2021
2b3f4b2
Add LanesAtMost64 bounds
calebzulawski Feb 15, 2021
f85bd24
Merge pull request #72 from rust-lang/feature/proptest
workingjubilee Feb 16, 2021
2f2a463
Remove From<Scalar> for SimdTy impl
workingjubilee Feb 16, 2021
e3b729c
Merge pull request #75 from rust-lang/no-scalar-from
calebzulawski Feb 17, 2021
1a19ad4
Reorg vectors into crate::vector::*;
workingjubilee Feb 17, 2021
27f094f
Nominate base files
workingjubilee Feb 17, 2021
ca15e4f
cat vector types by kind
workingjubilee Feb 17, 2021
39fb223
Partially carve macros.rs into other files
workingjubilee Feb 21, 2021
a2302da
Move macros.rs to first.rs
workingjubilee Feb 22, 2021
8ad4f14
Merge pull request #77 from rust-lang/reorg-vectors
workingjubilee Feb 22, 2021
8cb1fe0
Fix wasm-bindgen dependency
calebzulawski Mar 7, 2021
d95433d
Merge pull request #82 from rust-lang/bugfix/wasm-dependencies
workingjubilee Mar 22, 2021
fa77b19
Add std cargo feature
calebzulawski Mar 7, 2021
65c3ce9
Merge pull request #81 from rust-lang/feature/std-cargo-feature
workingjubilee Mar 22, 2021
4a6b4c0
Introduce saturating math
workingjubilee Mar 29, 2021
6620015
Merge pull request #86 from rust-lang/feat/saturating
workingjubilee Apr 1, 2021
dd1a5e4
Add saturating abs/neg
workingjubilee Apr 2, 2021
331230f
Explain why to use saturation
workingjubilee Apr 2, 2021
4e6d440
Merge pull request #87 from rust-lang/feat/sat-abs-neg
calebzulawski Apr 2, 2021
93ce1c1
Add floating-point classification functions
calebzulawski Feb 15, 2021
07247a0
Various bug fixes
calebzulawski Mar 6, 2021
97bbe2d
Fix normal and subnormal classification
calebzulawski Mar 6, 2021
e6a5309
Reduce maximum lanes from 64 to 32
calebzulawski Apr 3, 2021
0682c31
Merge pull request #80 from rust-lang/feature/comparisons
workingjubilee Apr 9, 2021
b0a005d
Add floating-point classification functions
calebzulawski Feb 15, 2021
d7649f4
Various bug fixes
calebzulawski Mar 6, 2021
926cf3a
Add intrinsics
calebzulawski Mar 8, 2021
875b31c
Implement reductions
calebzulawski Mar 8, 2021
a7b82ad
Add tests
calebzulawski Mar 8, 2021
193cd14
Enable special handling of zero
calebzulawski Mar 11, 2021
02608d4
Fix mask ops
calebzulawski Mar 11, 2021
64f5648
Update documentation and fix i586 inaccuracy
calebzulawski Mar 11, 2021
4b8cbd5
Fix i586 detection
calebzulawski Mar 11, 2021
b51febb
Revert i586 fix, fix test instead
calebzulawski Mar 12, 2021
3fae09b
Revert "Revert i586 fix, fix test instead"
calebzulawski Mar 13, 2021
3cf970f
Fix test sum/product implementation
calebzulawski Mar 13, 2021
e2fa502
Enable i586 workaround for both f32 and f64
calebzulawski Mar 13, 2021
e127586
Improve function names and docs
calebzulawski Apr 11, 2021
e3f0124
Silence warnings
workingjubilee Apr 15, 2021
894062f
Burn Chrome again
workingjubilee Apr 16, 2021
81c9633
Drop wasm SIMD tests
workingjubilee Apr 16, 2021
87b7207
Use neg intrinsics
workingjubilee Apr 8, 2021
1c3d957
Merge pull request #96 from rust-lang/burning-chrome
workingjubilee Apr 16, 2021
01d78aa
Update docs
calebzulawski Apr 17, 2021
e73985f
Merge pull request #89 from rust-lang/intrinsic-neg
calebzulawski Apr 17, 2021
977f26f
Add some common shuffles
calebzulawski Apr 17, 2021
1999c54
Clarify concatenation order
calebzulawski Apr 17, 2021
9acc112
Use fabs intrinsic
workingjubilee Apr 14, 2021
b2e25bc
Merge pull request #95 from rust-lang/intrinsic-fabs
calebzulawski Apr 19, 2021
828b274
Rename sum, product to horizontal_{sum,product}
calebzulawski Apr 19, 2021
7028a58
Attempt to clarify interleave/deinterleave
calebzulawski Apr 20, 2021
2fa62b9
Merge pull request #98 from rust-lang/feature/common-shuffles
workingjubilee Apr 21, 2021
04ee107
Remove wrapping from sum/product fns
calebzulawski Apr 22, 2021
24ebae8
Merge pull request #83 from rust-lang/feature/reductions
workingjubilee Apr 22, 2021
1f4e902
Fix saturating math docs
calebzulawski Apr 11, 2021
e8b6bca
Finish fixing up abs docs
workingjubilee Apr 14, 2021
91134e6
Branchless abs
workingjubilee Apr 14, 2021
f06427f
Move lanes_at_most_64 to _32
workingjubilee Apr 25, 2021
92d643b
Remove Simd{U,I}128
workingjubilee Apr 25, 2021
b4fda6e
Give rounding intrinsics their own modules
workingjubilee Apr 25, 2021
6ea08d8
Add SIMD round, trunc, fract
workingjubilee Apr 25, 2021
a9a1c9d
Merge pull request #100 from rust-lang/fix-sat-math
workingjubilee Apr 26, 2021
5751179
Merge pull request #107 from rust-lang/feat/simd-round
workingjubilee Apr 26, 2021
da42aa5
Begin reducing mask API
calebzulawski Apr 18, 2021
eec4280
Update bitmask API
calebzulawski Apr 19, 2021
98dad13
Make implementation more scalable by using a helper trait to determin…
calebzulawski Apr 29, 2021
589fce0
Attempt to workaround MIPS bug
calebzulawski Apr 29, 2021
9a063bc
Merge pull request #99 from rust-lang/feature/simplify-masks
workingjubilee May 1, 2021
563d2a2
Add select function
calebzulawski Apr 22, 2021
dfebaf9
Merge pull request #103 from rust-lang/feature/select
workingjubilee May 4, 2021
0bf5eb5
Add select for masks
calebzulawski May 8, 2021
e8cae87
Fix rustfmt
calebzulawski May 8, 2021
45d7e80
Clarify documentation
calebzulawski May 8, 2021
ce92300
Merge pull request #117 from rust-lang/feature/mask-select
workingjubilee May 10, 2021
d679581
add simd_fsqrt intrinsic
miguelraz May 18, 2021
1c18f8f
Add byte conversions
calebzulawski May 24, 2021
20c3b8e
Merge pull request #120 from miguelraz/simd_fsqrt
calebzulawski May 24, 2021
e52d51c
nbody example
miguelraz May 26, 2021
2591c59
fix imports
miguelraz May 26, 2021
ab6af37
Simdf64 from attempt
miguelraz May 26, 2021
8bea362
replace sum() with horizontal_sum()
miguelraz May 26, 2021
9926218
Remove extended_key_value_attributes feature
calebzulawski May 26, 2021
93ee641
Merge pull request #125 from rust-lang/remove-stable-feature
workingjubilee May 29, 2021
3c05cee
Update crates/core_simd/examples/nbody.rs
miguelraz May 31, 2021
83dc5b7
don't need clippy
miguelraz Jun 1, 2021
5605056
don't use turbofish on run
miguelraz Jun 1, 2021
f24110a
collapse run_k into run
miguelraz Jun 1, 2021
5557907
rewrite unaligned slice, fix output const array
miguelraz Jun 1, 2021
4e86aeb
finish nbody
miguelraz Jun 2, 2021
70305c5
add main to avoid CI crash
miguelraz Jun 2, 2021
c042f33
clean up code, fudge approx true
miguelraz Jun 2, 2021
435d1cf
Update crates/core_simd/examples/nbody.rs
miguelraz Jun 4, 2021
be121c9
clean code vis. Jubilee's comments
miguelraz Jun 4, 2021
4311c06
Merge pull request #122 from miguelraz/nbodyexample
workingjubilee Jun 4, 2021
3032a62
add helloworld to README (#134)
miguelraz Jun 7, 2021
68393aa
Add mask width conversion (#127)
calebzulawski Jun 11, 2021
57e67c9
add doctests for shuffle (#130)
miguelraz Jun 11, 2021
bdcccba
Implement Sum/Product traits
calebzulawski Jun 13, 2021
96f0f5d
Implement Sum/Product over references
calebzulawski Jun 13, 2021
b936f34
Add various special functions (recip, signum, copysign)
calebzulawski Jun 13, 2021
74e6262
Add min/max/clamp
calebzulawski Jun 13, 2021
f102de7
Add mul_add
calebzulawski Jun 13, 2021
7b66032
Fix test typo
calebzulawski Jun 13, 2021
15b4e28
Add from_bitmask (#136)
calebzulawski Jun 21, 2021
708ae61
Remove scalar Sum/Product over questionable order of operations
calebzulawski Jun 21, 2021
b0a9fe5
Extract constant from scalar to_radians as well
calebzulawski Jun 21, 2021
16765a1
Introduce SimdArray trait
workingjubilee Jun 15, 2021
2f99cc8
Add pointer vectors: SimdConstPtr, SimdMutPtr
workingjubilee Jun 15, 2021
128b6f5
Add SimdArray::gather_{or,or_default,select}
workingjubilee Jun 15, 2021
81ceda8
Add SimdArray::scatter{,_select}
workingjubilee Jun 22, 2021
f38659a
Add assoc const SimdArray::LANES
workingjubilee Jun 22, 2021
1529ed4
Document and test doubled writes in scatter
workingjubilee Jun 23, 2021
3872723
Merge pull request #138 from rust-lang/feature/various-fns
workingjubilee Jun 23, 2021
b5ba195
Merge pull request #139 from rust-lang/feat/gather
workingjubilee Jun 24, 2021
715f9ac
Fix typo. Closes #140
calebzulawski Jun 26, 2021
871d588
Add 32-bit SIMD types i/u16x2 and i/u8x4. (#145)
adamgreig Jul 19, 2021
ac749a1
add matrix_inversion example (#131)
miguelraz Jul 19, 2021
3954b27
Add conversions between vendor intrinsics (#144)
calebzulawski Jul 19, 2021
be96995
Add portable_simd unstable feature gate (#141)
calebzulawski Jul 19, 2021
732b7ed
Add fmt and clippy to CI (#147)
calebzulawski Jul 24, 2021
c077bf3
Rename SimdArray to Vector, remove its generic parameter, and remove …
calebzulawski Jun 25, 2021
f178dda
Add as_slice/as_mut_slice to Vector
calebzulawski Jun 27, 2021
fdd7d6e
Change as_slice to as_array
calebzulawski Jun 28, 2021
529ffe0
Use new module naming
calebzulawski Jun 29, 2021
f93bef3
Move vector implementation
calebzulawski Jun 29, 2021
97c25dd
Add lane count marker type
calebzulawski Jul 24, 2021
82e3405
Merge pull request #142 from rust-lang/feature/traits
workingjubilee Jul 24, 2021
34384b7
Add const_evaluatable_checked feature, change to_bitmask to use it, a…
calebzulawski Jul 28, 2021
1f69bc4
Add CI for testing cargo features
calebzulawski Jul 28, 2021
9ab0507
Fix feature flag in CI
calebzulawski Jul 28, 2021
cca9102
Change bitmasks to use less opaque type
calebzulawski Jul 29, 2021
c36d17d
Merge pull request #152 from rust-lang/feature/const_eval_checked
workingjubilee Aug 2, 2021
2acf204
Rename to portable-simd and remove other names
workingjubilee Jul 28, 2021
50eb35e
Merge pull request #153 from rust-lang/death-of-the-author
calebzulawski Aug 6, 2021
054f25f
Convert all vectors to a single type
calebzulawski Aug 6, 2021
dc4dc99
Change to various generic impls
calebzulawski Aug 6, 2021
8cc38ae
Remove Vector trait
calebzulawski Aug 7, 2021
ddc67e3
Remove Mask trait
calebzulawski Aug 7, 2021
de13b20
Convert all masks to a single type
calebzulawski Aug 7, 2021
ea02805
Implement select generically
calebzulawski Aug 7, 2021
e6d95e4
Implement comparisons generically
calebzulawski Aug 7, 2021
e11286a
Remove unused transmute file
calebzulawski Aug 7, 2021
5ed57b4
Remove most usage of type aliases
calebzulawski Aug 7, 2021
88f79d4
Remove aliases from op trait impls
calebzulawski Aug 7, 2021
f7f2968
Remove aliases from most tests
calebzulawski Aug 7, 2021
275889f
Remove remaining usage of aliases
calebzulawski Aug 7, 2021
40142ac
Remove aliases
calebzulawski Aug 7, 2021
00165ed
Remove mask aliases
calebzulawski Aug 7, 2021
cf653c7
Update crates/core_simd/src/vector.rs
calebzulawski Aug 14, 2021
4aafd8e
Rename element type variable
calebzulawski Aug 16, 2021
d428753
Merge pull request #154 from rust-lang/feature/generic-element-type
workingjubilee Aug 17, 2021
8cf7a62
Fix cargo features for nightly (#155)
calebzulawski Sep 9, 2021
b25ed7f
Restructure crate as core module
workingjubilee Sep 19, 2021
8342fe7
Cleanup more for std::simd also
workingjubilee Sep 21, 2021
6d3d07a
Feature-flag doc tests so they run for core
workingjubilee Sep 22, 2021
c2f5948
Feature-flag fused mul-add to block libcalls
workingjubilee Sep 22, 2021
afd7c5a
Make sure MaskElement is in bitmasks.rs
workingjubilee Sep 27, 2021
4fbccaf
Add lanes()
mulimoen Sep 29, 2021
ec05dfb
Add associated LANES const
mulimoen Sep 29, 2021
b506e3e
Renovate for Edition 2021
workingjubilee Sep 29, 2021
436ca7f
Add lanes() and associated LANES const
workingjubilee Sep 29, 2021
6d23662
Add {gather,scatter}_select_unchecked
workingjubilee Sep 24, 2021
01e9816
docs: fix typo gather -> scatter
workingjubilee Sep 28, 2021
9be2665
Rewrite gather/scatter docs
workingjubilee Sep 29, 2021
a16b481
Simplify language for scatter/gather
workingjubilee Oct 2, 2021
10168fb
Add new swizzle API
calebzulawski Sep 15, 2021
98e4fca
Fix macro in core
calebzulawski Sep 22, 2021
37797d9
simd_shuffle -> simd_swizzle
calebzulawski Sep 23, 2021
cd7ecba
Remove adt_const_params feature
calebzulawski Oct 1, 2021
765bee6
Update crates/core_simd/src/swizzle.rs
calebzulawski Oct 2, 2021
5b4282e
Improve docs
calebzulawski Oct 7, 2021
ab8eec7
Fixup import pathing for core
workingjubilee Oct 22, 2021
7c2d295
Hide mask impl details in sealed trait.
calebzulawski Sep 22, 2021
772bf20
Hide select impl in sealed trait
calebzulawski Oct 21, 2021
4e00aa6
rotate_{left,right} -> rotate_lanes_{left,right}
calebzulawski Nov 6, 2021
d2e8728
add `Simd::from_slice` (#177)
pro465 Nov 9, 2021
0ecf987
Merge pull request #181 from rust-lang/rotate_lanes
calebzulawski Nov 9, 2021
349a611
Delete travis config, move tests to github actions.
calebzulawski Oct 18, 2021
081240a
Merge pull request #175 from rust-lang/feature/more-actions
workingjubilee Nov 10, 2021
c52083e
Use the right name for AVX512F
workingjubilee Nov 10, 2021
949f71c
Deny warnings in CI and fix
workingjubilee Nov 10, 2021
7d91357
Dynamically detect AVX512 in CI
workingjubilee Nov 10, 2021
6ddf7ad
Restrict Arm types to Arm v7+
workingjubilee Nov 11, 2021
1ce1c64
Rewrite Arm transmutes, reading std::arch closer
workingjubilee Nov 13, 2021
fdee059
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11…
workingjubilee Nov 13, 2021
39cb863
Expose portable-simd as core::simd
workingjubilee Oct 22, 2021
7c3d72d
Test core::simd works
workingjubilee Oct 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions library/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,4 +386,25 @@ pub mod arch {
}
}

// Pull in the `core_simd` crate directly into libcore. The contents of
// `core_simd` are in a different repository: rust-lang/portable-simd.
//
// `core_simd` depends on libcore, but the contents of this module are
// set up in such a way that directly pulling it here works such that the
// crate uses this crate as its libcore.
#[path = "../../portable-simd/crates/core_simd/src/mod.rs"]
#[allow(missing_debug_implementations, dead_code, unsafe_op_in_unsafe_fn, unused_unsafe)]
#[allow(rustdoc::bare_urls)]
#[unstable(feature = "portable_simd", issue = "86656")]
#[cfg(not(bootstrap))]
mod core_simd;

#[doc = include_str!("../../portable-simd/crates/core_simd/src/core_simd_docs.md")]
#[unstable(feature = "portable_simd", issue = "86656")]
#[cfg(not(bootstrap))]
pub mod simd {
#[unstable(feature = "portable_simd", issue = "86656")]
pub use crate::core_simd::simd::*;
}

include!("primitive_docs.rs");
3 changes: 3 additions & 0 deletions library/core/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
#![feature(unwrap_infallible)]
#![feature(option_result_unwrap_unchecked)]
#![feature(result_into_ok_or_err)]
#![cfg_attr(not(bootstrap), feature(portable_simd))]
#![feature(ptr_metadata)]
#![feature(once_cell)]
#![feature(unsized_tuple_coercion)]
Expand Down Expand Up @@ -104,6 +105,8 @@ mod pattern;
mod pin;
mod ptr;
mod result;
#[cfg(not(bootstrap))]
mod simd;
mod slice;
mod str;
mod str_lossy;
Expand Down
13 changes: 13 additions & 0 deletions library/core/tests/simd.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use core::simd::f32x4;

#[test]
fn testing() {
let x = f32x4::from_array([1.0, 1.0, 1.0, 1.0]);
let y = -x;

let h = x * 0.5;

let r = y.abs();
assert_eq!(x, r);
assert_eq!(h, f32x4::splat(0.5));
}
4 changes: 4 additions & 0 deletions library/portable-simd/.github/ISSUE_TEMPLATE/blank_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
name: Blank Issue
about: Create a blank issue.
---
50 changes: 50 additions & 0 deletions library/portable-simd/.github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
name: Bug Report
about: Create a bug report for Rust.
labels: C-bug
---
<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:

```rust
<code>
```

I expected to see this happen: *explanation*

Instead, this happened: *explanation*

### Meta

`rustc --version --verbose`:
```
<version>
```


`crate version in Cargo.toml`:
```toml
[dependencies]
stdsimd =
```
<!-- If this specifies the repo at HEAD, please include the latest commit. -->


<!--
If a backtrace is available, please include a backtrace in the code block by
setting `RUST_BACKTRACE=1` in your environment. e.g.
`RUST_BACKTRACE=1 cargo build`.
-->
<details><summary>Backtrace</summary>
<p>

```
<backtrace>
```

</p>
</details>
10 changes: 10 additions & 0 deletions library/portable-simd/.github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This only controls whether a tiny, hard-to-find "open a blank issue" link appears at the end of
# the template list.
blank_issues_enabled: true
contact_links:
- name: Intrinsic Support
url: https://github.com/rust-lang/stdarch/issues
about: Please direct issues about Rust's support for vendor intrinsics to core::arch
- name: Internal Compiler Error
url: https://github.com/rust-lang/rust/issues
about: Please report ICEs to the rustc repository
14 changes: 14 additions & 0 deletions library/portable-simd/.github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Feature Request
about: Request an addition to the core::simd API
labels: C-feature-request
---
<!--
Hello!

We are very interested in any feature requests you may have.

However, please be aware that core::simd exists to address concerns with creating a portable SIMD API for Rust.
Requests for extensions to compiler features, such as `target_feature`, binary versioning for SIMD APIs, or
improving specific compilation issues in general should be discussed at https://internals.rust-lang.org/
-->
18 changes: 18 additions & 0 deletions library/portable-simd/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Hello, welcome to `std::simd`!

It seems this pull request template checklist was created while a lot of vector math ops were being implemented, and only really applies to ops. Feel free to delete everything here if it's not applicable, or ask for help if you're not sure what it means!

For a given vector math operation on TxN, please add tests for interactions with:
- [ ] `T::MAX`
- [ ] `T::MIN`
- [ ] -1
- [ ] 1
- [ ] 0


For a given vector math operation on TxN where T is a float, please add tests for test interactions with:
- [ ] a really large number, larger than the mantissa
- [ ] a really small "subnormal" number
- [ ] NaN
- [ ] Infinity
- [ ] Negative Infinity
Loading