Methods and computer readable media are provided for implementing state
machines in parallel. A control vector is generated from current state
and input bits. This vector is then used to determine the next state and
any output bits for each of a plurality of state machines in parallel. In
some implementations, the Altivec vperm instruction is used to perform a
parallel table look-up.