Expand description
§Multi-bit logic
This module defines jets that operate on strings of bits.
Functions§
- Check if the value is
u8::MAX. - Check if the value is
u16::MAX. - Check if the value is
u32::MAX. - Check if the value is
u64::MAX. - Bitwise AND of two 1-bit values.
- Bitwise AND of two 8-bit values.
- Bitwise AND of two 16-bit values.
- Bitwise AND of two 32-bit values
- Bitwise AND of two 64-bit values
- Bitwise CHOICE of a bit and two 1-bit values. If the bit is true, then take the first value, else take the second value.
- Bitwise CHOICE of a bit and two 8-bit values. If the bit is true, then take the first value, else take the second value.
- Bitwise CHOICE of a bit and two 16-bit values. If the bit is true, then take the first value, else take the second value.
- Bitwise CHOICE of a bit and two 32-bit values. If the bit is true, then take the first value, else take the second value.
- Bitwise CHOICE of a bit and two 64-bit values. If the bit is true, then take the first value, else take the second value.
- Bitwise NOT of a 1-bit value.
- Bitwise NOT of an 8-bit value.
- Bitwise NOT of a 16-bit value.
- Bitwise NOT of a 32-bit value.
- Bitwise NOT of a 64-bit value.
- Check if two 1-bit values are equal.
- Check if two 8-bit values are equal.
- Check if two 16-bit values are equal.
- Check if two 32-bit values are equal.
- Check if two 64-bit values are equal.
- Check if two 256-bit values are equal.
- Helper for left-shifting bits. The bits are shifted from a 1-bit value into a 8-bit value. Return the shifted value and the 1 bit that was shifted out.
- Helper for left-shifting bits. The bits are shifted from a 2-bit value into a 8-bit value. Return the shifted value and the 2 bits that were shifted out.
- Helper for left-shifting bits. The bits are shifted from a 4-bit value into a 8-bit value. Return the shifted value and the 4 bits that were shifted out.
- Helper for left-shifting bits. The bits are shifted from a 1-bit value into a 16-bit value. Return the shifted value and the 1 bit that was shifted out.
- Helper for left-shifting bits. The bits are shifted from a 2-bit value into a 16-bit value. Return the shifted value and the 2 bits that were shifted out.
- Helper for left-shifting bits. The bits are shifted from a 4-bit value into a 16-bit value. Return the shifted value and the 4 bits that were shifted out.
- Helper for left-shifting bits. The bits are shifted from a 8-bit value into a 16-bit value. Return the shifted value and the 8 bits that were shifted out.
- Helper for left-shifting bits. The bits are shifted from a 1-bit value into a 32-bit value. Return the shifted value and the 1 bit that was shifted out.
- Helper for left-shifting bits. The bits are shifted from a 2-bit value into a 32-bit value. Return the shifted value and the 2 bits that were shifted out.
- Helper for left-shifting bits. The bits are shifted from a 4-bit value into a 32-bit value. Return the shifted value and the 4 bits that were shifted out.
- Helper for left-shifting bits. The bits are shifted from a 8-bit value into a 32-bit value. Return the shifted value and the 8 bits that were shifted out.
- Helper for left-shifting bits. The bits are shifted from a 16-bit value into a 32-bit value. Return the shifted value and the 16 bits that were shifted out.
- Helper for left-shifting bits. The bits are shifted from a 1-bit value into a 64-bit value. Return the shifted value and the 1 bit that was shifted out.
- Helper for left-shifting bits. The bits are shifted from a 2-bit value into a 64-bit value. Return the shifted value and the 2 bits that were shifted out.
- Helper for left-shifting bits. The bits are shifted from a 4-bit value into a 64-bit value. Return the shifted value and the 4 bits that were shifted out.
- Helper for left-shifting bits. The bits are shifted from a 8-bit value into a 64-bit value. Return the shifted value and the 8 bits that were shifted out.
- Helper for left-shifting bits. The bits are shifted from a 16-bit value into a 64-bit value. Return the shifted value and the 16 bits that were shifted out.
- Helper for left-shifting bits. The bits are shifted from a 32-bit value into a 64-bit value. Return the shifted value and the 32 bits that were shifted out.
- Helper for right-shifting bits. The bits are shifted from a 1-bit value into a 8-bit value. Return the shifted value and the 1 bit that was shifted out.
- Helper for right-shifting bits. The bits are shifted from a 2-bit value into a 8-bit value. Return the shifted value and the 2 bits that were shifted out.
- Helper for right-shifting bits. The bits are shifted from a 4-bit value into a 8-bit value. Return the shifted value and the 4 bits that were shifted out.
- Helper for right-shifting bits. The bits are shifted from a 1-bit value into a 16-bit value. Return the shifted value and the 1 bit that was shifted out.
- Helper for right-shifting bits. The bits are shifted from a 2-bit value into a 16-bit value. Return the shifted value and the 2 bits that were shifted out.
- Helper for right-shifting bits. The bits are shifted from a 4-bit value into a 16-bit value. Return the shifted value and the 4 bits that were shifted out.
- Helper for right-shifting bits. The bits are shifted from a 8-bit value into a 16-bit value. Return the shifted value and the 8 bits that were shifted out.
- Helper for right-shifting bits. The bits are shifted from a 1-bit value into a 32-bit value. Return the shifted value and the 1 bit that was shifted out.
- Helper for right-shifting bits. The bits are shifted from a 2-bit value into a 32-bit value. Return the shifted value and the 2 bits that were shifted out.
- Helper for right-shifting bits. The bits are shifted from a 4-bit value into a 32-bit value. Return the shifted value and the 4 bits that were shifted out.
- Helper for right-shifting bits. The bits are shifted from a 8-bit value into a 32-bit value. Return the shifted value and the 8 bits that were shifted out.
- Helper for right-shifting bits. The bits are shifted from a 16-bit value into a 32-bit value. Return the shifted value and the 16 bits that were shifted out.
- Helper for right-shifting bits. The bits are shifted from a 1-bit value into a 64-bit value. Return the shifted value and the 1 bit that was shifted out.
- Helper for right-shifting bits. The bits are shifted from a 2-bit value into a 64-bit value. Return the shifted value and the 2 bits that were shifted out.
- Helper for right-shifting bits. The bits are shifted from a 4-bit value into a 64-bit value. Return the shifted value and the 4 bits that were shifted out.
- Helper for right-shifting bits. The bits are shifted from a 8-bit value into a 64-bit value. Return the shifted value and the 8 bits that were shifted out.
- Helper for right-shifting bits. The bits are shifted from a 16-bit value into a 64-bit value. Return the shifted value and the 16 bits that were shifted out.
- Helper for right-shifting bits. The bits are shifted from a 32-bit value into a 64-bit value. Return the shifted value and the 32 bits that were shifted out.
- Return
u1::MAX= 1. - Return
u8::MAX. - Return
u16::MAX. - Return
u32::MAX. - Return
u64::MAX. - Extend a 1-bit value to an 8-bit value by padding its left with the MSB.
- Extend a 1-bit value to a 16-bit value by padding its left with the MSB.
- Extend a 1-bit value to a 32-bit value by padding its left with the MSB.
- Extend a 1-bit value to a 64-bit value by padding its left with the MSB.
- Extend an 8-bit value to a 16-bit value by padding its left with the MSB.
- Extend an 8-bit value to a 32-bit value by padding its left with the MSB.
- Extend an 8-bit value to a 64-bit value by padding its left with the MSB.
- Extend a 16-bit value to a 32-bit value by padding its left with the MSB.
- Extend a 16-bit value to a 64-bit value by padding its left with the MSB.
- Extend a 16-bit value to a 64-bit value by padding its left with the MSB.
- Extend a 1-bit value to an 8-bit value by padding its left with ones.
- Extend a 1-bit value to a 16-bit value by padding its left with ones.
- Extend a 1-bit value to a 32-bit value by padding its left with ones.
- Extend a 1-bit value to a 64-bit value by padding its left with ones.
- Extend an 8-bit value to a 16-bit value by padding its left with ones.
- Extend an 8-bit value to a 32-bit value by padding its left with ones.
- Extend a 1-bit value to a 64-bit value by padding its left with ones.
- Extend a 16-bit value to a 32-bit value by padding its left with ones.
- Extend a 16-bit value to a 64-bit value by padding its left with ones.
- Extend a 32-bit value to a 64-bit value by padding its left with ones.
- Extend a 1-bit value to an 8-bit value by padding its left with zeroes.
- Extend a 1-bit value to a 16-bit value by padding its left with zeroes.
- Extend a 1-bit value to a 32-bit value by padding its left with zeroes.
- Extend a 1-bit value to a 64-bit value by padding its left with zeroes.
- Extend an 8-bit value to a 16-bit value by padding its left with zeroes.
- Extend an 8-bit value to a 32-bit value by padding its left with zeroes.
- Extend an 8-bit value to a 64-bit value by padding its left with zeroes.
- Extend a 16-bit value to a 32-bit value by padding its left with zeroes.
- Extend a 16-bit value to a 64-bit value by padding its left with zeroes.
- Extend a 32-bit value to a 64-bit value by padding its left with zeroes.
- Left-rotate an 8-bit value by the given amount.
- Left-rotate a 16-bit value by the given amount.
- Left-rotate a 32-bit value by the given amount.
- Left-rotate a 64-bit value by the given amount.
- Left-shift an 8-bit value by the given amount. Bits are filled with zeroes.
- Left-shift a 16-bit value by the given amount. Bits are filled with zeroes.
- Left-shift a 32-bit value by the given amount. Bits are filled with zeroes.
- Left-shift a 64-bit value by the given amount. Bits are filled with zeroes.
- Left-shift an 8-bit value by the given amount. Bits are filled with the given bit.
- Left-shift a 16-bit value by the given amount. Bits are filled with the given bit.
- Left-shift a 32-bit value by the given amount. Bits are filled with the given bit.
- Left-shift a 64-bit value by the given amount. Bits are filled with the given bit.
- Return the most significant 1 bits of an 8-bit value.
- Return the most significant 1 bits of an 8-bit value.
- Return the most significant 1 bits of an 8-bit value.
- Return the most significant 1 bit of a 16-bit value.
- Return the most significant 2 bits of a 16-bit value.
- Return the most significant 4 bits of a 16-bit value.
- Return the most significant 8 bits of a 16-bit value.
- Return the most significant 1 bit of a 32-bit value.
- Return the most significant 2 bits of a 32-bit value.
- Return the most significant 4 bits of a 32-bit value.
- Return the most significant 8 bits of a 32-bit value.
- Return the most significant 16 bits of a 32-bit value.
- Return the most significant 1 bits of a 64-bit value.
- Return the most significant 2 bits of a 64-bit value.
- Return the most significant 4 bits of a 64-bit value.
- Return the most significant 8 bits of a 64-bit value.
- Return the most significant 16 bits of a 64-bit value.
- Return the most significant 32 bits of a 64-bit value.
- Return
u1::MIN= 1. - Return
u8::MIN. - Return
u16::MIN. - Return
u32::MIN. - Return
u64::MIN. - Bitwise MAJORITY of three 1-bit values. The output bit is false if two or more input bits are false, and true otherwise.
- Bitwise MAJORITY of three 1-bit values. The output bit is false if two or more input bits are false, and true otherwise.
- Bitwise MAJORITY of three 1-bit values. The output bit is false if two or more input bits are false, and true otherwise.
- Bitwise MAJORITY of three 1-bit values. The output bit is false if two or more input bits are false, and true otherwise.
- Bitwise MAJORITY of three 1-bit values. The output bit is false if two or more input bits are false, and true otherwise.
- Bitwise OR of two 1-bit values.
- Bitwise OR of two 8-bit values.
- Bitwise OR of two 16-bit values.
- Bitwise OR of two 32-bit values.
- Bitwise OR of two 64-bit values.
- Extend an 8-bit value to a 16-bit value by padding its right with the MSB.
- Extend an 8-bit value to a 32-bit value by padding its right with the MSB.
- Extend an 8-bit value to a 64-bit value by padding its right with the MSB.
- Extend a 16-bit value to a 32-bit value by padding its right with the MSB.
- Extend a 16-bit value to a 64-bit value by padding its right with the MSB.
- Extend a 16-bit value to a 64-bit value by padding its right with the MSB.
- Extend a 1-bit value to an 8-bit value by padding its right with ones.
- Extend a 1-bit value to a 16-bit value by padding its right with ones.
- Extend a 1-bit value to a 32-bit value by padding its right with ones.
- Extend a 1-bit value to a 64-bit value by padding its right with ones.
- Extend an 8-bit value to a 16-bit value by padding its right with ones.
- Extend an 8-bit value to a 32-bit value by padding its right with ones.
- Extend a 1-bit value to a 64-bit value by padding its right with ones.
- Extend a 16-bit value to a 32-bit value by padding its right with ones.
- Extend a 16-bit value to a 64-bit value by padding its right with ones.
- Extend a 32-bit value to a 64-bit value by padding its right with ones.
- Extend a 1-bit value to an 8-bit value by padding its right with zeroes.
- Extend a 1-bit value to a 16-bit value by padding its right with zeroes.
- Extend a 1-bit value to a 32-bit value by padding its right with zeroes.
- Extend a 1-bit value to a 64-bit value by padding its right with zeroes.
- Extend an 8-bit value to a 16-bit value by padding its right with zeroes.
- Extend an 8-bit value to a 32-bit value by padding its right with zeroes.
- Extend an 8-bit value to a 64-bit value by padding its right with zeroes.
- Extend a 16-bit value to a 32-bit value by padding its right with zeroes.
- Extend a 16-bit value to a 64-bit value by padding its right with zeroes.
- Extend a 32-bit value to a 64-bit value by padding its right with zeroes.
- Right-rotate an 8-bit value by the given amount.
- Right-rotate a 16-bit value by the given amount.
- Right-rotate a 32-bit value by the given amount.
- Right-rotate a 64-bit value by the given amount.
- Right-shift an 8-bit value by the given amount. Bits are filled with zeroes.
- Right-shift a 16-bit value by the given amount. Bits are filled with zeroes.
- Right-shift a 32-bit value by the given amount. Bits are filled with zeroes.
- Right-shift a 64-bit value by the given amount. Bits are filled with zeroes.
- Right-shift an 8-bit value by the given amount. Bits are filled with the given bit.
- Right-shift a 16-bit value by the given amount. Bits are filled with the given bit.
- Right-shift a 32-bit value by the given amount. Bits are filled with the given bit.
- Right-shift a 64-bit value by the given amount. Bits are filled with the given bit.
- Return the least significant 1 bits of an 8-bit value.
- Return the least significant 1 bits of an 8-bit value.
- Return the least significant 1 bits of an 8-bit value.
- Return the least significant 1 bit of a 16-bit value.
- Return the least significant 2 bits of a 16-bit value.
- Return the least significant 4 bits of a 16-bit value.
- Return the least significant 8 bits of a 16-bit value.
- Return the least significant 1 bit of a 32-bit value.
- Return the least significant 2 bits of a 32-bit value.
- Return the least significant 4 bits of a 32-bit value.
- Return the least significant 8 bits of a 32-bit value.
- Return the least significant 16 bits of a 32-bit value.
- Return the least significant 1 bits of a 64-bit value.
- Return the least significant 2 bits of a 64-bit value.
- Return the least significant 4 bits of a 64-bit value.
- Return the least significant 8 bits of a 64-bit value.
- Return the least significant 16 bits of a 64-bit value.
- Return the least significant 32 bits of a 64-bit value.
- Check if a 1-bit value is nonzero.
- Check if an 8-bit value is nonzero.
- Check if a 16-bit value is nonzero.
- Check if a 32-bit value is nonzero.
- Check if a 64-bit value is nonzero.
- Bitwise XOR of two 1-bit values.
- Bitwise XOR of two 8-bit values.
- Bitwise XOR of two 16-bit values.
- Bitwise XOR of two 32-bit values.
- Bitwise XOR of two 64-bit values.
- Bitwise XOR of three 1-bit values.
- Bitwise XOR of three 8-bit values.
- Bitwise XOR of three 16-bit values.
- Bitwise XOR of three 32-bit values.
- Bitwise XOR of three 64-bit values.