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
f13301e07adbd848f9d1542698c5ffab51ec8c60
Nugine
2024-04-21T14:29:05
fix lints
diff --git a/crates/vsimd/src/simd64.rs b/crates/vsimd/src/simd64.rs index 46a6d7e..b4ec512 100644 --- a/crates/vsimd/src/simd64.rs +++ b/crates/vsimd/src/simd64.rs @@ -1,3 +1,5 @@ +#![allow(clippy::missing_transmute_annotations)] + use crate::isa::InstructionSet; use crate::vector::V64;
1
2
0
42f4fb8bb76625e606a972158636da4d7d9c6a80
Nugine
2024-04-21T11:38:28
fix lints
diff --git a/crates/unicode-simd/src/ascii.rs b/crates/unicode-simd/src/ascii.rs index 8bcd35c..2aaa6a2 100644 --- a/crates/unicode-simd/src/ascii.rs +++ b/crates/unicode-simd/src/ascii.rs @@ -52,6 +52,8 @@ pub unsafe fn is_ascii_simd_v256<S: SIMD256>(s: S, mut src: *const u8, mut len: pub unsafe fn is_ascii_sse2(src:...
4
9
1
c227b4326a56dde0891bb78eb2ff2bca0b4dff64
Nugine
2024-02-26T15:08:29
fix unstable feature usages
diff --git a/crates/uuid-simd/src/lib.rs b/crates/uuid-simd/src/lib.rs index 63294c7..f2abf7d 100644 --- a/crates/uuid-simd/src/lib.rs +++ b/crates/uuid-simd/src/lib.rs @@ -17,7 +17,12 @@ #![doc=vsimd::shared_docs!()] // #![cfg_attr(not(any(feature = "std", test)), no_std)] -#![cfg_attr(feature = "unstable", feature...
2
12
2
387016eb4a2fd03287d0af7ae2f3b069fd2b2fd4
Tsukasa OI
2024-02-26T03:25:40
Remove redundant imports (#42) Rust 1.78 Nightly started to raise warning about duplicate imports. For instance, if `std::vec::Vec` is already imported, an attempt to import `alloc::vec::Vec` (the same type as `std::vec::Vec`) will cause a warning. This commit gates such imports behind `not(any(test, feature = "s...
diff --git a/crates/base32-simd/src/heap.rs b/crates/base32-simd/src/heap.rs index aea6351..94728a7 100644 --- a/crates/base32-simd/src/heap.rs +++ b/crates/base32-simd/src/heap.rs @@ -4,8 +4,11 @@ use crate::{AppendBase32Decode, AppendBase32Encode, Base32, Error, FromBase32Dec use vsimd::tools::{alloc_uninit_bytes,...
7
13
4
7d09f4d2745367846816e3405f229e6623ebd4a7
Tsukasa OI
2024-02-26T03:24:33
Remove usage of the `stdsimd` feature (#41) This feature is removed from the Nightly and should be removed as well from this crate.
diff --git a/crates/uuid-simd/src/lib.rs b/crates/uuid-simd/src/lib.rs index 51c0703..63294c7 100644 --- a/crates/uuid-simd/src/lib.rs +++ b/crates/uuid-simd/src/lib.rs @@ -17,7 +17,6 @@ #![doc=vsimd::shared_docs!()] // #![cfg_attr(not(any(feature = "std", test)), no_std)] -#![cfg_attr(feature = "unstable", feature(...
2
0
2
e6faabab397c21f4035c8ab9c32eef9d87ed12f7
Nugine
2024-01-10T03:20:44
fix lints
diff --git a/crates/hex-simd/tests/it.rs b/crates/hex-simd/tests/it.rs index 84995d2..8b44ce0 100644 --- a/crates/hex-simd/tests/it.rs +++ b/crates/hex-simd/tests/it.rs @@ -125,7 +125,8 @@ fn random() { }}; } - for (_, src) in ok_cases.iter().enumerate() { + for src in &ok_cases { + // for ...
3
8
3
e7ab7f7e2f283e670c4f9ec6c37e44b3c59ecf3c
Nugine
2023-08-21T09:03:38
fix lints
diff --git a/crates/base32-simd/tests/it.rs b/crates/base32-simd/tests/it.rs index 6fe315e..7411e25 100644 --- a/crates/base32-simd/tests/it.rs +++ b/crates/base32-simd/tests/it.rs @@ -80,8 +80,7 @@ fn special() { let base32 = BASE32; for &input in inputs { - let mut buf: Vec<u8> = Vec::new(); - ...
3
3
4
6c7bbe595d868d950a4d3261786863563225bd57
Nugine
2023-07-09T07:13:15
fix lints
diff --git a/crates/base32-simd/src/decode.rs b/crates/base32-simd/src/decode.rs index 682d610..be576cf 100644 --- a/crates/base32-simd/src/decode.rs +++ b/crates/base32-simd/src/decode.rs @@ -66,7 +66,7 @@ pub unsafe fn decode_bits<const N: usize>(src: *const u8, table: *const u8) -> ( #[inline(always)] unsafe fn ...
2
2
2
9baa5bf040dff84cbd20d7c8cbf113b163002d2f
Nugine
2023-06-08T17:58:23
enable alsw tests
diff --git a/crates/base32-simd/src/alsw.rs b/crates/base32-simd/src/alsw.rs index 08fa4b9..949eda2 100644 --- a/crates/base32-simd/src/alsw.rs +++ b/crates/base32-simd/src/alsw.rs @@ -74,15 +74,21 @@ pub const BASE32HEX_ALSW_DECODE_X2: AlswLut<V256> = Base32HexAlsw::decode_lut(). mod algorithm { use super::*; ...
9
103
56
92be937df7d8ad17ef4ff838e8dc56e18c9d6e10
Nugine
2023-06-08T17:58:23
fix lints
diff --git a/crates/base64-simd/tests/it.rs b/crates/base64-simd/tests/it.rs index cdd0cb5..846db8b 100644 --- a/crates/base64-simd/tests/it.rs +++ b/crates/base64-simd/tests/it.rs @@ -147,7 +147,7 @@ fn canonicity() { let base64 = STANDARD; let is_valid = base64.check(encoded.as_bytes()).is_ok(); -...
1
1
1
9a6d4e97a2e900103aa69d996d15cc04b853ff51
Nugine
2023-02-28T01:10:34
fix lints
diff --git a/crates/uuid-simd/src/lib.rs b/crates/uuid-simd/src/lib.rs index bf8078a..51c0703 100644 --- a/crates/uuid-simd/src/lib.rs +++ b/crates/uuid-simd/src/lib.rs @@ -38,7 +38,8 @@ clippy::cast_sign_loss, clippy::cast_lossless, clippy::cast_possible_truncation, - clippy::items_after_statements +...
2
4
2
07d800f598c0a5f40a02543d000778a4cd9cd214
Nugine
2023-02-28T00:58:43
deps: upgrade
diff --git a/benches/Cargo.toml b/benches/Cargo.toml index 2e07d3a..3b13309 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -45,13 +45,13 @@ parallel = ["base64-simd/parallel"] [dependencies] base16 = "0.2.1" -base16ct = "0.1.1" +base16ct = "0.2.0" base32-simd = { path = "../crates/base32-simd", defaul...
1
4
4
1651c4a364554d02db5c4686cbe934628b6df0cb
Nugine
2023-02-21T07:58:32
deps: upgrade
diff --git a/benches/Cargo.toml b/benches/Cargo.toml index 3b83a39..2e07d3a 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -51,10 +51,10 @@ base32ct = "0.1.0" base64 = "0.21.0" base64-simd = { path = "../crates/base64-simd", default-features = false, features = ["std"] } base64ct = "1.5.3" -based64 = "0...
7
10
10
5e80f66d00d93bbda30a5018bb18c47c25c6da06
Nugine
2023-02-16T10:23:23
benches: base64: add `based64`
diff --git a/benches/Cargo.toml b/benches/Cargo.toml index 355e717..3b83a39 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -39,72 +39,32 @@ harness = false [features] default = [] -detect = [ - "vsimd/detect", - "base32-simd/detect", - "base64-simd/detect", - "hex-simd/detect", - "unicod...
2
26
60
e88350878e2b853720163345d3145a4b458a44a0
Nugine
2023-01-17T16:07:25
base64-simd: estimated_decoded_length
diff --git a/crates/base64-simd/src/lib.rs b/crates/base64-simd/src/lib.rs index 9aa44a7..7c317fc 100644 --- a/crates/base64-simd/src/lib.rs +++ b/crates/base64-simd/src/lib.rs @@ -199,11 +199,7 @@ impl Base64 { #[inline] #[must_use] pub const fn estimated_decoded_length(&self, n: usize) -> usize { - ...
1
1
5
379e68cac8491f4a3a91584f3320a9841da58067
Nugine
2023-01-12T03:28:57
base64-simd: test estimated decoded length
diff --git a/crates/base64-simd/tests/it.rs b/crates/base64-simd/tests/it.rs index d242cfe..cdd0cb5 100644 --- a/crates/base64-simd/tests/it.rs +++ b/crates/base64-simd/tests/it.rs @@ -189,8 +189,8 @@ fn precise_decoded_length() { (&STANDARD_NO_PAD, "YWJj", 3), // ]; - // true negative - let tn_ca...
1
31
6
013d58045b47d4837d0ab7eb67a600a850e32b62
Nugine
2023-01-11T17:48:40
base64-simd: test precise decoding see https://github.com/marshallpierce/rust-base64/issues/212
diff --git a/crates/base64-simd/tests/it.rs b/crates/base64-simd/tests/it.rs index d2825ac..d242cfe 100644 --- a/crates/base64-simd/tests/it.rs +++ b/crates/base64-simd/tests/it.rs @@ -174,6 +174,7 @@ fn parallel_encode() { } } +#[cfg(feature = "alloc")] #[test] fn precise_decoded_length() { // true posi...
1
18
0
a9c014be214500c982440c336a176e23c8311d5b
Nugine
2023-01-11T17:19:41
base64-simd: test precise decoded length see also https://github.com/marshallpierce/rust-base64/issues/212
diff --git a/crates/base64-simd/tests/it.rs b/crates/base64-simd/tests/it.rs index 247aad5..d2825ac 100644 --- a/crates/base64-simd/tests/it.rs +++ b/crates/base64-simd/tests/it.rs @@ -8,8 +8,8 @@ fn rand_bytes(n: usize) -> Vec<u8> { bytes } -#[cfg(miri)] -use std::io::Write as _; +// #[cfg(miri)] +// use std::...
1
58
2
9b258eb8e1783cafacd637677796d9cf2f1f9196
Nugine
2023-01-04T07:13:07
unicode-simd: from_ascii
diff --git a/crates/unicode-simd/src/lib.rs b/crates/unicode-simd/src/lib.rs index 7825195..b269992 100644 --- a/crates/unicode-simd/src/lib.rs +++ b/crates/unicode-simd/src/lib.rs @@ -46,6 +46,13 @@ pub fn is_ascii(data: &[u8]) -> bool { unsafe { crate::multiversion::is_ascii::auto(src, len) } } +/// Converts ...
1
7
0
60fa8bce3cbc19a30d0d292a3c84499cefb0d272
Nugine
2023-01-03T07:19:03
hex-simd: raw functions
diff --git a/crates/hex-simd/src/lib.rs b/crates/hex-simd/src/lib.rs index 70c00fa..ed66363 100644 --- a/crates/hex-simd/src/lib.rs +++ b/crates/hex-simd/src/lib.rs @@ -89,10 +89,58 @@ pub fn decoded_length(n: usize) -> Result<usize, Error> { Ok(n / 2) } +/// Checks whether `data` is a hex string with raw point...
1
49
1
4028790b690915c1e023521484322467195c5155
Nugine
2023-01-03T06:20:41
length error
diff --git a/crates/base32-simd/src/lib.rs b/crates/base32-simd/src/lib.rs index 27be7d2..64ce540 100644 --- a/crates/base32-simd/src/lib.rs +++ b/crates/base32-simd/src/lib.rs @@ -132,7 +132,7 @@ impl Base32 { /// Calculates the encoded length. /// /// # Panics - /// This function will panic if `n > ...
8
66
77
e202e4e576f78917c085204c2b38678cebfc69cd
Nugine
2023-01-02T05:49:07
base64-simd: parallel encode
diff --git a/benches/Cargo.toml b/benches/Cargo.toml index 5dcad24..90ad2f5 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -59,7 +59,7 @@ unstable = [ "criterion/real_blackbox", "encoding_rs/simd-accel", ] -parallel = ["rayon"] +parallel = ["base64-simd/parallel"] [dependencies.vsimd] @@ -1...
7
87
56
776a6d444b193e70105410a4402d19bdee3fc56c
Nugine
2023-01-02T05:49:07
use outref v0.5.1
diff --git a/crates/base32-simd/Cargo.toml b/crates/base32-simd/Cargo.toml index e8c869f..8253588 100644 --- a/crates/base32-simd/Cargo.toml +++ b/crates/base32-simd/Cargo.toml @@ -22,7 +22,7 @@ detect = ["vsimd/detect"] unstable = ["vsimd/unstable"] [dependencies] -outref = "0.5.0" +outref = "0.5.1" vsimd = { pat...
5
5
5
0badb3ab0c037aa7a9cf78b59a5be5f4a7ff11bd
Nugine
2022-12-31T06:56:32
unicode-simd: tests
diff --git a/crates/unicode-simd/src/ascii.rs b/crates/unicode-simd/src/ascii.rs index 797eedb..8bcd35c 100644 --- a/crates/unicode-simd/src/ascii.rs +++ b/crates/unicode-simd/src/ascii.rs @@ -45,6 +45,7 @@ pub unsafe fn is_ascii_simd_v256<S: SIMD256>(s: S, mut src: *const u8, mut len: ans } +#[allow(clippy::to...
4
61
5
c56b677d11dda8326e34450bc3af4e32820b9344
Nugine
2022-12-28T02:47:52
base64-simd: hide forgiving config
diff --git a/crates/base64-simd/src/lib.rs b/crates/base64-simd/src/lib.rs index 59d964e..93baafd 100644 --- a/crates/base64-simd/src/lib.rs +++ b/crates/base64-simd/src/lib.rs @@ -161,31 +161,13 @@ pub const URL_SAFE_NO_PAD: Base64 = Base64 { }, }; -/// Standard charset with forgiving behavior. -/// -/// This ...
1
1
19
0ba6a08e5d360999d560eba8f36f7dd6cd99bd8d
Nugine
2022-12-28T02:44:36
use outref v0.5.0
diff --git a/crates/base32-simd/Cargo.toml b/crates/base32-simd/Cargo.toml index f5bb882..d78b5a6 100644 --- a/crates/base32-simd/Cargo.toml +++ b/crates/base32-simd/Cargo.toml @@ -22,7 +22,7 @@ detect = ["vsimd/detect"] unstable = ["vsimd/unstable"] [dependencies] -outref = "0.4.0" +outref = "0.5.0" vsimd = { pat...
6
6
6
bb820c78aa8a91db3f3d2ee506d5324599098614
Nugine
2022-12-13T02:35:15
shortcuts Related: + https://github.com/Nugine/simd/issues/28 + https://github.com/marshallpierce/rust-base64/issues/205
diff --git a/benches/base32.rs b/benches/base32.rs index 526ff4b..1c10ebc 100644 --- a/benches/base32.rs +++ b/benches/base32.rs @@ -44,7 +44,7 @@ pub fn bench_decode(c: &mut Criterion) { group.plot_config(PlotConfiguration::default().summary_scale(AxisScale::Logarithmic)); let cases = [16, 32, 64, 256, 102...
8
119
50
7d1245f83ac2b718e861f3edc1aadf052837f8e1
Nugine
2022-12-11T11:18:48
deps: upgrade base64
diff --git a/benches/Cargo.toml b/benches/Cargo.toml index 10e6b35..5dcad24 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -96,16 +96,16 @@ uuid = "1.2.2" const-str = "0.5.3" faster-hex = "0.6.1" radix64 = { version = "0.6.2", default-features = false } -base64 = "0.13.1" +base64 = "0.20.0" hex = "0.4....
4
23
15
42e63107069e4f59730041c5a6be0c5dc30922cf
Nugine
2022-12-11T10:03:22
vsimd: isa
diff --git a/crates/vsimd/src/isa.rs b/crates/vsimd/src/isa.rs index 65507a8..95dba94 100644 --- a/crates/vsimd/src/isa.rs +++ b/crates/vsimd/src/isa.rs @@ -63,21 +63,12 @@ macro_rules! is_isa_type { #[macro_export] macro_rules! matches_isa { - ($self:ident, $super:ident) => {{ + ($self:ident, $super:ident $(...
1
2
11
c354fa0af9b9e57b1c67fbf8331038fbfa2c9b97
Nugine
2022-12-05T04:31:59
vsimd: isa
diff --git a/crates/vsimd/src/isa.rs b/crates/vsimd/src/isa.rs index 104fce0..65507a8 100644 --- a/crates/vsimd/src/isa.rs +++ b/crates/vsimd/src/isa.rs @@ -2,6 +2,7 @@ use crate::{SIMD128, SIMD256, SIMD64}; pub unsafe trait InstructionSet: Copy + 'static { const ID: InstructionSetTypeId; + const ARCH: bool;...
1
40
104
8d51cad4f6af9007a18b51d03f6e8501f6ead2ca
Nugine
2022-12-04T02:05:51
fix lints
diff --git a/benches/main.rs b/benches/main.rs index e78dd2e..3b6dee2 100644 --- a/benches/main.rs +++ b/benches/main.rs @@ -79,10 +79,7 @@ fn main() { let time = bench_ascii(n, data.as_bytes()); let time_per_op = time / n as u128; let throughput = throughput(n as u128 * data.len() as u128, t...
2
3
14
b62cecfbed17f3bf282fad6e2e4d0eb55d0de189
Nugine
2022-12-01T06:52:41
unicode-simd: is_ascii
diff --git a/benches/ascii.rs b/benches/ascii.rs index a36f006..b8a3201 100644 --- a/benches/ascii.rs +++ b/benches/ascii.rs @@ -21,10 +21,6 @@ pub fn bench_check(c: &mut Criterion) { ("unicode-simd/auto", |src: &[u8]| { assert!(unicode_simd::is_ascii(src)); }), - #[cfg(all(target_...
4
136
136
651fe70e2c884add95598c687fc2a9a96895f878
Nugine
2022-11-30T06:08:10
benches: radix64 fallback
diff --git a/benches/Cargo.toml b/benches/Cargo.toml index d2524ad..10e6b35 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -46,6 +46,7 @@ detect = [ "hex-simd/detect", "unicode-simd/detect", "uuid-simd/detect", + "radix64/simd", ] unstable = [ "vsimd/unstable", @@ -94,7 +95,7 @@ ra...
1
2
1
aad1a1546ab0b3c9a34b5b3de08ba7c2af160f72
Nugine
2022-11-30T05:19:29
benches: ascii
diff --git a/benches/ascii.rs b/benches/ascii.rs index ceffba0..a36f006 100644 --- a/benches/ascii.rs +++ b/benches/ascii.rs @@ -21,14 +21,14 @@ pub fn bench_check(c: &mut Criterion) { ("unicode-simd/auto", |src: &[u8]| { assert!(unicode_simd::is_ascii(src)); }), - #[cfg(all(featur...
3
32
49
5262738726d6459deebf8d7be5df9fd6ba3e0aca
Nugine
2022-11-30T04:33:10
upgrade dependencies
diff --git a/benches/Cargo.toml b/benches/Cargo.toml index 941545d..10e6b35 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -93,7 +93,7 @@ features = ["std", "uuid"] [dependencies] rand = "0.8.5" uuid = "1.2.2" -const-str = "0.5.2" +const-str = "0.5.3" faster-hex = "0.6.1" radix64 = { version = "0.6.2"...
3
3
3
91398be5b03a2727e605da27559c4b85ff9e59ea
Nugine
2022-11-27T05:42:57
benches: par_base64_encode
diff --git a/benches/Cargo.toml b/benches/Cargo.toml index f5edf09..d990c7a 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -58,6 +58,8 @@ unstable = [ "criterion/real_blackbox", "encoding_rs/simd-accel", ] +parallel = ["rayon"] + [dependencies.vsimd] path = "../crates/vsimd" @@ -102,6 +104,7...
3
75
2
d4a3ae5978245f6cb339999ded07da40b74c9d32
Nugine
2022-11-24T07:04:30
hex-simd: fix decode_short
diff --git a/crates/hex-simd/src/decode.rs b/crates/hex-simd/src/decode.rs index 42bde67..06b2642 100644 --- a/crates/hex-simd/src/decode.rs +++ b/crates/hex-simd/src/decode.rs @@ -2,7 +2,7 @@ use crate::Error; use vsimd::hex::unhex; use vsimd::is_isa_type; -use vsimd::isa::{InstructionSet, AVX2, SSE2, WASM128}; +u...
1
28
30
0cbe2d95815661814eac32098a4364ed0ba81dd2
Nugine
2022-11-24T07:04:29
fix clippy::needless_lifetimes
diff --git a/crates/base32-simd/src/lib.rs b/crates/base32-simd/src/lib.rs index dc209f3..599a13c 100644 --- a/crates/base32-simd/src/lib.rs +++ b/crates/base32-simd/src/lib.rs @@ -182,7 +182,7 @@ impl Base32 { /// This function will panic if the length of `dst` is not enough. #[inline] #[must_use] - ...
6
18
18
3ababee492d263e5518ac41637ad7706b9dcfe83
Nugine
2022-11-19T12:56:09
upgrade dependencies
diff --git a/analyze/Cargo.toml b/analyze/Cargo.toml index 3e4a6e4..92fe850 100644 --- a/analyze/Cargo.toml +++ b/analyze/Cargo.toml @@ -13,4 +13,4 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" anyhow = "1.0" tabled = "0.10.0" -ordered-float = "3.3.0" +ordered-float = "3.4.0" diff --git a/...
3
3
3
d3b17112263404f67e0318004ad919fc323ebcb2
Nugine
2022-11-19T12:56:09
vsimd: unified: fix andnot
diff --git a/crates/vsimd/src/unified.rs b/crates/vsimd/src/unified.rs index e4c397c..46a61c8 100644 --- a/crates/vsimd/src/unified.rs +++ b/crates/vsimd/src/unified.rs @@ -1033,6 +1033,7 @@ where if is_pod_type!(V, V256) { #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] if matches_isa!(...
1
2
0
e421a7464041948fff239d75d9d17bdd12e2fe85
Nugine
2022-11-19T12:56:08
base64-simd: ascii
diff --git a/crates/base64-simd/src/ascii.rs b/crates/base64-simd/src/ascii.rs index 321ddd3..95c1f6c 100644 --- a/crates/base64-simd/src/ascii.rs +++ b/crates/base64-simd/src/ascii.rs @@ -154,6 +154,7 @@ mod tests { #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)] fn test_remove_asci...
1
12
2
e45c5fbbae15b6b02c69c844a7ed156b980973b5
Nugine
2022-11-19T12:56:08
vsimd: mask
diff --git a/crates/vsimd/src/mask.rs b/crates/vsimd/src/mask.rs index 4a99f98..d30ef45 100644 --- a/crates/vsimd/src/mask.rs +++ b/crates/vsimd/src/mask.rs @@ -4,14 +4,18 @@ use crate::{SIMD128, SIMD256}; use core::ops::Not; -/// x: `{{0xff or 0x00}}x32` #[inline(always)] pub fn mask8x16_all<S: SIMD128>(s: S, x...
2
9
5
beba3e3c914315aef15a791b3d4d91685b94e148
Nugine
2022-11-19T12:56:08
base64-simd: inline
diff --git a/crates/base64-simd/src/check.rs b/crates/base64-simd/src/check.rs index 83a2297..ed39e3f 100644 --- a/crates/base64-simd/src/check.rs +++ b/crates/base64-simd/src/check.rs @@ -9,6 +9,7 @@ use vsimd::SIMD256; use core::ptr::null_mut; +#[inline] pub(crate) unsafe fn check_fallback(mut src: *const u8, m...
3
5
1
2deb383f6fc35e9a0bb14661f8239c1330cf6215
Nugine
2022-11-19T12:56:07
vsimd: unstable
diff --git a/crates/vsimd/src/lib.rs b/crates/vsimd/src/lib.rs index 5d61f3e..2d0d109 100644 --- a/crates/vsimd/src/lib.rs +++ b/crates/vsimd/src/lib.rs @@ -5,7 +5,8 @@ feature(stdsimd), feature(arm_target_feature), feature(portable_simd), - feature(inline_const) + feature(inline_const), + featu...
2
85
1
0d6e155770814b332f0e865748e62ec10752d262
Nugine
2022-11-19T12:56:07
vsimd: tools: transmute_copy
diff --git a/crates/vsimd/src/tools.rs b/crates/vsimd/src/tools.rs index 1d88e72..07e351d 100644 --- a/crates/vsimd/src/tools.rs +++ b/crates/vsimd/src/tools.rs @@ -95,9 +95,10 @@ pub unsafe fn boxed_str(b: Box<[u8]>) -> Box<str> { Box::from_raw(core::str::from_utf8_unchecked_mut(&mut *ptr)) } +#[allow(clippy::...
1
4
3
619a140a121ab879112dc4f4189b2e92dc8dd0cf
Nugine
2022-11-17T15:29:27
vsimd: vector: repr
diff --git a/crates/vsimd/src/vector.rs b/crates/vsimd/src/vector.rs index f001bef..005962b 100644 --- a/crates/vsimd/src/vector.rs +++ b/crates/vsimd/src/vector.rs @@ -1,47 +1,121 @@ use core::mem::transmute; +// vectors should have `repr(simd)` if possible. + #[cfg(feature = "unstable")] -use core::simd::{u8x16, ...
1
107
105
9ef38981a20d09a644e6acb91e5f4c63aa15e3ec
Nugine
2022-11-17T15:29:27
vsimd: pod: is_pod_type
diff --git a/crates/vsimd/src/lib.rs b/crates/vsimd/src/lib.rs index 96a1aa7..5d61f3e 100644 --- a/crates/vsimd/src/lib.rs +++ b/crates/vsimd/src/lib.rs @@ -4,7 +4,8 @@ feature = "unstable", feature(stdsimd), feature(arm_target_feature), - feature(portable_simd) + feature(portable_simd), + featu...
2
11
4
7eb831707a2729e31c0a8cd54a8989f52464742f
Nugine
2022-11-17T15:29:27
benches: unstable
diff --git a/benches/Cargo.toml b/benches/Cargo.toml index 84ba8f6..f32a2fc 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -41,7 +41,14 @@ detect = [ "uuid-simd/detect", "radix64/simd", ] -unstable = ["criterion/real_blackbox"] +unstable = [ + "base32-simd/unstable", + "base64-simd/unstabl...
1
8
1
415dbdec3470b70aad327facf0557fc66edc8552
Nugine
2022-11-17T15:29:27
hex-simd: work around (avx2, wasm128)
diff --git a/crates/hex-simd/src/check.rs b/crates/hex-simd/src/check.rs index 4f21885..740b804 100644 --- a/crates/hex-simd/src/check.rs +++ b/crates/hex-simd/src/check.rs @@ -1,35 +1,31 @@ use crate::Error; use vsimd::hex::unhex; -use vsimd::isa::AVX2; +use vsimd::isa::{AVX2, WASM128}; use vsimd::{matches_isa, S...
2
43
26
fe6b92b947e2ead9155a96b256f82f7e6ce0bc64
Nugine
2022-11-17T15:29:26
vsimd: macros: shared_docs
diff --git a/crates/vsimd/src/macros.rs b/crates/vsimd/src/macros.rs index 74406da..2c56bff 100644 --- a/crates/vsimd/src/macros.rs +++ b/crates/vsimd/src/macros.rs @@ -18,35 +18,35 @@ macro_rules! debug_assert_ptr_align { macro_rules! shared_docs { () => { r#" +# Profile settings + +To ensure maximum pe...
1
16
16
f0ec0aae714c97228e8f8758a440bb4db63c62e3
Nugine
2022-11-16T16:16:10
hex-simd: tests: reduce cases
diff --git a/crates/hex-simd/src/tests.rs b/crates/hex-simd/src/tests.rs index 9acd464..2cfb1e6 100644 --- a/crates/hex-simd/src/tests.rs +++ b/crates/hex-simd/src/tests.rs @@ -77,7 +77,7 @@ fn safety_unit_test( let ok_cases: Vec<Vec<u8>> = { let mut ans = Vec::new(); - for n in 0..256usize { + ...
1
2
2
48bd6198c6bce0010b5fd68865c0952cf7e8d0e6
Nugine
2022-11-15T20:44:22
tests: opt-level=3
diff --git a/Cargo.toml b/Cargo.toml index 7862344..f2d56ae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,9 @@ members = ["crates/*", "benches", "analyze"] resolver = "2" +[profile.test] +opt-level = 3 + [profile.bench] lto = "fat" codegen-units = 1
1
3
0
508bffc65c3b72b889666773fe3e30a2b5a329f4
Nugine
2022-11-15T20:44:21
vsimd: scalable
diff --git a/crates/base64-simd/src/ascii.rs b/crates/base64-simd/src/ascii.rs index d6354b8..03b2f4e 100644 --- a/crates/base64-simd/src/ascii.rs +++ b/crates/base64-simd/src/ascii.rs @@ -1,6 +1,6 @@ use vsimd::isa::AVX2; use vsimd::tools::slice_parts; -use vsimd::{is_subtype, Scalable, SIMD256}; +use vsimd::{is_sub...
11
261
231
ed65f33da167d894b6024a321f09469fdacde5c0
Nugine
2022-11-15T20:44:21
vsimd: isa
diff --git a/crates/hex-simd/src/decode.rs b/crates/hex-simd/src/decode.rs index 720beab..152716d 100644 --- a/crates/hex-simd/src/decode.rs +++ b/crates/hex-simd/src/decode.rs @@ -2,9 +2,9 @@ use crate::Error; use vsimd::hex::unhex; use vsimd::isa::{InstructionSet, AVX2, SSE2}; -use vsimd::tools::{is_same_type, re...
7
88
72
26bad91441227dbbe7f240e2a57951e728e3025d
Nugine
2022-11-15T20:44:21
vsimd: pod
diff --git a/crates/vsimd/src/lib.rs b/crates/vsimd/src/lib.rs index 473c426..232baec 100644 --- a/crates/vsimd/src/lib.rs +++ b/crates/vsimd/src/lib.rs @@ -47,6 +47,9 @@ pub mod isa; pub mod vector; +#[macro_use] +pub mod pod; + mod simulation; mod unified; @@ -63,10 +66,8 @@ pub use self::simd256::SIMD256; ...
5
274
231
5a00b302498bc146111e06831f97f3db191a2882
Nugine
2022-11-15T16:11:55
stabilize aarch64 simd
diff --git a/crates/uuid-simd/src/spec.rs b/crates/uuid-simd/src/spec.rs index 4db107c..8f19ffa 100644 --- a/crates/uuid-simd/src/spec.rs +++ b/crates/uuid-simd/src/spec.rs @@ -3,7 +3,7 @@ use vsimd::{SIMD128, SIMD256}; #[cfg(any( any(target_arch = "x86", target_arch = "x86_64"), - all(feature = "unstable", ...
8
87
84
e69a7e1f6f24a066b4b55accd2c0bedd618d7ef4
Nugine
2022-11-15T16:11:55
vsimd: hex: sse2: fix
diff --git a/crates/vsimd/src/hex.rs b/crates/vsimd/src/hex.rs index 05859cd..e39fcfb 100644 --- a/crates/vsimd/src/hex.rs +++ b/crates/vsimd/src/hex.rs @@ -261,8 +261,8 @@ pub mod sse2 { let l1 = s.u8x16_add(lo, c1); let c2 = s.u8x16_splat(0x39); - let h2 = s.v128_and(s.u8x16_lt(c2, h1), off...
1
2
2
0494272e754eebf9391ed2d48608c996bbb2d176
Nugine
2022-10-30T17:08:32
upgrade dependencies
diff --git a/analyze/Cargo.toml b/analyze/Cargo.toml index da13131..904fbd3 100644 --- a/analyze/Cargo.toml +++ b/analyze/Cargo.toml @@ -13,4 +13,4 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" anyhow = "1.0" tabled = "0.10.0" -ordered-float = "3.2.0" +ordered-float = "3.3.0" diff --git a/...
8
14
14
9d152bcfbb62aab123dc190cb8dd49bcd0229a1c
Nugine
2022-10-30T17:08:32
use outref v0.4.0
diff --git a/benches/base32.rs b/benches/base32.rs index dac4771..526ff4b 100644 --- a/benches/base32.rs +++ b/benches/base32.rs @@ -1,4 +1,4 @@ -use base32_simd::OutRef; +use base32_simd::AsOut; use simd_benches::{map_collect, rand_bytes, FnGroup}; use criterion::{black_box, criterion_group, criterion_main, AxisSc...
20
91
110
3c58bbc03bf860a2e4087867e74048c102c1f5e4
Nugine
2022-10-27T19:22:42
base64-simd: ascii: find_non_ascii_whitespace
diff --git a/crates/base64-simd/src/ascii.rs b/crates/base64-simd/src/ascii.rs index 07598b2..d6354b8 100644 --- a/crates/base64-simd/src/ascii.rs +++ b/crates/base64-simd/src/ascii.rs @@ -2,6 +2,8 @@ use vsimd::isa::AVX2; use vsimd::tools::slice_parts; use vsimd::{is_subtype, Scalable, SIMD256}; +use core::ops::No...
1
8
0
5cd608650f4fa3ae9398c1c162a1b945020a8062
Nugine
2022-10-26T08:31:39
vsimd: simulation
diff --git a/crates/vsimd/src/hex.rs b/crates/vsimd/src/hex.rs index 0883cba..05859cd 100644 --- a/crates/vsimd/src/hex.rs +++ b/crates/vsimd/src/hex.rs @@ -242,7 +242,7 @@ pub mod sse2 { let hi = s.u16x8_shl::<4>(x); let t1 = s.v128_or(lo, hi); let t2 = s.v128_and(t1, s.u16x8_splat(0x00ff));...
5
113
5
145df13f5b9fb7f20a9206f4b24fe0eccbae2cd3
Nugine
2022-10-25T14:11:33
vsimd: macros: dispatch
diff --git a/crates/base32-simd/src/multiversion.rs b/crates/base32-simd/src/multiversion.rs index 287216f..74e07bc 100644 --- a/crates/base32-simd/src/multiversion.rs +++ b/crates/base32-simd/src/multiversion.rs @@ -1,6 +1,6 @@ use crate::{Error, Kind}; -vsimd::dispatch_v2!( +vsimd::dispatch!( name = {c...
6
32
225
53477a56d49318810cca10dbab4a2ede5145491c
Nugine
2022-10-25T14:11:33
base32-simd: multiversion
diff --git a/crates/base32-simd/src/encode.rs b/crates/base32-simd/src/encode.rs index db3292f..f24933e 100644 --- a/crates/base32-simd/src/encode.rs +++ b/crates/base32-simd/src/encode.rs @@ -1,7 +1,7 @@ use crate::{u16x4_to_u64, Kind}; use crate::{BASE32HEX_CHARSET, BASE32_CHARSET}; -use vsimd::isa::{NEON, SSE41,...
2
17
19
594ac4481067cb4399c3e56b27a63c6fa7f8a4fd
Nugine
2022-10-25T14:11:32
base64-simd: refactor
diff --git a/crates/base64-simd/src/ascii.rs b/crates/base64-simd/src/ascii.rs index 929311c..07598b2 100644 --- a/crates/base64-simd/src/ascii.rs +++ b/crates/base64-simd/src/ascii.rs @@ -59,13 +59,6 @@ unsafe fn find_non_ascii_whitespace_short(mut src: *const u8, len: usize) -> usi #[inline(always)] pub unsafe fn...
4
25
46
0e898e46328746887b4d302576d72f14187bdc59
Nugine
2022-10-25T14:11:32
unicode-simd: multiversion
diff --git a/crates/unicode-simd/src/multiversion.rs b/crates/unicode-simd/src/multiversion.rs index 8446310..f2231ad 100644 --- a/crates/unicode-simd/src/multiversion.rs +++ b/crates/unicode-simd/src/multiversion.rs @@ -1,39 +1,37 @@ #![allow(missing_docs)] -use vsimd::simd_dispatch; - -simd_dispatch! ( - name ...
1
20
22
f53f5ca98027eb557f007422032a104effd0d170
Nugine
2022-10-25T14:11:32
uuid-simd: refactor
diff --git a/crates/uuid-simd/src/format.rs b/crates/uuid-simd/src/format.rs index 82c4d4f..5bc215d 100644 --- a/crates/uuid-simd/src/format.rs +++ b/crates/uuid-simd/src/format.rs @@ -1,9 +1,10 @@ use crate::spec::*; use vsimd::ascii::AsciiCase; -use vsimd::tools::{read, write}; +use vsimd::isa::{InstructionSet, S...
4
71
96
2357df2ce5e605569ed86160f658e19549f2fc77
Nugine
2022-10-25T14:11:32
hex-simd: refactor
diff --git a/crates/hex-simd/src/check.rs b/crates/hex-simd/src/check.rs index b7a2150..56e3ee3 100644 --- a/crates/hex-simd/src/check.rs +++ b/crates/hex-simd/src/check.rs @@ -1,7 +1,8 @@ use crate::Error; use vsimd::hex::unhex; -use vsimd::SIMD256; +use vsimd::isa::AVX2; +use vsimd::{is_subtype, SIMD256}; #[in...
4
176
155
157dfcd555888610b951b3fe79e3da2bc5623bff
Nugine
2022-10-25T14:11:32
vsimd: hex: ssse3
diff --git a/crates/vsimd/src/hex.rs b/crates/vsimd/src/hex.rs index a446126..0883cba 100644 --- a/crates/vsimd/src/hex.rs +++ b/crates/vsimd/src/hex.rs @@ -1,5 +1,5 @@ use crate::alsw::{self, AlswLut}; -use crate::isa::{AVX2, NEON, SSE41, WASM128}; +use crate::isa::{AVX2, NEON, SSSE3, WASM128}; use crate::mask::{u8x...
4
9
9
2cae97fdf5c177e3f059257daa2fddcc6652431b
Nugine
2022-10-25T14:11:31
vsimd: macros: dispatch_v2
diff --git a/crates/vsimd/src/macros.rs b/crates/vsimd/src/macros.rs index b274a97..ba65186 100644 --- a/crates/vsimd/src/macros.rs +++ b/crates/vsimd/src/macros.rs @@ -254,3 +254,346 @@ codegen-units = 1 "# }; } + +#[macro_export] +macro_rules! dispatch_v2 { + ( + name = {$name:ident}, + ...
1
343
0
369d91dd1fc4e8fc87ccefdd1cbf59169bef5a8b
Nugine
2022-10-25T05:39:36
fix lints
diff --git a/analyze/main.rs b/analyze/main.rs index 6ee847b..11c9ce2 100644 --- a/analyze/main.rs +++ b/analyze/main.rs @@ -171,9 +171,9 @@ fn render_table(table_data: &[TableData]) -> Result<Vec<(String, Table)>> { let f = t.content[i][j]; let needs_bold = i == bold_row[j]; ...
2
6
6
30885feae6442a20c3ffeeb8eb820d2fc1307159
Nugine
2022-10-24T05:36:47
wasm test
diff --git a/crates/base32-simd/src/tests.rs b/crates/base32-simd/src/tests.rs index 5d7d888..262d81b 100644 --- a/crates/base32-simd/src/tests.rs +++ b/crates/base32-simd/src/tests.rs @@ -19,7 +19,8 @@ macro_rules! dbgmsg { }; } -#[test] +#[cfg_attr(not(target_arch = "wasm32"), test)] +#[cfg_attr(target_arch =...
6
36
48
669cf1b227253f7956286e82e09e447c2d31b9f1
Nugine
2022-10-24T05:36:47
base64-simd: ascii: has_ascii_whitespace
diff --git a/crates/base64-simd/src/ascii.rs b/crates/base64-simd/src/ascii.rs index e12bb4d..929311c 100644 --- a/crates/base64-simd/src/ascii.rs +++ b/crates/base64-simd/src/ascii.rs @@ -1,7 +1,6 @@ -use vsimd::mask::mask8x32_any; -use vsimd::tools::{read, slice_parts}; -use vsimd::vector::V256; -use vsimd::SIMD256; ...
7
143
87
aa6437990d1f6122d689a90011f35523e1666cd5
Nugine
2022-10-24T05:36:47
benches: base64: forgiving_decode
diff --git a/analyze/main.rs b/analyze/main.rs index 8b64377..6ee847b 100644 --- a/analyze/main.rs +++ b/analyze/main.rs @@ -81,6 +81,7 @@ fn gather_table_data(data: &[Data]) -> Result<Vec<TableData>> { "base64-check", "base64-decode", "base64-encode", + "base64-forgiving-decode", ...
2
30
1
3d4a0c249e25acc5cb96b038fb8dc39365a35d66
Nugine
2022-10-24T05:36:47
vsimd: isa: SSSE3
diff --git a/crates/vsimd/src/isa.rs b/crates/vsimd/src/isa.rs index e500672..34ce85a 100644 --- a/crates/vsimd/src/isa.rs +++ b/crates/vsimd/src/isa.rs @@ -113,6 +113,30 @@ unsafe impl SIMD64 for SSE2 {} unsafe impl SIMD128 for SSE2 {} unsafe impl SIMD256 for SSE2 {} +#[derive(Debug, Clone, Copy)] +pub struct SSSE...
2
71
7
3eaaa2cf7a69f708db57252cca302c8b3c2cfe54
Nugine
2022-10-24T05:36:47
vsimd: tools: boxed_str
diff --git a/crates/base32-simd/src/heap.rs b/crates/base32-simd/src/heap.rs index cad819a..0d35458 100644 --- a/crates/base32-simd/src/heap.rs +++ b/crates/base32-simd/src/heap.rs @@ -2,7 +2,7 @@ use crate::decode::decoded_length; use crate::encode::encoded_length_unchecked; use crate::{AppendBase32Decode, AppendBas...
4
45
34
ae17d6c1339b29262f20b629b9cbc72c7c14fe56
Nugine
2022-10-18T13:52:32
base32-simd: append
diff --git a/crates/base32-simd/src/heap.rs b/crates/base32-simd/src/heap.rs index 3b7db34..cad819a 100644 --- a/crates/base32-simd/src/heap.rs +++ b/crates/base32-simd/src/heap.rs @@ -1,6 +1,6 @@ use crate::decode::decoded_length; use crate::encode::encoded_length_unchecked; -use crate::{Base32, FromBase32Decode, Fr...
3
160
46
7b1fec256de7cf2bea255beddef366314ef7b89b
Nugine
2022-10-18T13:52:31
hex-simd: append
diff --git a/crates/hex-simd/src/heap.rs b/crates/hex-simd/src/heap.rs index 9dd5705..7f4c8c8 100644 --- a/crates/hex-simd/src/heap.rs +++ b/crates/hex-simd/src/heap.rs @@ -1,31 +1,94 @@ -use crate::{AsciiCase, Error, FromHexDecode, FromHexEncode}; +use crate::{AppendHexDecode, AppendHexEncode, AsciiCase, Error, FromHe...
3
165
50
776675a689dd5da8f19046f9c59c87813e24c1dd
Nugine
2022-10-18T13:52:31
base64-simd: append
diff --git a/crates/base64-simd/src/heap.rs b/crates/base64-simd/src/heap.rs index a904d12..9f002e8 100644 --- a/crates/base64-simd/src/heap.rs +++ b/crates/base64-simd/src/heap.rs @@ -1,6 +1,8 @@ use crate::decode::decoded_length; use crate::encode::encoded_length_unchecked; -use crate::{Base64, FromBase64Decode, Fr...
3
162
46
54e8c32d83621cbd0a1171fab04124637ece13ac
Nugine
2022-10-17T17:23:41
uuid-simd: sse2
diff --git a/crates/uuid-simd/src/format.rs b/crates/uuid-simd/src/format.rs index f94b900..82c4d4f 100644 --- a/crates/uuid-simd/src/format.rs +++ b/crates/uuid-simd/src/format.rs @@ -15,6 +15,14 @@ const fn char_lut_fallback(case: AsciiCase) -> &'static [u8; 16] { #[inline(always)] pub unsafe fn format_simple_fal...
2
72
0
91571270b641a61ea7ff3d915213c5c3e5a34681
Nugine
2022-10-17T17:23:41
vsimd: hex: sse2
diff --git a/crates/hex-simd/src/decode.rs b/crates/hex-simd/src/decode.rs index 13c4413..3c449ff 100644 --- a/crates/hex-simd/src/decode.rs +++ b/crates/hex-simd/src/decode.rs @@ -127,24 +127,24 @@ pub unsafe fn decode_simd<S: SIMD256>(s: S, mut src: *const u8, mut len: usize, mod sse2 { use super::*; - #[c...
3
82
68
33c43fd2dd68c745b521a0ea301474a6fccfdbd9
Nugine
2022-10-17T17:23:41
vsimd: simd128: u16x8_packus
diff --git a/crates/vsimd/src/simd128.rs b/crates/vsimd/src/simd128.rs index 38278e2..0bb6a53 100644 --- a/crates/vsimd/src/simd128.rs +++ b/crates/vsimd/src/simd128.rs @@ -1911,6 +1911,19 @@ pub unsafe trait SIMD128: SIMD64 { unreachable!() } } + + /// T1: SSE2 + #[inline(always)] + ...
1
13
0
88d1c986d4b12fa6c57b1d578d8df161289b438c
Nugine
2022-10-17T17:23:40
benches: add data-encoding
diff --git a/benches/Cargo.toml b/benches/Cargo.toml index 5c50bbf..8bbd697 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -80,6 +80,7 @@ getrandom = { version = "0.2", features = ["js"] } base64ct = "1.5.2" base16ct = "0.1.1" base32ct = "0.1.0" +data-encoding = "2.3.2" [dev-dependencies] criterion ...
4
19
0
9d756a0bd4fcbe98945cda27891859a5b8e8e517
Nugine
2022-10-17T17:23:40
fix lints
diff --git a/crates/base32-simd/src/decode.rs b/crates/base32-simd/src/decode.rs index 591933c..eaf055e 100644 --- a/crates/base32-simd/src/decode.rs +++ b/crates/base32-simd/src/decode.rs @@ -10,6 +10,8 @@ use vsimd::tools::{read, write}; use vsimd::vector::V256; use vsimd::{is_subtype, simd256_vop, SIMD256}; +use...
2
10
18
4d6b948a921083e420b3465933b20dee9356cb78
Nugine
2022-10-16T14:09:50
vsimd: alsw
diff --git a/crates/vsimd/src/alsw.rs b/crates/vsimd/src/alsw.rs index f2a0b63..fc0f23b 100644 --- a/crates/vsimd/src/alsw.rs +++ b/crates/vsimd/src/alsw.rs @@ -132,6 +132,8 @@ macro_rules! impl_alsw { arr }; + #[inline] + #[must_use] const fn check_lut...
1
4
0
702bad6ddbe3348b8158afc90141f7b04d8a4152
Nugine
2022-10-16T14:09:50
base32-simd: merge vsimd::base32
diff --git a/crates/base32-simd/src/alsw.rs b/crates/base32-simd/src/alsw.rs new file mode 100644 index 0000000..08fa4b9 --- /dev/null +++ b/crates/base32-simd/src/alsw.rs @@ -0,0 +1,90 @@ +use vsimd::alsw::AlswLut; +use vsimd::vector::{V128, V256}; + +struct Base32Alsw; + +impl Base32Alsw { + #[inline] + const f...
10
326
313
44322bb525ba09e4128678118de1dc031111c894
Nugine
2022-10-16T14:09:50
base64-simd: merge vsimd::base64
diff --git a/crates/base64-simd/src/alsw.rs b/crates/base64-simd/src/alsw.rs new file mode 100644 index 0000000..4bb02f0 --- /dev/null +++ b/crates/base64-simd/src/alsw.rs @@ -0,0 +1,108 @@ +use vsimd::alsw::AlswLut; +use vsimd::vector::{V128, V256}; + +struct StandardAlsw; + +impl StandardAlsw { + #[inline] + co...
7
381
378
94285ff4d8eb070f64de75f151bdecb215360c3f
Nugine
2022-10-16T14:09:50
base32-simd: check
diff --git a/crates/base32-simd/src/check.rs b/crates/base32-simd/src/check.rs index e10258e..ea27e53 100644 --- a/crates/base32-simd/src/check.rs +++ b/crates/base32-simd/src/check.rs @@ -1,4 +1,4 @@ -use crate::decode::decode_bits; +use crate::decode::{decode_bits, decode_extra}; use crate::decode::{BASE32HEX_TABLE,...
2
22
32
69bd0042144634e365d049815a2b9487c275ef03
Nugine
2022-10-16T14:09:49
base32-simd: encode, decode, check
diff --git a/crates/base32-simd/src/check.rs b/crates/base32-simd/src/check.rs new file mode 100644 index 0000000..e10258e --- /dev/null +++ b/crates/base32-simd/src/check.rs @@ -0,0 +1,79 @@ +use crate::decode::decode_bits; +use crate::decode::{BASE32HEX_TABLE, BASE32_TABLE}; +use crate::Error; + +use vsimd::base32::{...
8
428
423
6c3ebd5c95e382cef1ec438868e85d9eb9b78b02
Nugine
2022-10-16T14:09:49
base64-simd: ascii, encode, decode, check
diff --git a/crates/base64-simd/src/ascii.rs b/crates/base64-simd/src/ascii.rs index e5b6092..78420c5 100644 --- a/crates/base64-simd/src/ascii.rs +++ b/crates/base64-simd/src/ascii.rs @@ -1,9 +1,113 @@ -use vsimd::ascii::lookup_ascii_whitespace; +use vsimd::mask::mask8x32_any; +use vsimd::tools::{read, slice, slice_pa...
9
411
402
bcb410ae3a1689205c5cefe8d711725e076edc0d
Nugine
2022-10-16T14:09:49
hex-simd: check, encode, decode
diff --git a/crates/hex-simd/src/check.rs b/crates/hex-simd/src/check.rs new file mode 100644 index 0000000..39c5b76 --- /dev/null +++ b/crates/hex-simd/src/check.rs @@ -0,0 +1,108 @@ +use crate::Error; + +use vsimd::hex::unhex; +use vsimd::tools::{slice, slice_parts}; +use vsimd::SIMD256; + +#[inline(always)] +fn chec...
8
486
487
79aa88694e325a6ffc537582cf18fe28dcf5ab4c
Nugine
2022-10-16T14:09:49
uuid-simd: parse, format
diff --git a/crates/uuid-simd/src/fallback.rs b/crates/uuid-simd/src/fallback.rs deleted file mode 100644 index 805d8b1..0000000 --- a/crates/uuid-simd/src/fallback.rs +++ /dev/null @@ -1,95 +0,0 @@ -use crate::Error; - -use vsimd::ascii::AsciiCase; -use vsimd::hex::unhex; -use vsimd::tools::{read, write}; - -#[inline(...
6
194
193
5eadb812b8e3c47bf3fa69a9d3a8eb40ae8c97dc
Nugine
2022-10-16T14:09:49
unicode-simd: ascii, utf16, utf32
diff --git a/crates/unicode-simd/src/ascii.rs b/crates/unicode-simd/src/ascii.rs new file mode 100644 index 0000000..8a5c0f4 --- /dev/null +++ b/crates/unicode-simd/src/ascii.rs @@ -0,0 +1,39 @@ +use vsimd::mask::u8x32_highbit_any; +use vsimd::tools::{slice, slice_parts}; +use vsimd::SIMD256; + +use core::ops::Not; + +...
10
133
142
7965dc8cad6af8f03c11252f83aa84ecfe73c79a
Nugine
2022-10-16T14:09:48
deny warnings
diff --git a/crates/base32-simd/src/lib.rs b/crates/base32-simd/src/lib.rs index 7758803..33c0b35 100644 --- a/crates/base32-simd/src/lib.rs +++ b/crates/base32-simd/src/lib.rs @@ -21,6 +21,7 @@ #![cfg_attr(not(any(feature = "std", test)), no_std)] #![cfg_attr(feature = "unstable", feature(arm_target_feature))] #![c...
6
6
0
d58543778a693574a5e3516f0caea823e30c1239
Nugine
2022-10-16T14:09:48
vsimd: macros: simd_dispatch!
diff --git a/crates/base32-simd/src/lib.rs b/crates/base32-simd/src/lib.rs index 778b7fd..7758803 100644 --- a/crates/base32-simd/src/lib.rs +++ b/crates/base32-simd/src/lib.rs @@ -52,11 +52,6 @@ pub use self::error::Error; mod fallback; -#[cfg(any( - any(target_arch = "x86", target_arch = "x86_64"), - all(f...
6
21
27
e41b50620edf3a5016fe85e6eaa31835f9913bd2
Nugine
2022-10-10T16:41:26
vsimd: macros
diff --git a/crates/vsimd/src/macros.rs b/crates/vsimd/src/macros.rs index bd07d52..a3b6100 100644 --- a/crates/vsimd/src/macros.rs +++ b/crates/vsimd/src/macros.rs @@ -105,49 +105,56 @@ macro_rules! simd_dispatch { } } - #[inline(always)] - fn resolve() -> $(for<$(...
1
62
40
f160f11e66f3aee2df828c7957467c68353afe57
Nugine
2022-10-10T16:25:12
vsimd: bswap
diff --git a/crates/vsimd/src/bswap.rs b/crates/vsimd/src/bswap.rs index be2265d..3e0dca7 100644 --- a/crates/vsimd/src/bswap.rs +++ b/crates/vsimd/src/bswap.rs @@ -1,5 +1,4 @@ -use crate::pod::{align, POD}; -use crate::tools::slice; +use crate::pod::POD; use crate::vector::{V128, V256}; use crate::SIMD256; @@ -24,...
1
30
62
b44fe933baa0d27bebb382484ad3a5ca0c5426e9
Nugine
2022-10-10T16:25:12
vsimd: native
diff --git a/crates/vsimd/Cargo.toml b/crates/vsimd/Cargo.toml index 1d6fba5..a955f77 100644 --- a/crates/vsimd/Cargo.toml +++ b/crates/vsimd/Cargo.toml @@ -22,3 +22,8 @@ unstable = [] [dev-dependencies] const-str = "0.5.1" +rand = "0.8.5" + +[target.'cfg(target_arch="wasm32")'.dev-dependencies] +getrandom = { vers...
4
162
2
c20e619e200853d146b43e8ca98bd46014312388
Nugine
2022-10-10T16:25:12
vsimd: isa
diff --git a/crates/vsimd/src/isa.rs b/crates/vsimd/src/isa.rs index 14584b8..e500672 100644 --- a/crates/vsimd/src/isa.rs +++ b/crates/vsimd/src/isa.rs @@ -15,6 +15,26 @@ pub unsafe trait InstructionSet: Copy + 'static { } } +#[derive(Debug, Clone, Copy)] +pub struct Fallback(()); + +unsafe impl InstructionSet...
1
42
11
e46d2fed4a7b1170645cc22da0833032be93ee74
Nugine
2022-10-10T16:25:11
vsimd: scalable: bswap
diff --git a/crates/vsimd/src/scalable.rs b/crates/vsimd/src/scalable.rs index 3e7dad2..0aeff6b 100644 --- a/crates/vsimd/src/scalable.rs +++ b/crates/vsimd/src/scalable.rs @@ -36,6 +36,10 @@ pub unsafe trait Scalable<V: Copy>: InstructionSet { fn u8xn_highbit_all(self, a: V) -> bool; fn u8xn_highbit_any(se...
1
34
0
5d2b0a402773ef51a518560020488884c33e2d20
Nugine
2022-10-10T16:25:11
unicode-simd: utf32
diff --git a/crates/unicode-simd/src/fallback/utf32.rs b/crates/unicode-simd/src/fallback/utf32.rs index f5b89a8..f207d5e 100644 --- a/crates/unicode-simd/src/fallback/utf32.rs +++ b/crates/unicode-simd/src/fallback/utf32.rs @@ -1,16 +1,29 @@ -use vsimd::tools::unroll; +use vsimd::tools::slice_parts; #[inline] pub ...
4
35
81