bit.bswap(value)

Swap the upper 4 bits with the lower 4 bits.