Skip to main content

Module word

Module word 

Source

Traitsยง

Word ๐Ÿ”’
Width-abstracted machine word holding one row of a bitsliced AES state.

Functionsยง

bitslice_swaps ๐Ÿ”’
Width-generic delta-swap pipeline shared by bitslice and inv_bitslice across every Word impl. The same three-pass sequence inverts itself, so bitslice and inv_bitslice invoke it identically.
double_bits_8_to_16 ๐Ÿ”’
Expand an 8-bit row pattern to a 16-bit row pattern by doubling each bit: input bit i becomes output bits 2i and 2i+1. Branchless SWAR so LLVM folds it to a single 16-bit immediate when b is a constant.
double_bits_16_to_32 ๐Ÿ”’
Expand a 16-bit row pattern to a 32-bit row pattern by doubling each bit: input bit i becomes output bits 2i and 2i+1. Branchless SWAR so LLVM folds it to a single 32-bit immediate when b is a constant.
quad_bits_16_to_64 ๐Ÿ”’
Expand a 16-bit row pattern to a 64-bit row pattern by quadrupling each bit: input bit i becomes output bits 4i, 4i+1, 4i+2, and 4i+3. Branchless SWAR so LLVM folds it to a single 64-bit immediate when b is a constant.