/* Function for swapping bits in a 32 bit word for each byte individually. 
The bits are swapped as follows:  */
static uint32_t bytewise_bitswap(uint32_t inp)
/* Function for swapping bits in a 32 bit word for each byte individually. 
The bits are swapped as follows:  */
static uint32_t bytewise_bitswap(uint32_t inp)
{
      return (swap_bits(inp >> 24) << 24)
           | (swap_bits(inp >> 16) << 16)
           | (swap_bits(inp >> 8) << 8)
           | (swap_bits(inp));
}