Fix macro in core
Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
This commit is contained in:
parent
10168fb7c4
commit
98e4fcae5a
1 changed files with 2 additions and 4 deletions
|
|
@ -36,8 +36,7 @@ macro_rules! simd_shuffle {
|
|||
$vector:expr, $index:expr $(,)?
|
||||
} => {
|
||||
{
|
||||
// FIXME this won't work when we are in `core`!
|
||||
use $crate::Swizzle;
|
||||
use $crate::simd::Swizzle;
|
||||
struct Shuffle;
|
||||
impl Swizzle<{$index.len()}, {$index.len()}> for Shuffle {
|
||||
const INDEX: [usize; {$index.len()}] = $index;
|
||||
|
|
@ -49,8 +48,7 @@ macro_rules! simd_shuffle {
|
|||
$first:expr, $second:expr, $index:expr $(,)?
|
||||
} => {
|
||||
{
|
||||
// FIXME this won't work when we are in `core`!
|
||||
use $crate::{Which, Swizzle2};
|
||||
use $crate::simd::{Which, Swizzle2};
|
||||
struct Shuffle;
|
||||
impl Swizzle2<{$index.len()}, {$index.len()}> for Shuffle {
|
||||
const INDEX: [Which; {$index.len()}] = $index;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue