Expand description
§Arithmetic
This module defines jets that compute arithmetic functions.
Functions§
- Add two integers and return the carry.
- Add two integers and return the carry.
- Add two integers and return the carry.
- Add two integers and return the carry.
- Decrement an integer by one and return the borrow bit.
- Decrement an integer by one and return the borrow bit.
- Decrement an integer by one and return the borrow bit.
- Decrement an integer by one and return the borrow bit.
- Divide the first integer by the second integer, and return the remainder.
- Divide the first integer by the second integer, and return the remainder.
- Divide the first integer by the second integer, and return the remainder.
- Divide the first integer by the second integer, and return the remainder.
- Divide the 128-bit integer
aby the 64-bit integerb. Return a tuple of the quotientqand the remainerr. - Divide the first integer by the second integer.
- Divide the first integer by the second integer.
- Divide the first integer by the second integer.
- Divide the first integer by the second integer.
- Check if the first integer is divisible by the second integer.
- Check if the first integer is divisible by the second integer.
- Check if the first integer is divisible by the second integer.
- Check if the first integer is divisible by the second integer.
- Add two integers. Take a carry-in and return a carry-out.
- Add two integers. Take a carry-in and return a carry-out.
- Add two integers. Take a carry-in and return a carry-out.
- Add two integers. Take a carry-in and return a carry-out.
- Decrement an integer by one. Take a borrow-in and return a borrow-out.
- Decrement an integer by one. Take a borrow-in and return a borrow-out.
- Decrement an integer by one. Take a borrow-in and return a borrow-out.
- Decrement an integer by one. Take a borrow-in and return a borrow-out.
- Increment an integer by one. Take a carry-in and return a carry-out.
- Increment an integer by one. Take a carry-in and return a carry-out.
- Increment an integer by one. Take a carry-in and return a carry-out.
- Increment an integer by one. Take a carry-in and return a carry-out.
- Helper for multiplying integers. Take the product of the first pair of integers and add the sum of the second pair.
- Helper for multiplying integers. Take the product of the first pair of integers and add the sum of the second pair.
- Helper for multiplying integers. Take the product of the first pair of integers and add the sum of the second pair.
- Helper for multiplying integers. Take the product of the first pair of integers and add the sum of the second pair.
- Subtract the second integer from the first integer. Take a borrow-in and return a borrow-out.
- Subtract the second integer from the first integer. Take a borrow-in and return a borrow-out.
- Subtract the second integer from the first integer. Take a borrow-in and return a borrow-out.
- Subtract the second integer from the first integer. Take a borrow-in and return a borrow-out.
- Increment an integer by one and return the carry.
- Increment an integer by one and return the carry.
- Increment an integer by one and return the carry.
- Increment an integer by one and return the carry.
- Check if an integer is one.
- Check if an integer is one.
- Check if an integer is one.
- Check if an integer is one.
- Check if an integer is zero.
- Check if an integer is zero.
- Check if an integer is zero.
- Check if an integer is zero.
- Check if an integer is less than or equal to another integer.
- Check if an integer is less than or equal to another integer.
- Check if an integer is less than or equal to another integer.
- Check if an integer is less than or equal to another integer.
- Check if an integer is less than another integer.
- Check if an integer is less than another integer.
- Check if an integer is less than another integer.
- Check if an integer is less than another integer.
- Return the bigger of two integers.
- Return the bigger of two integers.
- Return the bigger of two integers.
- Return the bigger of two integers.
- Return the median of three integers.
- Return the median of three integers.
- Return the median of three integers.
- Return the median of three integers.
- Return the smaller of two integers.
- Return the smaller of two integers.
- Return the smaller of two integers.
- Return the smaller of two integers.
- Compute the remainder after dividing both integers.
- Compute the remainder after dividing both integers.
- Compute the remainder after dividing both integers.
- Compute the remainder after dividing both integers.
- Multiply two integers. The output is a 16-bit integer.
- Multiply two integers. The output is a 32-bit integer.
- Multiply two integers. The output is a 64-bit integer.
- Multiply two integers. The output is a 128-bit integer.
- Negate the integer (modulo 2⁸) and return the borrow bit.
- Negate the integer (modulo 2¹⁶) and return the borrow bit.
- Negate the integer (modulo 2³²) and return the borrow bit.
- Negate the integer (modulo 2⁶⁴) and return the borrow bit.
- Return 1 as an 8-bit integer.
- Return 1 as a 16-bit integer.
- Return 1 as a 32-bit integer.
- Return 1 as a 64-bit integer.
- Subtract the second integer from the first integer, and return the borrow bit.
- Subtract the second integer from the first integer, and return the borrow bit.
- Subtract the second integer from the first integer, and return the borrow bit.
- Subtract the second integer from the first integer, and return the borrow bit.