hack around bug in emscripten

This commit is contained in:
Djzin 2017-06-09 07:07:58 +01:00
parent b795b7b43b
commit 83f1f118e5
1 changed files with 3 additions and 1 deletions

View File

@ -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);