about summary refs log tree commit diff
path: root/src/libstd/sys/wasm/alloc.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-12-25 03:04:14 +0000
committerbors <bors@rust-lang.org>2018-12-25 03:04:14 +0000
commite57ab2699d4c2466449444b0faffc3fb11aefac2 (patch)
tree262c6d9f1f412a85af7b67eae3e21b4b0583a096 /src/libstd/sys/wasm/alloc.rs
parentad781a065ac874e402e15927a22faa080e97fe94 (diff)
parent5e5823c67b7d6ec25e8140e037c83115bf1321e7 (diff)
downloadrust-e57ab2699d4c2466449444b0faffc3fb11aefac2.tar.gz
rust-e57ab2699d4c2466449444b0faffc3fb11aefac2.zip
Auto merge of #56926 - alexcrichton:update-stdsimd, r=TimNN
Update the stdsimd submodule

This brings in a few updates:

* Update wasm intrinsic naming for atomics
* Update and reimplement most simd128 wasm intrinsics
* Other misc improvements here and there, including a small start to
  AVX-512 intrinsics
Diffstat (limited to 'src/libstd/sys/wasm/alloc.rs')
-rw-r--r--src/libstd/sys/wasm/alloc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/wasm/alloc.rs b/src/libstd/sys/wasm/alloc.rs
index 0faa3c9a740..4b6d57f12e2 100644
--- a/src/libstd/sys/wasm/alloc.rs
+++ b/src/libstd/sys/wasm/alloc.rs
@@ -74,7 +74,7 @@ mod lock {
                 return DropLock
             }
             unsafe {
-                let r = wasm32::atomic::wait_i32(
+                let r = wasm32::i32_atomic_wait(
                     &LOCKED as *const AtomicI32 as *mut i32,
                     1,  // expected value
                     -1, // timeout
@@ -89,7 +89,7 @@ mod lock {
             let r = LOCKED.swap(0, SeqCst);
             debug_assert_eq!(r, 1);
             unsafe {
-                wasm32::atomic::wake(
+                wasm32::atomic_notify(
                     &LOCKED as *const AtomicI32 as *mut i32,
                     1, // only one thread
                 );