Skip to content

Commit

Permalink
[spec] Fix irem_s (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg authored Mar 6, 2018
1 parent ffae259 commit e72b2e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion document/core/exec/numerics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ The integer result of predicates -- i.e., :ref:`tests <syntax-testop>` and :ref:
.. math::
\begin{array}{@{}lcll}
\irems_N(i_1, 0) &=& \{\} \\
\irems_N(i_1, i_2) &=& \signed_N^{-1}(i_1 - i_2 \cdot \trunc(\signed_N(i_1) / \signed_N(i_2))) \\
\irems_N(i_1, i_2) &=& \signed_N^{-1}(j_1 - j_2 \cdot \trunc(j_1 / j_2)) \\
&& (\where j_1 = \signed_N(i_1) \wedge j_2 = \signed_N(i_2)) \\
\end{array}
.. note::
Expand Down

0 comments on commit e72b2e6

Please sign in to comment.