Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
calebzulawski committed Feb 17, 2024
1 parent 6ad779c commit a2dd4a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion crates/core_simd/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![no_std]
#![feature(
core_intrinsics,
const_intrinsic_copy,
const_refs_to_cell,
const_maybe_uninit_as_mut_ptr,
Expand Down
6 changes: 3 additions & 3 deletions crates/core_simd/src/masks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mod sealed {

fn eq(self, other: Self) -> bool;

fn as_usize(self) -> usize;
fn to_usize(self) -> usize;

type Unsigned: SimdElement;

Expand Down Expand Up @@ -65,7 +65,7 @@ macro_rules! impl_element {
fn eq(self, other: Self) -> bool { self == other }

#[inline]
fn as_usize(self) -> usize {
fn to_usize(self) -> usize {
self as usize
}

Expand Down Expand Up @@ -394,7 +394,7 @@ where
if min_index.eq(T::TRUE) {
None
} else {
Some(min_index.as_usize())
Some(min_index.to_usize())
}
}
}
Expand Down

0 comments on commit a2dd4a3

Please sign in to comment.