commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
2041578b163d83e0b4864a4c175a3eccc557d9a8 | ModProg | 2021-11-02T19:00:00 | Support for custom trait bounds | diff --git a/src/lib.rs b/src/lib.rs
index bd956db..f2e767a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -15,13 +15,49 @@ use syn::{
parse::{discouraged::Speculative, Parse, ParseStream},
punctuated::Punctuated,
spanned::Spanned,
- Data, DeriveInput, Error, Fields, FieldsNamed, FieldsUnnamed, Result, T... | 2 | 67 | 8 |
f925395513edf0727002b84415cd1061c1f6ab4b | dAxpeDDa | 2021-11-02T14:09:11 | Address warnings and improve/add documentation | diff --git a/src/lib.rs b/src/lib.rs
index fb97fb6..bd956db 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -13,18 +13,21 @@ use proc_macro2::{Ident, TokenStream};
use quote::{format_ident, quote, ToTokens};
use syn::{
parse::{discouraged::Speculative, Parse, ParseStream},
- punctuated::{Punctuated},
+ punctua... | 1 | 8 | 4 |
4d756350b375f4fdd30d24743e86d30d6fbd74a8 | ModProg | 2021-11-01T21:44:24 | Allow deriving without trait bounds | diff --git a/src/lib.rs b/src/lib.rs
index 0539de4..fb97fb6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -11,34 +11,53 @@ use core::cmp::Ordering;
use proc_macro2::{Ident, TokenStream};
use quote::{format_ident, quote, ToTokens};
-use syn::parse::{Parse, ParseStream};
-use syn::punctuated::Punctuated;
-use syn::span... | 2 | 60 | 30 |
62d18bda2b37984f4a6c9627b7977e4c9fbda94d | dAxpeDDa | 2021-11-02T16:24:39 | Support Rust 1.33.0 | diff --git a/Cargo.toml b/Cargo.toml
index 196e1fc..c3e58e1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
name = "derive-where"
version = "0.1.0"
edition = "2018"
-rust-version = "1.43.1"
+rust-version = "1.33.0"
description = "Deriving with custom trait bounds"
documentation = "https://docs.rs/derive-w... | 2 | 52 | 20 |
8016a3e5ba67ad0a45391c322240c5fe417aeab6 | dAxpeDDa | 2021-11-02T15:35:09 | Improve MSRV compatibility | diff --git a/src/lib.rs b/src/lib.rs
index 31c9aca..c6ddb81 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -193,7 +193,7 @@ impl Traits {
// Builds `match` arms backwards, using the `match` arm of the field coming afterwards.
for (field_temp, field_other) in fields_temp.iter().zip(fields_other).rev() {
... | 1 | 21 | 21 |
83bde3a0461da8dba936b45a4dd18b4c0211b2dc | daxpedda | 2021-11-01T13:48:25 | Some code shuffling | diff --git a/src/lib.rs b/src/lib.rs
index f5c9d9d..31c9aca 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -499,13 +499,12 @@ impl Traits {
/// Internal derive function for handling errors.
fn derive_where_internal(attr: TokenStream, item: TokenStream) -> Result<TokenStream> {
- // The item needs to be added, as it... | 1 | 4 | 5 |
710d03a5e8273b0e783e151146bcab02c4ff3037 | daxpedda | 2021-11-01T13:48:13 | Adress review comments | diff --git a/src/lib.rs b/src/lib.rs
index 6c5fc05..f5c9d9d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -110,8 +110,8 @@ impl Traits {
let pattern = quote! { Self };
match &data.fields {
- Fields::Named(fields) => self.build_struct(debug_name, &pattern, None, field... | 1 | 15 | 11 |
8d0590e6d48a36fb9076477b97f8762ffa28f64e | daxpedda | 2021-11-01T12:28:27 | Address review comments | diff --git a/src/lib.rs b/src/lib.rs
index 3e6006b..6c5fc05 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -15,11 +15,11 @@ use syn::{
Data, DeriveInput, Error, Fields, FieldsNamed, FieldsUnnamed, Result, Token, TraitBound, Type,
};
-/// Holds parsed [bounds](TraitBound) and [traits][Traits].
+/// Holds parsed [bo... | 1 | 5 | 3 |
74b2c5a425fd051e9da1ddbf856d6f5762e021e0 | daxpedda | 2021-10-31T16:46:54 | Internal documentation | diff --git a/Cargo.toml b/Cargo.toml
index 2952835..fe0aa63 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,7 +7,6 @@ edition = "2021"
proc-macro = true
[dependencies]
-proc-macro-error = "1"
proc-macro2 = "1"
quote = "1"
syn = "1"
diff --git a/src/lib.rs b/src/lib.rs
index 20dc1f1..3e6006b 100644
--- a/src/lib.r... | 2 | 119 | 61 |
072a8daad8b6251ad49a6f8f3f458cc5619b6009 | daxpedda | 2021-10-31T11:10:58 | Implement `Copy` and re-order alphabetically | diff --git a/src/lib.rs b/src/lib.rs
index c7369e7..20dc1f1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -32,12 +32,13 @@ impl Parse for DeriveWhere {
#[derive(Copy, Clone, Debug)]
enum Traits {
Clone,
+ Copy,
Debug,
Eq,
Hash,
+ Ord,
PartialEq,
PartialOrd,
- Ord,
}
impl Parse... | 1 | 34 | 27 |
1295d44d572bf5084fefe3a7ab8302ceba86e885 | ModProg | 2021-10-31T08:37:57 | Use name as Ident and create String as late as possible
This should improve redabilty as it happens where it is needed. | diff --git a/src/lib.rs b/src/lib.rs
index a80fa11..c7369e7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -79,7 +79,7 @@ impl Traits {
.expect("failed to pass path")
}
- fn generate_body(self, name: &str, data: &Data) -> TokenStream {
+ fn generate_body(self, name: &Ident, data: &Data) -> TokenStrea... | 1 | 15 | 9 |
9748bec376e91dafbeba20255185df772cc6f214 | ModProg | 2021-10-31T01:47:24 | Support associated types | diff --git a/src/lib.rs b/src/lib.rs
index 4c3d4f2..a80fa11 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -7,18 +7,18 @@ use syn::parse::{Parse, ParseStream};
use syn::punctuated::Punctuated;
use syn::spanned::Spanned;
use syn::{
- parse_macro_input, Data, DeriveInput, Error, Fields, FieldsNamed, FieldsUnnamed, Tok... | 2 | 26 | 5 |
a6f688c01a03e838ecfaa0fae8090f87765b3ba7 | dAxpeDDa | 2021-10-31T01:49:19 | Fix `Debug` implementation` | diff --git a/src/lib.rs b/src/lib.rs
index 05c7425..4c3d4f2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -279,9 +279,9 @@ impl Traits {
},
Debug => quote! {
#pattern { #(#fields: #fields_temp),* } => {
- let __builder = ::core::fmt::Formatter::debug_struct(__... | 1 | 6 | 6 |
02e45309b0e95b538975827053f80a1f4194d345 | dAxpeDDa | 2021-10-31T01:45:14 | Fix tuple `Debug` implementation | diff --git a/src/lib.rs b/src/lib.rs
index 356f18d..05c7425 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -349,7 +349,7 @@ impl Traits {
},
Debug => quote! {
#pattern(#(#fields_temp),*) => {
- let __builder = ::core::fmt::Formatter::tuple(__f, #name);
+ ... | 1 | 1 | 1 |
0102f4730ae43c8b441967a3ee326a117bb8d000 | dAxpeDDa | 2021-10-31T01:32:20 | Run rustfmt | diff --git a/src/lib.rs b/src/lib.rs
index e28a4a3..356f18d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -87,7 +87,7 @@ impl Traits {
match &data.fields {
Fields::Named(fields) => self.generate_struct(name, &pattern, None, fields),
Fields::Unnamed(fields) => sel... | 1 | 2 | 2 |
e89fafeff220becb19d65bf61990cab8a00962db | dAxpeDDa | 2021-10-31T01:31:49 | Implement `PartialOrd` and `Ord` | diff --git a/src/lib.rs b/src/lib.rs
index e490f02..e28a4a3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,3 +1,5 @@
+use core::cmp::Ordering;
+
use proc_macro2::{Ident, TokenStream};
use proc_macro_error::{abort_call_site, proc_macro_error};
use quote::{format_ident, quote};
@@ -80,36 +82,109 @@ impl Traits {
... | 1 | 193 | 43 |
e94ceea86d94830b7949def3ff48a30d74fe8659 | ModProg | 2021-10-31T01:11:13 | Better Error Handling | diff --git a/Cargo.toml b/Cargo.toml
index fe0aa63..2952835 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,6 +7,7 @@ edition = "2021"
proc-macro = true
[dependencies]
+proc-macro-error = "1"
proc-macro2 = "1"
quote = "1"
syn = "1"
diff --git a/src/lib.rs b/src/lib.rs
index 863c8a2..e490f02 100644
--- a/src/lib.r... | 2 | 5 | 2 |
dc079eb545666604524a0f74ee112dd8c74aae6b | ModProg | 2021-10-31T00:15:21 | Use Punctuated to parse macro input | diff --git a/src/lib.rs b/src/lib.rs
index bee6494..863c8a2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,8 +1,11 @@
-use proc_macro2::{Ident, TokenStream, TokenTree};
+use proc_macro2::{Ident, TokenStream};
use quote::{format_ident, quote};
use syn::parse::{Parse, ParseStream};
+use syn::punctuated::Punctuated;
us... | 1 | 15 | 44 |
392f3ae1216ffb733d3ceb98c7509c70ae10a9f8 | ModProg | 2021-10-30T23:14:50 | Remove unstable features | diff --git a/src/lib.rs b/src/lib.rs
index 62c478f..bee6494 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,5 +1,3 @@
-#![feature(allow_internal_unstable)]
-
use proc_macro2::{Ident, TokenStream, TokenTree};
use quote::{format_ident, quote};
use syn::parse::{Parse, ParseStream};
@@ -315,7 +313,6 @@ impl Traits {
}
... | 1 | 0 | 3 |
89317d28281f637101227924eb80cceba25523a7 | dAxpeDDa | 2021-10-30T23:10:18 | Improve error message | diff --git a/src/lib.rs b/src/lib.rs
index d6a269d..62c478f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -104,7 +104,7 @@ impl Traits {
PartialOrd => "::core::cmp::PartialOrd",
Ord => "::core::cmp::Ord",
})
- .expect("couldn't pass path to trait")
+ .expect("failed to pas... | 1 | 1 | 1 |
f5f2ada1c6ae66ae6d7aa7e78b392edda57e8fef | dAxpeDDa | 2021-10-30T23:07:54 | Finish implementing all traits except `PartialOrd` and `Ord` | diff --git a/src/lib.rs b/src/lib.rs
index 9486011..d6a269d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,3 +1,5 @@
+#![feature(allow_internal_unstable)]
+
use proc_macro2::{Ident, TokenStream, TokenTree};
use quote::{format_ident, quote};
use syn::parse::{Parse, ParseStream};
@@ -113,7 +115,7 @@ impl Traits {
... | 1 | 60 | 18 |
a527b9bf5cac7d5d162b8acbf1cf8a1b44ab3b31 | dAxpeDDa | 2021-10-30T21:41:48 | Start implementing other traits | diff --git a/src/lib.rs b/src/lib.rs
index 4cf2314..9486011 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -54,15 +54,15 @@ impl Parse for DeriveWhere {
}
}
-#[derive(Debug)]
+#[derive(Copy, Clone, Debug)]
enum Traits {
Clone,
- /*Debug,
+ Debug,
Eq,
Hash,
PartialEq,
PartialOrd,
- ... | 2 | 127 | 119 |
78b8ee786ab9fcec1d0e0b7532b7772c8c1f03cd | dAxpeDDa | 2021-10-30T19:28:38 | Remove unnecessary allocations | diff --git a/src/lib.rs b/src/lib.rs
index ed50a68..4cf2314 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -2,7 +2,7 @@ use proc_macro2::{Ident, TokenStream, TokenTree};
use quote::{format_ident, quote};
use syn::parse::{Parse, ParseStream};
use syn::spanned::Spanned;
-use syn::{parse_macro_input, Data, DeriveInput, Er... | 1 | 36 | 59 |
1db89fc484a131533b9ff257025f629800acce4a | dAxpeDDa | 2021-10-30T19:04:46 | Import types | diff --git a/src/lib.rs b/src/lib.rs
index 3a0f626..ed50a68 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,20 +1,20 @@
-use proc_macro2::{TokenStream, TokenTree};
+use proc_macro2::{Ident, TokenStream, TokenTree};
use quote::{format_ident, quote};
-use syn::parse::Parse;
+use syn::parse::{Parse, ParseStream};
use syn... | 1 | 56 | 47 |
2033cf5e17ab9cc3387fa4953b2a11f9acd81797 | dAxpeDDa | 2021-10-30T19:00:32 | Update dependencies | diff --git a/Cargo.toml b/Cargo.toml
index e78e6f9..fe0aa63 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,6 +7,6 @@ edition = "2021"
proc-macro = true
[dependencies]
-proc-macro2 = "1.0.32"
-quote = "1.0.10"
-syn = { version = "1.0.81", features = ["parsing"] }
+proc-macro2 = "1"
+quote = "1"
+syn = "1" | 1 | 3 | 3 |
8948a8819b966f4ad61542c01f8b6c078d9672dd | dAxpeDDa | 2021-10-30T18:58:43 | Implement macro-hygiene and general improvements | diff --git a/Cargo.toml b/Cargo.toml
index 951bf68..e78e6f9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,7 +7,6 @@ edition = "2021"
proc-macro = true
[dependencies]
+proc-macro2 = "1.0.32"
quote = "1.0.10"
-syn = "1.0.81"
-
-
+syn = { version = "1.0.81", features = ["parsing"] }
diff --git a/src/lib.rs b/src/lib... | 3 | 277 | 104 |
e290bde76059c2ac9453ccf841d53dfe61c3603a | lokathor | 2026-04-12T19:29:31 | chore: Release wide version 1.3.0 | diff --git a/Cargo.toml b/Cargo.toml
index add1afa..0b60be7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "1.2.0"
+version = "1.3.0"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"
... | 1 | 1 | 1 |
c141af6e2280709f0462a6ec6d9199ac23e99961 | Nikolai Morin | 2026-04-12T19:19:17 | Re-export bytemuck and explain casting (#256)
Co-authored-by: Nikolai Morin <nmo@qwello.eu> | diff --git a/src/lib.rs b/src/lib.rs
index 90b5b79..11c9188 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -19,6 +19,16 @@
//! instructions to complete the task. In the worst case, the code just becomes
//! totally scalar (though the math is still correct, at least).
//!
+//! ## Casting
+//!
+//! The SIMD types impleme... | 1 | 13 | 0 |
22f1e451ee76da1f83d5d2567bef95043f0c57a8 | lokathor | 2026-03-14T19:06:25 | chore: Release wide version 1.2.0 | diff --git a/Cargo.toml b/Cargo.toml
index b0a00ff..add1afa 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "1.1.1"
+version = "1.2.0"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"
... | 1 | 1 | 1 |
ca34ed289c8dc404817feb33e9f3b21544206ff4 | Heiaha | 2026-03-14T19:04:30 | Add reduce operations and dot to i16x32. Fix test in i16x16 (#253)
* add reduce and dot to i16x32. Fix test in i16x16
* add reduce to i32x16 | diff --git a/src/i16x32_.rs b/src/i16x32_.rs
index 4043704..cc41e1d 100644
--- a/src/i16x32_.rs
+++ b/src/i16x32_.rs
@@ -306,6 +306,30 @@ impl i16x32 {
}
}
+ /// horizontal add of all the elements of the vector
+ #[inline]
+ #[must_use]
+ pub fn reduce_add(self) -> i16 {
+ let arr: [i16x16; 2] = cast(s... | 5 | 149 | 1 |
4e75cc0765c762c7601b7b059b453c92b49154d2 | zhongyi51 | 2026-02-06T20:47:02 | fix: add missing impl for vmaxq_s32 for i32x4 (#246)
Co-authored-by: zhongyi51 <zhongyi51@users.noreply.github.com> | diff --git a/src/i32x4_.rs b/src/i32x4_.rs
index 9094503..1cbdabc 100644
--- a/src/i32x4_.rs
+++ b/src/i32x4_.rs
@@ -608,6 +608,8 @@ impl i32x4 {
Self { sse: max_i32_m128i(self.sse, rhs.sse) }
} else if #[cfg(target_feature="simd128")] {
Self { simd: i32x4_max(self.simd, rhs.simd) }
+ } el... | 1 | 2 | 0 |
035ed4958813ad4782f61d5d1907bbac12184229 | Andrew Straw | 2026-01-22T02:48:11 | implement Cmp* traits for u8x16 and u8x32 (#244)
* implement Cmp* traits for u8x16 and u8x32
This partially fixes https://github.com/Lokathor/wide/issues/207.
* improve legibility of u8x16 Cmp impls
* fix u8x32 impls of Cmp on avx2 | diff --git a/src/u8x16_.rs b/src/u8x16_.rs
index 638b8ed..cef0aac 100644
--- a/src/u8x16_.rs
+++ b/src/u8x16_.rs
@@ -277,6 +277,38 @@ impl CmpEq for u8x16 {
}
}
+impl CmpLt for u8x16 {
+ type Output = Self;
+ #[inline]
+ fn simd_lt(self, rhs: Self) -> Self::Output {
+ Self::simd_lt(self, rhs)
+ }
+}
+
+imp... | 4 | 359 | 0 |
7fd57073c3b98e91f864481483aa863ec5cd9834 | Leon Wimbes | 2026-01-21T15:02:33 | chore: switch to serde_core (#248) | diff --git a/Cargo.toml b/Cargo.toml
index 3815991..b0a00ff 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -19,7 +19,7 @@ default = ["std"]
# Activate `std` within the crate. Currently this gives a much faster `sqrt`
# impl when an explicit hardware sqrt isn't available.
std = []
-serde = ["dep:serde"]
+serde = ["dep:s... | 2 | 6 | 6 |
37b7be6074e99b0a4648e330b3cb6f8773cfecae | robinhundt | 2026-01-13T17:35:00 | add doc(alias) for `to_bitmask` methods (#247)
In 1.0, the `move_mask` methods were renamed to `to_bitmask`. This
commit adds a doc alias for these methods to `move_mask` (the prior
naming in the library) and `movemask` (often used by intrinsics).
This increases the discoverability of these methods when using rustdoc... | diff --git a/src/f32x4_.rs b/src/f32x4_.rs
index 1f248c6..e34f0e8 100644
--- a/src/f32x4_.rs
+++ b/src/f32x4_.rs
@@ -1396,6 +1396,7 @@ impl f32x4 {
#[inline]
#[must_use]
+ #[doc(alias("movemask", "move_mask"))]
pub fn to_bitmask(self) -> u32 {
pick! {
if #[cfg(target_feature="sse")] {
diff --git... | 27 | 35 | 8 |
1fe2438d614202de9748555bc443b51a3a600e7b | lokathor | 2025-12-22T00:41:11 | chore: Release wide version 1.1.1 | diff --git a/Cargo.toml b/Cargo.toml
index 718b461..3815991 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "1.1.0"
+version = "1.1.1"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"
... | 1 | 1 | 1 |
fbdd1cda600dc19436c79a6a0b6ebc56aff21b16 | valadaptive | 2025-12-22T00:18:42 | Implement `Neg` using more native operations (#243) | diff --git a/src/f32x16_.rs b/src/f32x16_.rs
index 2a17341..4cfb1c5 100644
--- a/src/f32x16_.rs
+++ b/src/f32x16_.rs
@@ -81,6 +81,23 @@ impl Div for f32x16 {
}
}
+impl Neg for f32x16 {
+ type Output = Self;
+ #[inline]
+ fn neg(self) -> Self::Output {
+ pick! {
+ if #[cfg(target_feature="avx512f")] {
+... | 7 | 112 | 27 |
c1eb800d7084bee2c99986e488977c4aaf58f660 | lokathor | 2025-12-12T00:14:35 | chore: Release wide version 1.1.0 | diff --git a/Cargo.toml b/Cargo.toml
index 8f79420..718b461 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "1.0.3"
+version = "1.1.0"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"
... | 1 | 1 | 1 |
54033124304b24d4fd1e2bec5c3c6bfa72839b0f | José Luis Cruz | 2025-12-12T00:12:55 | add missing `min` & `max` methods (#240)
- add `i64x2::min`, `i64x2::max`.
- add `u64x2::min`, `u64x2::max`.
- add `u64x8::min`. | diff --git a/src/i64x2_.rs b/src/i64x2_.rs
index 40942b3..0a2dfdb 100644
--- a/src/i64x2_.rs
+++ b/src/i64x2_.rs
@@ -568,4 +568,16 @@ impl i64x2 {
pub fn as_mut_array(&mut self) -> &mut [i64; 2] {
cast_mut(self)
}
+
+ #[inline]
+ #[must_use]
+ pub fn min(self, rhs: Self) -> Self {
+ self.simd_lt(rhs).b... | 3 | 39 | 0 |
2cbfce1727fec91f792c7b94bc6ef33469583c9c | lokathor | 2025-12-12T00:09:11 | chore: Release wide version 1.0.3 | diff --git a/Cargo.toml b/Cargo.toml
index 7d7565b..8f79420 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "1.0.2"
+version = "1.0.3"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"
... | 1 | 2 | 2 |
6194823fedefb21049359f57aa90f1ac2fba3781 | Sergey "Shnatsel" Davidoff | 2025-12-11T23:55:43 | Proper float negation; fixes #241 (#242)
* Proper float negation; fixes #241
* Add tests for negation operator on floats | diff --git a/src/lib.rs b/src/lib.rs
index af1e650..e8ade3a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -369,19 +369,19 @@ bulk_impl_op_assign_for! {
(BitXorAssign<&Self>, bitxor, bitxor_assign) => [f32x16, f32x8, f32x4, f64x8, f64x4, f64x2, i8x32, i8x16, i16x8, i16x16, i16x32, u16x16, u16x32, i32x8, i32x4, i32x16, ... | 7 | 146 | 5 |
a1cfa043923a62f7e6c9b08ae43d9a11e89c452a | lokathor | 2025-12-01T01:15:38 | chore: Release wide version 1.0.2 | diff --git a/Cargo.toml b/Cargo.toml
index 150540c..763f7fb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "1.0.1"
+version = "1.0.2"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"
... | 1 | 1 | 1 |
4edea2816f83c607c1fbe8b8f5da80c7910bc48d | lokathor | 2025-12-01T01:00:39 | closes https://github.com/Lokathor/wide/issues/228 | diff --git a/src/i64x8_.rs b/src/i64x8_.rs
index 7c73856..6b413e1 100644
--- a/src/i64x8_.rs
+++ b/src/i64x8_.rs
@@ -458,7 +458,7 @@ impl i64x8 {
#[must_use]
pub fn to_bitmask(self) -> u32 {
pick! {
- if #[cfg(target_feature="avx512f")] {
+ if #[cfg(target_feature="avx512dq")] {
// use f64... | 1 | 2 | 2 |
c356e26f540f948771639e24177ec65e262dc2e3 | lokathor | 2025-12-01T00:43:18 | chore: Release wide version 1.0.1 | diff --git a/Cargo.toml b/Cargo.toml
index 3430bcc..150540c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "1.0.1-alpha.0"
+version = "1.0.1"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor... | 1 | 1 | 1 |
e998bb0e144294e0ee82bea4660fcb8bf5ee7087 | lokathor | 2025-12-01T00:41:56 | update safe_arch dep in prep for 1.0 release | diff --git a/Cargo.toml b/Cargo.toml
index 9655291..3430bcc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,13 +1,13 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.8.3"
+version = "1.0.1-alpha.0"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokath... | 1 | 3 | 3 |
32f7a3d72bcf6220c0c04a0f8e0d1b3d338bed6e | Lokathor | 2025-11-16T02:07:47 | chore: Release wide version 0.8.3 | diff --git a/Cargo.toml b/Cargo.toml
index 0264ba9..9655291 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.8.2"
+version = "0.8.3"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"
... | 1 | 1 | 1 |
9757194fec2f651812c2b447868d7b5061461e45 | tower120 | 2025-11-13T18:34:47 | to_bitmask implemented for all unsigned ints. (#229)
* to_bitmask implemented for all unsigned ints.
* fix
* tests added | diff --git a/src/i16x32_.rs b/src/i16x32_.rs
index bbecbcf..f548774 100644
--- a/src/i16x32_.rs
+++ b/src/i16x32_.rs
@@ -380,6 +380,19 @@ impl i16x32 {
}
}
}
+
+ #[inline]
+ #[must_use]
+ pub fn to_bitmask(self) -> u32 {
+ pick! {
+ if #[cfg(target_feature="avx512bw")] {
+ // use f16 ... | 13 | 131 | 0 |
bcc2e7725b6b6beea698730d84e75b8264371ea5 | Lokathor | 2025-11-08T05:25:37 | chore: Release wide version 0.8.2 | diff --git a/Cargo.toml b/Cargo.toml
index a56cab6..0264ba9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.8.1"
+version = "0.8.2"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"
... | 1 | 1 | 1 |
d48c06d0a1229e6d1fd9ca14fb958efa6ca48d92 | Lokathor | 2025-11-08T05:24:52 | add inline | diff --git a/src/lib.rs b/src/lib.rs
index 20a58ae..1ad0b39 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -938,12 +938,14 @@ where
{
type Elem;
+ #[inline]
fn simd_align_to(
slice: &[Self::Elem],
) -> (&[Self::Elem], &[Self], &[Self::Elem]) {
pod_align_to(slice)
}
+ #[inline]
fn simd_align... | 1 | 2 | 0 |
6f08c0303cb9798fc81052b476d984551b0e5cec | Trương Hoàng Long | 2025-11-08T05:11:10 | Fix compile error for wasm32 with simd128 (#232) | diff --git a/src/u16x8_.rs b/src/u16x8_.rs
index 7e56a6f..18e2116 100644
--- a/src/u16x8_.rs
+++ b/src/u16x8_.rs
@@ -411,6 +411,8 @@ impl u16x8 {
let mask = cmp_gt_mask_i16_m128i(a_biased, b_biased);
Self { sse: mask }
+ } else if #[cfg(target_feature="simd128")] {
+ Self { simd: u16x8_g... | 1 | 2 | 0 |
f1b687a0cd4cfb927ba6702b1e6465ecc69c2a07 | Kristof Roomp | 2025-10-22T13:52:16 | added simd_align_to to safely convert slices to blocks of SIMD chunks (#223)
* added simd_align_to
* reworked the way that the autogenerated tests work
* no std
* fix mask
* fix simd_eq as well just for consistency
* use macro to define what tests to run
* added more tests
* handle close floating values for lar... | diff --git a/src/f32x16_.rs b/src/f32x16_.rs
index 074d535..2a17341 100644
--- a/src/f32x16_.rs
+++ b/src/f32x16_.rs
@@ -15,6 +15,10 @@ pick! {
unsafe impl Zeroable for f32x16 {}
unsafe impl Pod for f32x16 {}
+impl AlignTo for f32x16 {
+ type Elem = f32;
+}
+
impl Add for f32x16 {
type Output = Self;
#[inli... | 58 | 783 | 144 |
0fd35ade99b58cf9ac7916055327f374688ae99b | Lokathor | 2025-10-09T01:33:36 | chore: Release wide version 0.8.1 | diff --git a/Cargo.toml b/Cargo.toml
index 3c9172f..a56cab6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.8.0"
+version = "0.8.1"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"
... | 1 | 1 | 1 |
f9e87c8b14c767e51a68a0d6bdd0812f9e04c069 | Lokathor | 2025-10-09T00:48:48 | shift type | diff --git a/src/u64x2_.rs b/src/u64x2_.rs
index c6adcc5..7a7780b 100644
--- a/src/u64x2_.rs
+++ b/src/u64x2_.rs
@@ -42,7 +42,8 @@ pick! {
#[inline]
fn eq(&self, other: &Self) -> bool {
unsafe {
- vgetq_lane_u64(self.neon,0) == vgetq_lane_u64(other.neon,0) && vgetq_lane_u64(self.neon,1) ... | 1 | 3 | 2 |
740e28411d647b944bb926ec7e3f081d8bcb2f55 | Saveliy Yusufov | 2025-10-03T19:17:05 | feat: add scalar Add/Mul/Sub for `u32x8` (#217)
* feat: add scalar Add/Mul/Sub for `u32x8`
fix: moves comparison methods into their respective trait impls
* docs: add docs for new methods and add doc tests | diff --git a/src/u32x8_.rs b/src/u32x8_.rs
index fe3e86a..fb04c58 100644
--- a/src/u32x8_.rs
+++ b/src/u32x8_.rs
@@ -51,6 +51,57 @@ impl Sub for u32x8 {
}
}
+impl Add<u32> for u32x8 {
+ type Output = Self;
+ /// Adds a scalar `u32` to each element of the vector.
+ ///
+ /// # Examples
+ /// ```
+ /// # use ... | 1 | 180 | 17 |
c5b178e319aba48708d471eab594d0f5215d8fa0 | Lokathor | 2025-09-14T20:22:35 | movemask update (#216) | diff --git a/src/f32x16_.rs b/src/f32x16_.rs
index 51c6600..c6315e9 100644
--- a/src/f32x16_.rs
+++ b/src/f32x16_.rs
@@ -432,8 +432,10 @@ impl f32x16 {
/// multiply and add operations with two roundings.
///
/// # Platform-specific behavior
- /// - On x86/x86_64 with AVX-512F+FMA: Uses 512-bit `vfmadd` (singl... | 25 | 218 | 180 |
7ff13134486d80505b6dac6447632c21d776c56d | Saveliy Yusufov | 2025-09-11T21:27:53 | perf: use a single intrinsic in `CmpLt` for `i32x8` (#215) | diff --git a/src/i32x8_.rs b/src/i32x8_.rs
index 485473d..e476a9b 100644
--- a/src/i32x8_.rs
+++ b/src/i32x8_.rs
@@ -306,7 +306,7 @@ impl CmpLt for i32x8 {
fn cmp_lt(self, rhs: Self) -> Self::Output {
pick! {
if #[cfg(target_feature="avx2")] {
- Self { avx2: !cmp_gt_mask_i32_m256i(self.avx2, rhs.a... | 1 | 1 | 1 |
5d1f7353689bd2543be1e7d03661b02561f941f2 | Igor Martayan | 2025-09-10T22:02:24 | Use wrapping shifts in fallback implementations (#189)
Sorry this took so long when it was just a weird CI fluke with the i586 stuff. Thanks though. | diff --git a/src/i16x8_.rs b/src/i16x8_.rs
index 671e13a..f5a9c22 100644
--- a/src/i16x8_.rs
+++ b/src/i16x8_.rs
@@ -286,14 +286,14 @@ macro_rules! impl_shl_t_for_i16x8 {
} else {
let u = rhs as u64;
Self { arr: [
- self.arr[0] << u,
- self.arr[1] << u,
- ... | 6 | 57 | 57 |
13e9deb32e01bf329db9eebb4d3bfff98f69e81c | Saveliy Yusufov | 2025-09-09T18:18:45 | fix: add aarch64+neon FMA instructions (#212)
* fix: add aarch64+neon FMA instructions
- This PR is a fix for issue #200.
- Add aarch64+neon specific intrinsics for:
`mul_add`, `mul_sub`, `mul_neg_add`, `mul_neg_sub`
- Added criterion benchmarks that demonstrated significantly better
throughput on a Apple M2 c... | diff --git a/Cargo.toml b/Cargo.toml
index 5728293..9e9c686 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -28,3 +28,8 @@ bytemuck = "1"
[dev-dependencies]
bincode = { version = "1.3.3" }
+criterion = { version = "0.7.0" }
+
+[[bench]]
+name = "fma_benchmarks"
+harness = false
diff --git a/benches/fma_benchmarks.rs b/... | 5 | 162 | 0 |
bfe1f93a3c5c559cc73052c3ae471aa8654119fe | Sébastien Crozet | 2025-09-07T21:39:29 | feat: implement the missing SIMD version of f32x4::transpose for neon and simd128 (#211)
* feat: implement the missing SIMD version of f32x4::transpose for neon and simd128
* fix typos | diff --git a/src/f32x4_.rs b/src/f32x4_.rs
index 0ebb452..e7695ca 100644
--- a/src/f32x4_.rs
+++ b/src/f32x4_.rs
@@ -1582,6 +1582,52 @@ impl f32x4 {
Self::pow_f32x4(self, f32x4::splat(y))
}
+ #[must_use]
+ #[inline]
+ pub fn unpack_lo(self, b: Self) -> Self {
+ pick! {
+ if #[cfg(target_feature="ss... | 1 | 58 | 0 |
135ec43b1973a0ac5ce6355e18c9adc95b500dc4 | Lokathor | 2025-08-26T22:17:11 | chore: Release wide version 1.0.0 | diff --git a/Cargo.toml b/Cargo.toml
index 5199e1d..5728293 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.7.34"
+version = "1.0.0"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"
... | 1 | 1 | 1 |
93f89db36ac30c6a24b75db0015c6a8ddc9624eb | Lokathor | 2025-08-26T22:16:27 | remove old note | diff --git a/Cargo.toml b/Cargo.toml
index d092edc..5199e1d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,7 +10,6 @@ categories = ["data-structures", "hardware-support"]
edition = "2018"
license = "Zlib OR Apache-2.0 OR MIT"
-# Aarch64 needs 1.59 while others need 1.56
# When updating, also update CI workflows a... | 1 | 0 | 1 |
9ff04e992908f51fa5f3d9c381dabf6911430c8a | lokathor | 2025-08-26T16:46:57 | chore: Release wide version 0.7.34 | diff --git a/Cargo.toml b/Cargo.toml
index 11888df..d092edc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.7.33"
+version = "0.7.34"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"... | 1 | 1 | 1 |
996c77d8532d7ec965db08f1531b5b0a79a0c62f | tower120 | 2025-08-26T16:43:23 | u8x32 not() impl (#205) | diff --git a/src/u8x32_.rs b/src/u8x32_.rs
index 1935750..8236962 100644
--- a/src/u8x32_.rs
+++ b/src/u8x32_.rs
@@ -151,6 +151,23 @@ impl CmpEq for u8x32 {
}
}
+impl Not for u8x32 {
+ type Output = Self;
+ #[inline]
+ fn not(self) -> Self {
+ pick! {
+ if #[cfg(target_feature="avx2")] {
+ Self ... | 2 | 37 | 0 |
5db579df67a43b72d51721fd63ef6331401478d7 | Leung Ming | 2025-08-11T17:22:30 | Add variable bit shift for i64x2, i64x4, u64x2, u64x4 (#202)
* Add variable bit shift for i64x2, i64x4, u64x2, u64x4
* fix
* fix
* nit
* auto vectorized
* Use self::splat
* nit
* nit | diff --git a/src/i64x2_.rs b/src/i64x2_.rs
index 925402a..6bb1478 100644
--- a/src/i64x2_.rs
+++ b/src/i64x2_.rs
@@ -233,6 +233,39 @@ impl BitXor for i64x2 {
}
}
+/// Shifts lanes by the corresponding lane.
+///
+/// Bitwise shift-left; yields `self << mask(rhs)`, where mask removes any
+/// high-order bits of `r... | 8 | 349 | 0 |
7a18c367fbfbf7980f75d89f1854818022b5d0d9 | Lokathor | 2025-06-21T04:19:27 | chore: Release wide version 0.7.33 | diff --git a/Cargo.toml b/Cargo.toml
index 6154c60..45a5306 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.7.32"
+version = "0.7.33"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"... | 1 | 1 | 1 |
6d0b4601b5af2a9a015a7b1225b325891bf9e9de | Lokathor | 2025-06-21T04:15:55 | typo in the output type | diff --git a/src/u32x4_.rs b/src/u32x4_.rs
index 9b43742..3574854 100644
--- a/src/u32x4_.rs
+++ b/src/u32x4_.rs
@@ -677,7 +677,7 @@ impl u32x4 {
[e0, e1, e2, e3]
} else {
#[inline(always)]
- fn transpose_column(data: &[u32x4; 4], index: usize) -> i32x4 {
+ fn transpose_column(dat... | 1 | 1 | 1 |
0c7e8610c7b92e81fd8e873512103dfadc8a307b | Lokathor | 2025-06-21T04:14:24 | clippy calm down | diff --git a/tests/all_tests/main.rs b/tests/all_tests/main.rs
index b275c71..442dc25 100644
--- a/tests/all_tests/main.rs
+++ b/tests/all_tests/main.rs
@@ -3,6 +3,10 @@
#![allow(clippy::assertions_on_constants)]
#![allow(clippy::needless_range_loop)]
#![allow(clippy::nonminimal_bool)]
+#![allow(unused_imports)]
+#!... | 1 | 4 | 0 |
16b26c59db9adbde9373b99645cff6e8ba145d73 | liamwhite | 2025-06-21T03:58:43 | Add transpose to i32x4, u32x4, f32x4 (#198) | diff --git a/src/f32x4_.rs b/src/f32x4_.rs
index 292399b..54689c3 100644
--- a/src/f32x4_.rs
+++ b/src/f32x4_.rs
@@ -1605,6 +1605,41 @@ impl f32x4 {
Self::pow_f32x4(self, f32x4::splat(y))
}
+ /// Transpose matrix of 4x4 `f32` matrix. Currently only accelerated on SSE.
+ #[must_use]
+ #[inline]
+ pub fn tr... | 6 | 166 | 0 |
71b5df0b2620da753836fafce5f99076181a49fe | Kristof Roomp | 2025-03-03T18:02:44 | intrinsics version of transmute is deprecated, move to core::mem version (#192)
* intrinsics version of transmute is deprecated, move to core::mem version
* remove extranious change | diff --git a/src/f32x4_.rs b/src/f32x4_.rs
index 2410e8d..292399b 100644
--- a/src/f32x4_.rs
+++ b/src/f32x4_.rs
@@ -477,7 +477,7 @@ impl f32x4 {
pub const fn new(array: [f32; 4]) -> Self {
#[allow(non_upper_case_globals)]
unsafe {
- core::intrinsics::transmute(array)
+ core::mem::transmute(array... | 20 | 25 | 25 |
e8a8315152484406edd825cfd4bc6869eeefc7a4 | Kristof Roomp | 2025-02-21T14:16:55 | add tests to ensure trait implementation is consistent across all implementations (also fixed broken Not) (#193)
* add tests to ensure trait implementation is consistent across all implemenations
* mistyped avx2 field | diff --git a/src/i16x16_.rs b/src/i16x16_.rs
index 7c819ca..ca45727 100644
--- a/src/i16x16_.rs
+++ b/src/i16x16_.rs
@@ -301,6 +301,23 @@ impl From<u8x16> for i16x16 {
}
}
+impl Not for i16x16 {
+ type Output = Self;
+ #[inline]
+ fn not(self) -> Self {
+ pick! {
+ if #[cfg(target_feature="avx2")] {
+ ... | 26 | 252 | 2 |
95b7fe2cb7f1229bb11a6c1706a7411e20266524 | Kristof Roomp | 2025-02-16T22:45:28 | add u8x32 tests + missing methods (#191)
* add u8x32 tests
* dont add jpeg test
* missing methods
* reuse i8
* minimize complexity by reusing i8 code | diff --git a/src/i8x32_.rs b/src/i8x32_.rs
index c7e708d..db00712 100644
--- a/src/i8x32_.rs
+++ b/src/i8x32_.rs
@@ -184,16 +184,7 @@ impl CmpLt for i8x32 {
#[inline]
#[must_use]
fn cmp_lt(self, rhs: Self) -> Self::Output {
- pick! {
- if #[cfg(target_feature="avx2")] {
- Self { avx : !(cmp_gt_m... | 6 | 377 | 12 |
e6ecf18c5b5bfcd34f448a644d987ad6aba1bac8 | Genna Wingert | 2025-02-15T19:02:51 | Add u8x32 (#190) | diff --git a/src/lib.rs b/src/lib.rs
index 5b84491..5795cf3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -253,6 +253,9 @@ pub use i64x4_::*;
mod u8x16_;
pub use u8x16_::*;
+mod u8x32_;
+pub use u8x32_::*;
+
mod u16x8_;
pub use u16x8_::*;
@@ -298,13 +301,13 @@ macro_rules! bulk_impl_op_ref_self_for {
}
bulk_i... | 2 | 289 | 28 |
d5ada752ca63e527022c4663337163f3579946f7 | Lokathor | 2025-01-08T01:50:23 | chore: Release wide version 0.7.32 | diff --git a/Cargo.toml b/Cargo.toml
index 1e41e46..6154c60 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.7.31"
+version = "0.7.32"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"... | 1 | 1 | 1 |
fb5523792c87ca60ee5eec012c6c1e975ff8bf68 | robinhundt | 2025-01-08T01:48:27 | fix serialize impl of SIMD types (#188)
* fix serialize impl of SIMD types
change serialization of SIMD types to use serde::Serializer::serialize_tuple
The Serialize implementation of all types used Serializer::serialize_seq
whereas the deserialize implementation delegated to that of the
corresponding [T; LEN]... | diff --git a/Cargo.toml b/Cargo.toml
index cbd6609..1e41e46 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -26,3 +26,6 @@ serde = ["dep:serde"]
safe_arch = { version = "0.7", features = ["bytemuck"] }
serde = { version = "1", default-features = false, optional = true }
bytemuck = "1"
+
+[dev-dependencies]
+bincode = { ... | 21 | 197 | 4 |
8fa775a02dfd751cb82c88fc2bf5b3f709970222 | Lokathor | 2025-01-04T14:48:39 | chore: Release wide version 0.7.31 | diff --git a/Cargo.toml b/Cargo.toml
index 022bf49..cbd6609 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.7.30"
+version = "0.7.31"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"... | 1 | 1 | 1 |
f0a8ffa1f811cdb942103bac8ef21c330fb96676 | Viorel | 2025-01-04T13:57:57 | fix build on pre-sse2 CPUs (#187)
Build fails on Pentium 3 | diff --git a/src/i32x4_.rs b/src/i32x4_.rs
index 9a798af..a932442 100644
--- a/src/i32x4_.rs
+++ b/src/i32x4_.rs
@@ -671,7 +671,7 @@ impl i32x4 {
#[must_use]
pub fn move_mask(self) -> i32 {
pick! {
- if #[cfg(target_feature="sse")] {
+ if #[cfg(target_feature="sse2")] {
// use f32 move_mas... | 1 | 3 | 3 |
adaf48b55566ef1eb0fef01420fffc9d0a60b0db | Kristof Roomp | 2024-12-03T18:07:03 | make ::new usable in a const context to avoid need of using const union hack (#181)
* make xx::new usable in a const context to avoid need of using const union hack
* use core instead of std transmute
* use core instead of std | diff --git a/src/f32x4_.rs b/src/f32x4_.rs
index 2a4c783..2410e8d 100644
--- a/src/f32x4_.rs
+++ b/src/f32x4_.rs
@@ -55,8 +55,7 @@ pick! {
macro_rules! const_f32_as_f32x4 {
($i:ident, $f:expr) => {
#[allow(non_upper_case_globals)]
- pub const $i: f32x4 =
- unsafe { ConstUnionHack128bit { f32a4: [$f; 4]... | 21 | 73 | 158 |
3752fd0215a773bd5eb12db2b97389a0508cba5e | Lokathor | 2024-11-19T18:39:29 | chore: Release wide version 0.7.30 | diff --git a/Cargo.toml b/Cargo.toml
index e1d7476..022bf49 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.7.29"
+version = "0.7.30"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"... | 1 | 1 | 1 |
a53f5e18966be1655a669244a118a4262760005d | Kristof Roomp | 2024-11-19T18:38:38 | Added widening multiply for u16x8, u32x4, u32x8, i32x4 and i32x8 (#182)
* add widening unsigned mul
* added wasm
* fix ordering of lanes in neon
* try again
* fix for avx2
* improve tests
* added plain widen_mul
* add mul_keep_high
* fix dumb stuff
* added comments
* make u32x8 version ge... | diff --git a/src/f64x2_.rs b/src/f64x2_.rs
index 429fadf..f300bb9 100644
--- a/src/f64x2_.rs
+++ b/src/f64x2_.rs
@@ -1598,7 +1598,8 @@ impl f64x2 {
cast_mut(self)
}
- /// Converts the lower two `i32` lanes to two `f64` lanes (and dropping the higher two `i32` lanes)
+ /// Converts the lower two `i32` lanes ... | 16 | 367 | 55 |
37d7dcaaef8162e830eeff53401d8b284a793208 | Lokathor | 2024-11-19T17:20:01 | chore: Release wide version 0.7.29 | diff --git a/Cargo.toml b/Cargo.toml
index fb822e6..e1d7476 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.7.28"
+version = "0.7.29"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"... | 1 | 1 | 1 |
c10ce3ae75379073bf396decb0430cd226e877cf | Kristof Roomp | 2024-08-20T21:30:51 | Remove Rand crate (#180)
* remove rand dependency
* add cargo
* improve comments
* fix warnings about non-uppercase globals
* fix nonuppercase | diff --git a/Cargo.toml b/Cargo.toml
index e4865d5..fb822e6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -26,6 +26,3 @@ serde = ["dep:serde"]
safe_arch = { version = "0.7", features = ["bytemuck"] }
serde = { version = "1", default-features = false, optional = true }
bytemuck = "1"
-
-[dev-dependencies]
-rand = "0.8"... | 5 | 24 | 47 |
7ef782a965770fe38e1803dbda8e7f707b6edcd3 | Lokathor | 2024-08-12T05:14:04 | chore: Release wide version 0.7.28 | diff --git a/Cargo.toml b/Cargo.toml
index 01e258d..e4865d5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.7.27"
+version = "0.7.28"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"... | 1 | 1 | 1 |
f218560762d2e3c20ac89d362a5f41093b3d30cd | Lokathor | 2024-08-12T00:21:39 | chore: Release wide version 0.7.27 | diff --git a/Cargo.toml b/Cargo.toml
index 7af81e0..01e258d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.7.26"
+version = "0.7.27"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"... | 1 | 1 | 1 |
b97ab440c64c7732035e4ebe4f520b3b0e6b515c | Michael Ciraci | 2024-08-12T00:08:20 | Adding optional serde feature (#173) | diff --git a/Cargo.toml b/Cargo.toml
index c3158de..7af81e0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,9 +20,11 @@ default = ["std"]
# Activate `std` within the crate. Currently this gives a much faster `sqrt`
# impl when an explicit hardware sqrt isn't available.
std = []
+serde = ["dep:serde"]
[dependencie... | 2 | 56 | 0 |
3d24ade95b17a101d0a64174b3cf20a483df8cd6 | Kristof Roomp | 2024-08-12T00:07:58 | add some missing widening operations (#166)
* add swizzle
* neon accell
* fix
* finalfix
* add conversion
* add missing unsigned ops
* fix comment
* added other missing method
* add tests
---------
Co-authored-by: Lokathor <zefria@gmail.com> | diff --git a/src/i16x16_.rs b/src/i16x16_.rs
index 68feec6..fbd0cf4 100644
--- a/src/i16x16_.rs
+++ b/src/i16x16_.rs
@@ -283,6 +283,24 @@ impl CmpLt for i16x16 {
}
}
+impl From<i8x16> for i16x16 {
+ /// widen with sign extend from i8 to i16
+ #[inline]
+ #[must_use]
+ fn from(i: i8x16) -> Self {
+ i16x16::... | 11 | 309 | 0 |
d00b0be7202a593a5eb90213992a43344bafdda5 | Andrés Felipe Quintero Moreano | 2024-08-12T00:03:11 | Adds boolean methods to u32x4 and u32x8 (#161)
* feat: Adds `all`, `any` and `none` to u32x4
* feat: Adds `all`, `any` and `none` to u32x8 | diff --git a/src/u32x4_.rs b/src/u32x4_.rs
index 7453f66..e85b0a8 100644
--- a/src/u32x4_.rs
+++ b/src/u32x4_.rs
@@ -512,6 +512,42 @@ impl u32x4 {
}
}
+ #[inline]
+ #[must_use]
+ pub fn any(self) -> bool {
+ pick! {
+ if #[cfg(target_feature="sse2")] {
+ (move_mask_i8_m128i(self.sse) & 0b100... | 4 | 120 | 0 |
91d89d15494f936396fb50d25f5658f925f5ae09 | Bruce Mitchener | 2024-08-09T03:19:29 | docs: Add missing backticks, enable `clippy::doc_markdown` (#175) | diff --git a/src/f32x4_.rs b/src/f32x4_.rs
index 34aea30..79271a2 100644
--- a/src/f32x4_.rs
+++ b/src/f32x4_.rs
@@ -1305,7 +1305,7 @@ impl f32x4 {
cast::<_, f32x4>(c)
}
- /// Calculate the exponent of a packed f32x4
+ /// Calculate the exponent of a packed `f32x4`
#[inline]
#[must_use]
#[allow(non... | 14 | 82 | 81 |
051e7da1cd223f28e84c436065e0b5ee6af7ab3e | Bruce Mitchener | 2024-07-26T15:14:39 | Fix typos (#167) | diff --git a/src/f64x2_.rs b/src/f64x2_.rs
index 704f20c..6e48fa1 100644
--- a/src/f64x2_.rs
+++ b/src/f64x2_.rs
@@ -1609,7 +1609,7 @@ impl f64x2 {
cast_mut(self)
}
- /// Converts the lower two i32 lanes to two f64 lanes (and dropping ther higher two i32 lanes)
+ /// Converts the lower two i32 lanes to two ... | 5 | 7 | 7 |
8d6df3fbe48ce732ac85f4582a9742de9c9461dc | Lokathor | 2024-07-21T16:12:22 | chore: Release wide version 0.7.26 | diff --git a/Cargo.toml b/Cargo.toml
index 2d4ef54..7fa2d60 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.7.25"
+version = "0.7.26"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"... | 1 | 1 | 1 |
7ab90ea365f336d04e1b2cfae235daf9f4f0521b | Dmitry Mottl | 2024-07-21T16:10:23 | Adds conversion functions from integers to floats (#164)
* Adds conversion functions from integers to floats
* Adds tests for f32x4::from_i32x4, f32x8::from_i32x8, f64x2::from_i32x4, f64x4::from_i32x4
* Fixes implementation for neon, moves convertion functions to From trait
* Removes lossy From impls
* Fix... | diff --git a/src/f32x4_.rs b/src/f32x4_.rs
index 8b5cd62..34aea30 100644
--- a/src/f32x4_.rs
+++ b/src/f32x4_.rs
@@ -4,13 +4,13 @@ pick! {
if #[cfg(target_feature="sse")] {
#[derive(Default, Clone, Copy, PartialEq)]
#[repr(C, align(16))]
- pub struct f32x4 { sse: m128 }
+ pub struct f32x4 { pub(crate... | 9 | 132 | 13 |
d94cbeadceacb0d9ebe5f18caedf933e0d4398ad | Lokathor | 2024-06-30T16:27:55 | chore: Release wide version 0.7.25 | diff --git a/Cargo.toml b/Cargo.toml
index 6488ca1..2d4ef54 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.7.24"
+version = "0.7.25"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"... | 1 | 1 | 1 |
aefef6f4d21bb1a37e2fab00ed10006c06d64065 | Kristof Roomp | 2024-06-30T16:11:38 | Add swizzle to i8x16 and i8x32 (#163)
* add swizzle
* neon accell
* fix
* finalfix | diff --git a/src/i8x16_.rs b/src/i8x16_.rs
index 2c435aa..9e3fbd8 100644
--- a/src/i8x16_.rs
+++ b/src/i8x16_.rs
@@ -696,6 +696,66 @@ impl i8x16 {
}
}
+ /// Returns a new vector with lanes selected from the lanes of the first input vector
+ /// a specified in the second input vector `rhs`.
+ /// The indice... | 4 | 153 | 0 |
ceb8c2c913836043a194d9ad2f5f2a4655628c17 | Lokathor | 2024-06-08T22:46:12 | chore: Release wide version 0.7.24 | diff --git a/Cargo.toml b/Cargo.toml
index 2068144..6488ca1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.7.23"
+version = "0.7.24"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"... | 1 | 1 | 1 |
6c73212e21d9c9f3a9af4a452d641360c3fbf2af | Lokathor | 2024-06-08T22:45:16 | okay clippy you were right this time. | diff --git a/src/u32x4_.rs b/src/u32x4_.rs
index db68a38..fbcaa6f 100644
--- a/src/u32x4_.rs
+++ b/src/u32x4_.rs
@@ -331,6 +331,8 @@ impl_shr_t_for_u32x4!(i8, u8, i16, u16, i32, u32, i64, u64, i128, u128);
/// the type. (same as wrapping_shr)
impl Shr<u32x4> for u32x4 {
type Output = Self;
+ #[inline]
+ #[must_u... | 1 | 4 | 0 |
bccbfe09d99485eb9bfb00bc156a0f781144b1b7 | Lokathor | 2024-06-08T22:44:55 | clippy be quiet | diff --git a/tests/all_tests/main.rs b/tests/all_tests/main.rs
index 9d45ed6..1b43659 100644
--- a/tests/all_tests/main.rs
+++ b/tests/all_tests/main.rs
@@ -1,6 +1,8 @@
#![allow(clippy::approx_constant)]
#![allow(clippy::unnecessary_cast)]
#![allow(clippy::assertions_on_constants)]
+#![allow(clippy::needless_range_l... | 1 | 2 | 0 |
c3f023ad293845accb7f88dd141624a240230ded | Kristof Roomp | 2024-06-08T22:40:58 | Improve move_mask and boolean ops for i64x2 i32x4 i16x8 i8x16 (#162)
* bug in scalar behavior of f32::fast_min/fast_max
* fixing max
* neon
* simd
* aarch
* aarch
* neon
* update wasmtime version
* fix wasm
* fix
* fix movemask
* syntax
* fixed fast_max
* revert yaml
* movemas... | diff --git a/Cargo.toml b/Cargo.toml
index a651b0a..2068144 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,3 +23,6 @@ std = []
[dependencies]
safe_arch = { version = "0.7", features = ["bytemuck"] }
bytemuck = "1"
+
+[dev-dependencies]
+rand = "0.8"
diff --git a/src/i16x8_.rs b/src/i16x8_.rs
index f8a8a76..af6f845 ... | 15 | 468 | 39 |
ab414470f90ddb08ae1207022595316cc12bf520 | Lokathor | 2024-06-05T13:53:19 | chore: Release wide version 0.7.23 | diff --git a/Cargo.toml b/Cargo.toml
index b644b2f..a651b0a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.7.22"
+version = "0.7.23"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"... | 1 | 1 | 1 |
9dc3458b2573c90b969abded6ab5d08306e08138 | Kristof Roomp | 2024-06-05T13:51:36 | Added shift-by variable amount (#159)
* add neon implementation
* fixed u32x8 min and max that were buggy on avx2
* typo
* improved tests
* made behavior for > 31 shift values consistant for all platforms.
* fix spacing
* fix neon behavior
* simplify by using Array::from_fn
* fromfn should be m... | diff --git a/src/i32x4_.rs b/src/i32x4_.rs
index a93caa5..70cba14 100644
--- a/src/i32x4_.rs
+++ b/src/i32x4_.rs
@@ -324,6 +324,73 @@ macro_rules! impl_shr_t_for_i32x4 {
}
impl_shr_t_for_i32x4!(i8, u8, i16, u16, i32, u32, i64, u64, i128, u128);
+/// Shifts lanes by the corresponding lane.
+///
+/// Bitwise shift-ri... | 10 | 465 | 1 |
e7fd53dfacecb96404d672bebc79db970ebf3a7a | Lokathor | 2024-06-03T17:16:40 | chore: Release wide version 0.7.22 | diff --git a/Cargo.toml b/Cargo.toml
index 2369408..b644b2f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.7.21"
+version = "0.7.22"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"... | 1 | 1 | 1 |
62daa870e39d751fafeb16f73446103092af0432 | Kristof Roomp | 2024-06-03T17:14:39 | fix u32 sign bugs (#158)
* fix u32 sign bugs
* fixed two more bugs
* fixed more unsigned issues and added simple pseudorandom tests to get better coverage for corner cases
* added more tests
* added pseudorandom tests to all min/max implemenations for coverage
* forgot one file
* and one other | diff --git a/src/u16x8_.rs b/src/u16x8_.rs
index bd5166b..d8d7b68 100644
--- a/src/u16x8_.rs
+++ b/src/u16x8_.rs
@@ -404,7 +404,7 @@ impl u16x8 {
pub fn max(self, rhs: Self) -> Self {
pick! {
if #[cfg(target_feature="sse4.1")] {
- Self { sse: max_u8_m128i(self.sse, rhs.sse) }
+ Self { sse: ... | 19 | 442 | 78 |
1314388568b4b0482b6350ddd2cfadd82025d204 | Lokathor | 2024-05-25T21:33:42 | chore: Release wide version 0.7.21 | diff --git a/Cargo.toml b/Cargo.toml
index bbeec07..2369408 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "wide"
description = "A crate to help you go wide."
-version = "0.7.20"
+version = "0.7.21"
authors = ["Lokathor <zefria@gmail.com>"]
repository = "https://github.com/Lokathor/wide"... | 1 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.