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