Skip to content

Commit 4c67a23

Browse files
committed
Clean up the stuff about licensing
1 parent 1039dcc commit 4c67a23

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+10
-67
lines changed

fearless_simd_core/gen/src/data/x86.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ macro_rules! f {
2222

2323
pub(crate) const X86_TEMPLATE: &str = include_str!("../../templates/x86.rs");
2424

25-
// Data taken from: https://doc.rust-lang.org/reference/attributes/codegen.html#r-attributes.codegen.target_feature.x86
25+
// Data adapted from: https://doc.rust-lang.org/reference/attributes/codegen.html#r-attributes.codegen.target_feature.x86
2626
// (specifically, at https://github.com/rust-lang/reference/blob/1d930e1d5a27e114b4d22a50b0b6cd3771b92e31/src/attributes/codegen.md#x86-or-x86_64)
27-
// TODO: Do we need to add their license attribution to our license?
2827
// TODO: Check set against https://doc.rust-lang.org/stable/std/macro.is_x86_feature_detected.html
29-
// In particular, we're missing lahfsahf
28+
// In particular, we seem to be missing lahfsahf (not stable?)
3029
pub(crate) const X86_FEATURES: &[Feature] = &[
3130
f!(
3231
/// [ADX] --- Multi-Precision Add-Carry Instruction Extensions

fearless_simd_core/gen/templates/x86.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ impl FEATURE_STRUCT_NAME {
5959
// TODO: Consider a manual override feature/env var?
6060
pub fn try_new() -> Option<Self> {
6161
// Feature flag required to make docs compile.
62-
// TODO: Extract into a (private) crate::x86::is_x86_feature_detected?
6362
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
6463
if std::arch::is_x86_feature_detected!("{FEATURE_ID}") {
6564
// Safety: The required CPU feature was detected.

fearless_simd_core/gen/templates/x86_level.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ impl LEVEL_STRUCT_NAME {
8686
}
8787
}
8888
}
89-
// TODO: From impls to convert into lower x86 versions.
9089

9190
/*{FROM_IMPLS}*/
9291

fearless_simd_core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
#![cfg_attr(docsrs, feature(doc_cfg))]
6666
#![no_std]
6767

68-
// TODO: Do we want both an `x86` and `x86_64` module?
6968
#[cfg(any(target_arch = "x86", target_arch = "x86_64", doc))]
7069
pub mod x86;
7170

fearless_simd_core/src/support.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ mod tests {
236236

237237
// We succeed if the empty target feature is allowed; any case where this is relevant will always
238238
// be validated away by rustc anyway, as there is no target with the target feature `""`.
239-
// As such, there's no harm in being flexible here.
239+
// As such, there's no harm in being flexible here.git
240240
expect_success("", [&[""]]);
241241
expect_success(",,,,,,", [&[""]]);
242242
}

fearless_simd_core/src/x86/adx/adx.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ impl Adx {
6161
// TODO: Consider a manual override feature/env var?
6262
pub fn try_new() -> Option<Self> {
6363
// Feature flag required to make docs compile.
64-
// TODO: Extract into a (private) crate::x86::is_x86_feature_detected?
6564
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
6665
if std::arch::is_x86_feature_detected!("adx") {
6766
// Safety: The required CPU feature was detected.

fearless_simd_core/src/x86/avx/avx.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ impl Avx {
6161
// TODO: Consider a manual override feature/env var?
6262
pub fn try_new() -> Option<Self> {
6363
// Feature flag required to make docs compile.
64-
// TODO: Extract into a (private) crate::x86::is_x86_feature_detected?
6564
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
6665
if std::arch::is_x86_feature_detected!("avx") {
6766
// Safety: The required CPU feature was detected.

fearless_simd_core/src/x86/avx/avx2.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ impl Avx2 {
6363
// TODO: Consider a manual override feature/env var?
6464
pub fn try_new() -> Option<Self> {
6565
// Feature flag required to make docs compile.
66-
// TODO: Extract into a (private) crate::x86::is_x86_feature_detected?
6766
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
6867
if std::arch::is_x86_feature_detected!("avx2") {
6968
// Safety: The required CPU feature was detected.

fearless_simd_core/src/x86/avx/avxifma.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ impl Avxifma {
6363
// TODO: Consider a manual override feature/env var?
6464
pub fn try_new() -> Option<Self> {
6565
// Feature flag required to make docs compile.
66-
// TODO: Extract into a (private) crate::x86::is_x86_feature_detected?
6766
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
6867
if std::arch::is_x86_feature_detected!("avxifma") {
6968
// Safety: The required CPU feature was detected.

fearless_simd_core/src/x86/avx/avxneconvert.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ impl Avxneconvert {
7171
// TODO: Consider a manual override feature/env var?
7272
pub fn try_new() -> Option<Self> {
7373
// Feature flag required to make docs compile.
74-
// TODO: Extract into a (private) crate::x86::is_x86_feature_detected?
7574
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
7675
if std::arch::is_x86_feature_detected!("avxneconvert") {
7776
// Safety: The required CPU feature was detected.

0 commit comments

Comments
 (0)