From b67fbc39ed909d9b033d37a4cc7b758c4eebc613 Mon Sep 17 00:00:00 2001 From: "Heinz N. Gies" Date: Mon, 5 Aug 2024 20:45:15 +0200 Subject: [PATCH] update portable simd Signed-off-by: Heinz N. Gies --- Cargo.toml | 2 +- src/generator.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 401ecba..9de306c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 = [] diff --git a/src/generator.rs b/src/generator.rs index dcc6fa7..cb75724 100644 --- a/src/generator.rs +++ b/src/generator.rs @@ -468,7 +468,8 @@ unsafe fn write_str_simd_portable(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);