Replace lookup table with bit-by-bit polynomial calculation for
the remaining 1-3 bytes. Direct calculation is faster than table
lookup for such small amounts due to avoiding cache misses and
memory indirection overhead that dominates when processing only
1-3 bytes.
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>