This implementation was iteratively produced during the work
on various WiFi drivers from individual functions to macro-created
implementations for the various bit sized needed (and then extended
to more for comepleteness). Some of the bit combinations do not
seem to make sense so are left out.
The __bf_shf(x) was obtained from D26681 .
Requested by: manu  Sponsored by: The FreeBSD Foundation