mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
hack around bug in emscripten
This commit is contained in:
parent
b795b7b43b
commit
83f1f118e5
@ -503,7 +503,9 @@ pub fn swap<T>(x: &mut T, y: &mut T) {
|
||||
// that swapping either 32 bytes or 64 bytes at a time is most efficient for intel
|
||||
// Haswell E processors. LLVM is more able to optimize if we give a struct a
|
||||
// #[repr(simd)], even if we don't actually use this struct directly.
|
||||
#[repr(simd)]
|
||||
//
|
||||
// FIXME repr(simd) broken on emscripten
|
||||
#[cfg_attr(not(target_os = "emscripten"), repr(simd))]
|
||||
struct Block(u64, u64, u64, u64);
|
||||
struct UnalignedBlock(u64, u64, u64, u64);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user