sources/middle-layer/other/crc.cpp
/**
 * @brief set of helpers bits/bytes reflecting
 */
@brief set of helpers bits/bytes reflecting
@brief set of helpers bits / bytes reflecting
static uint64_t bit_byte_swap_64(uint64_t x) {
    uint64_t y = bit_rev_8[x >> 56];
    y |= ((uint64_t) bit_rev_8[(x >> 48) & 0xFF]) << 8;
    y |= ((uint64_t) bit_rev_8[(x >> 40) & 0xFF]) << 16;
    y |= ((uint64_t) bit_rev_8[(x >> 32) & 0xFF]) << 24;
    y |= ((uint64_t) bit_rev_8[(x >> 24) & 0xFF]) << 32;
    y |= ((uint64_t) bit_rev_8[(x >> 16) & 0xFF]) << 40;
    y |= ((uint64_t) bit_rev_8[(x >> 8) & 0xFF]) << 48;
    y |= ((uint64_t) bit_rev_8[(x >> 0) & 0xFF]) << 56;
    return y;
}
static uint64_t bit_byte_swap_64 ( uint64_t x ) { uint64_t y = bit_rev_8 [ x >> 56 ] ; y |= ( ( uint64_t ) bit_rev_8 [ ( x >> 48 ) & 0xFF ] ) << 8 ; y |= ( ( uint64_t ) bit_rev_8 [ ( x >> 40 ) & 0xFF ] ) << 16 ; y |= ( ( uint64_t ) bit_rev_8 [ ( x >> 32 ) & 0xFF ] ) << 24 ; y |= ( ( uint64_t ) bit_rev_8 [ ( x >> 24 ) & 0xFF ] ) << 32 ; y |= ( ( uint64_t ) bit_rev_8 [ ( x >> 16 ) & 0xFF ] ) << 40 ; y |= ( ( uint64_t ) bit_rev_8 [ ( x >> 8 ) & 0xFF ] ) << 48 ; y |= ( ( uint64_t ) bit_rev_8 [ ( x >> 0 ) & 0xFF ] ) << 56 ; return y ; }
@brief set of helpers bits/bytes reflecting
@brief set of helpers bits / bytes reflecting