/* This file is part of the Simba project.  */
uint8_t bits_reverse_8(uint8_t value)
/* This file is part of the Simba project.  */
uint8_t bits_reverse_8(uint8_t value)
{
    value = (((value & 0xaa) >> 1) | ((value & 0x55) << 1));
    value = (((value & 0xcc) >> 2) | ((value & 0x33) << 2));
    return (((value & 0xf0) >> 4) | ((value & 0x0f) << 4));
}