Skip to content

Commit

Permalink
hack around bug in emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
djzin committed Jun 9, 2017
1 parent b795b7b commit 83f1f11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libcore/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 83f1f11

Please sign in to comment.