Skip to content

Commit

Permalink
Replace MEMS macro with CMEMS (WebAssembly#75)
Browse files Browse the repository at this point in the history
This was changed at some point upstream.
  • Loading branch information
binji committed Oct 26, 2017
1 parent 4034e63 commit 45b2cfe
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions document/core/valid/instructions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -436,15 +436,15 @@ Atomic Memory Instructions
:math:`t\K{.}\ATOMICLOAD~\memarg`
.................................

* The memory :math:`C.\MEMS[0]` must be defined in the context.
* The memory :math:`C.\CMEMS[0]` must be defined in the context.

* The alignment :math:`2^{\memarg.\ALIGN}` must be equal to the :ref:`width <syntax-valtype>` of :math:`t` divided by :math:`8`.

* Then the instruction is valid with type :math:`[\I32] \to [t]`.

.. math::
\frac{
C.\MEMS[0] = \memtype
C.\CMEMS[0] = \memtype
\qquad
2^{\memarg.\ALIGN} = |t|/8
}{
Expand All @@ -457,15 +457,15 @@ Atomic Memory Instructions
:math:`t\K{.}\ATOMICLOAD{N}\K{\_u}~\memarg`
...........................................

* The memory :math:`C.\MEMS[0]` must be defined in the context.
* The memory :math:`C.\CMEMS[0]` must be defined in the context.

* The alignment :math:`2^{\memarg.\ALIGN}` must be equal to :math:`N/8`.

* Then the instruction is valid with type :math:`[\I32] \to [t]`.

.. math::
\frac{
C.\MEMS[0] = \memtype
C.\CMEMS[0] = \memtype
\qquad
2^{\memarg.\ALIGN} = N/8
}{
Expand All @@ -478,15 +478,15 @@ Atomic Memory Instructions
:math:`t\K{.}\ATOMICSTORE~\memarg`
..................................

* The memory :math:`C.\MEMS[0]` must be defined in the context.
* The memory :math:`C.\CMEMS[0]` must be defined in the context.

* The alignment :math:`2^{\memarg.\ALIGN}` must be equal to the :ref:`width <syntax-valtype>` of :math:`t` divided by :math:`8`.

* Then the instruction is valid with type :math:`[\I32~t] \to []`.

.. math::
\frac{
C.\MEMS[0] = \memtype
C.\CMEMS[0] = \memtype
\qquad
2^{\memarg.\ALIGN} = |t|/8
}{
Expand All @@ -499,15 +499,15 @@ Atomic Memory Instructions
:math:`t\K{.}\ATOMICSTORE{N}~\memarg`
............................................

* The memory :math:`C.\MEMS[0]` must be defined in the context.
* The memory :math:`C.\CMEMS[0]` must be defined in the context.

* The alignment :math:`2^{\memarg.\ALIGN}` must be equal to :math:`N/8`.

* Then the instruction is valid with type :math:`[\I32~t] \to []`.

.. math::
\frac{
C.\MEMS[0] = \memtype
C.\CMEMS[0] = \memtype
\qquad
2^{\memarg.\ALIGN} = N/8
}{
Expand All @@ -520,15 +520,15 @@ Atomic Memory Instructions
:math:`t\K{.}\ATOMICRMW\K{.}\atomicop~\memarg`
..............................................

* The memory :math:`C.\MEMS[0]` must be defined in the context.
* The memory :math:`C.\CMEMS[0]` must be defined in the context.

* The alignment :math:`2^{\memarg.\ALIGN}` must be equal to the :ref:`width <syntax-valtype>` of :math:`t` divided by :math:`8`.

* Then the instruction is valid with type :math:`[\I32~t] \to [t]`.

.. math::
\frac{
C.\MEMS[0] = \memtype
C.\CMEMS[0] = \memtype
\qquad
2^{\memarg.\ALIGN} = |t|/8
}{
Expand All @@ -540,15 +540,15 @@ Atomic Memory Instructions
:math:`t\K{.}\ATOMICRMW{N}\K{\_u.}\atomicop~\memarg`
....................................................

* The memory :math:`C.\MEMS[0]` must be defined in the context.
* The memory :math:`C.\CMEMS[0]` must be defined in the context.

* The alignment :math:`2^{\memarg.\ALIGN}` must be equal to :math:`N/8`.

* Then the instruction is valid with type :math:`[\I32~t] \to [t]`.

.. math::
\frac{
C.\MEMS[0] = \memtype
C.\CMEMS[0] = \memtype
\qquad
2^{\memarg.\ALIGN} = N/8
}{
Expand All @@ -560,15 +560,15 @@ Atomic Memory Instructions
:math:`t\K{.}\ATOMICRMW\K{.}\ATOMICCMPXCHG~\memarg`
...................................................

* The memory :math:`C.\MEMS[0]` must be defined in the context.
* The memory :math:`C.\CMEMS[0]` must be defined in the context.

* The alignment :math:`2^{\memarg.\ALIGN}` must be equal to the :ref:`width <syntax-valtype>` of :math:`t` divided by :math:`8`.

* Then the instruction is valid with type :math:`[\I32~t~t] \to [t]`.

.. math::
\frac{
C.\MEMS[0] = \memtype
C.\CMEMS[0] = \memtype
\qquad
2^{\memarg.\ALIGN} = |t|/8
}{
Expand All @@ -580,15 +580,15 @@ Atomic Memory Instructions
:math:`t\K{.}\ATOMICRMW{N}\K{\_u.}\ATOMICCMPXCHG~\memarg`
.........................................................

* The memory :math:`C.\MEMS[0]` must be defined in the context.
* The memory :math:`C.\CMEMS[0]` must be defined in the context.

* The alignment :math:`2^{\memarg.\ALIGN}` must be equal to :math:`N/8`.

* Then the instruction is valid with type :math:`[\I32~t~t] \to [t]`.

.. math::
\frac{
C.\MEMS[0] = \memtype
C.\CMEMS[0] = \memtype
\qquad
2^{\memarg.\ALIGN} = N/8
}{
Expand Down

0 comments on commit 45b2cfe

Please sign in to comment.