Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions p4-16/spec/P4-16-spec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3636,6 +3636,13 @@ to bit-strings of the same width:
and is computed by truncating the result to the output's width.
P4 architectures may impose additional restrictions --- e.g., they may only
allow multiplication by a non-negative integer power of two.
* Truncating integer division, denoted by `/`.
The denominator must be positive.
The result has the same width as the operands. Similar to multiplication,
P4 architectures may impose additional restrictions.
* Modulo between positive values, denoted by `%`.
The result has the same width as the operands. Similar to multiplication,
P4 architectures may impose additional restrictions.
* Bitwise "and" between two bit-strings of the same width, denoted by `&`.
* Bitwise "or" between two bit-strings of the same width, denoted by `|`.
* Bitwise "complement" of a single bit-string, denoted by `~`.
Expand Down
Loading