* simd fix

* fmt
This commit is contained in:
Dongjia Zhang 2022-08-14 20:39:34 +02:00 committed by GitHub
parent ce12b98599
commit a87f99afb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,8 @@ use alloc::{
string::{String, ToString},
vec::Vec,
};
#[rustversion::nightly]
use core::simd::SimdOrd;
use core::{
fmt::Debug,
marker::PhantomData,
@ -493,7 +495,7 @@ where
let history = VectorType::from_slice(&history_map[i..]);
let items = VectorType::from_slice(&map[i..]);
if items.max(history) != history {
if items.simd_max(history) != history {
interesting = true;
unsafe {
for j in i..(i + VectorType::LANES) {