Skip to content

Commit

Permalink
update portable simd
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz N. Gies <heinz@licenser.net>
  • Loading branch information
Licenser committed Aug 5, 2024
1 parent 26e505b commit b67fbc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ c-abi = ["abi_stable"]
# use runtime detection of the CPU features where possible instead of enforcing an instruction set
runtime-detection = []

# portable simd support (as of rust 1.73 nightly only)
# portable simd support (as of rust 1.80 nightly only)
portable = []
3 changes: 2 additions & 1 deletion src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ unsafe fn write_str_simd_portable<W>(writer: &mut W, string: &mut &[u8]) -> io::
where
W: Write,
{
use std::simd::{u8x32, SimdPartialEq, ToBitMask};
use std::simd::cmp::SimdPartialEq;
use std::simd::u8x32;

let mut idx = 0;
let zero = u8x32::splat(0);
Expand Down

0 comments on commit b67fbc3

Please sign in to comment.