Skip to main content

Module builder

Module builder 

Expand description

Builder for Exprs.

Functionsยง

add
Perform an addition.
and
Perform a bitwise AND.
bit_mask
Computes (1 << N) - 1, which is an integer with the lowest N bits set to 1 and the rest to 0.
c
Returns a constant.
carryless_mul
Perform a carryless multiplication.
concat_bit
Concatenate bits.
div
Perform a division.
hole
Returns a template hole.
is_zero
Returns 1 if the value is 0, otherwise returns 0.
less_than
Returns 1 if a is less than b. Returns 0 if a is equal to or greater than b.
mul
Multiply two values.
not
Perform a bitwise NOT.
one
Returns the constant 1.
or
Perform a bitwise OR.
parity
Computes the parity of the lower 8 bits.
rem
Compute the remainder of a value.
select
Selects a range of bits.
shl
Perform a left shift.
shr
Perform a right shift.
sub
Perform a subtraction.
udiv
Perform an unsigned divide.
urem
Compute the unsigned remainder of a value.
xor
Perform a bitwise XOR.
zero
Returns the constant 0.