forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize and refactor source tree (rust-lang#324)
With RFC 2325 looking close to being accepted, I took a crack at reorganizing this repository to being more amenable for inclusion in libstd/libcore. My current plan is to add stdsimd as a submodule in rust-lang/rust and then use `#[path]` to include the modules directly into libstd/libcore. Before this commit, however, the source code of coresimd/stdsimd themselves were not quite ready for this. Imports wouldn't compile for one reason or another, and the organization was also different than the RFC itself! In addition to moving a lot of files around, this commit has the following major changes: * The `cfg_feature_enabled!` macro is now renamed to `is_target_feature_detected!` * The `vendor` module is now called `arch`. * Under the `arch` module is a suite of modules like `x86`, `x86_64`, etc. One per `cfg!(target_arch)`. * The `is_target_feature_detected!` macro was removed from coresimd. Unfortunately libcore has no ability to export unstable macros, so for now all feature detection is canonicalized in stdsimd. The `coresimd` and `stdsimd` crates have been updated to the planned organization in RFC 2325 as well. The runtime bits saw the largest amount of refactoring, seeing a good deal of simplification without the core/std split.
- Loading branch information
1 parent
b01b28f
commit 80a524d
Showing
123 changed files
with
1,843 additions
and
2,042 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,8 @@ | ||
[package] | ||
name = "stdsimd" | ||
version = "0.0.3" | ||
authors = ["Andrew Gallant <[email protected]>"] | ||
description = "SIMD support in Rust's standard library." | ||
documentation = "https://docs.rs/stdsimd" | ||
homepage = "https://github.com/rust-lang-nursery/stdsimd" | ||
repository = "https://github.com/rust-lang-nursery/stdsimd" | ||
readme = "README.md" | ||
keywords = ["std", "simd", "intrinsics"] | ||
categories = ["hardware-support"] | ||
license = "MIT/Apache-2.0" | ||
|
||
[workspace] | ||
members = ["stdsimd-verify"] | ||
|
||
[badges] | ||
travis-ci = { repository = "rust-lang-nursery/stdsimd" } | ||
appveyor = { repository = "rust-lang-nursery/stdsimd" } | ||
is-it-maintained-issue-resolution = { repository = "rust-lang-nursery/stdsimd" } | ||
is-it-maintained-open-issues = { repository = "rust-lang-nursery/stdsimd" } | ||
maintenance = { status = "experimental" } | ||
|
||
[dependencies] | ||
coresimd = { version = "0.0.3", path = "coresimd/" } | ||
|
||
[dev-dependencies] | ||
auxv = "0.3.3" | ||
quickcheck = "0.6" | ||
rand = "0.4" | ||
members = [ | ||
"crates/stdsimd-verify", | ||
"crates/stdsimd", | ||
] | ||
|
||
[profile.release] | ||
debug = true | ||
|
@@ -36,10 +11,3 @@ opt-level = 3 | |
[profile.bench] | ||
debug = 1 | ||
opt-level = 3 | ||
|
||
[features] | ||
# Internal-usage only: denies all warnings. | ||
strict = [ "coresimd/strict" ] | ||
# Internal-usage only: enables only those intrinsics supported by Intel's | ||
# Software Development Environment (SDE). | ||
intel_sde = [ "coresimd/intel_sde" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ extern "C" { | |
|
||
#[cfg(test)] | ||
mod tests { | ||
use arm::v7; | ||
use coresimd::arm::v7; | ||
|
||
#[test] | ||
fn _clz_u8() { | ||
|
Oops, something went wrong.