lopy4/components/Bliss-master/tools/rev_shoup_red_scaled_table.c
/*
 * Bitreverse of i, interpreted as a k-bit integer
 */
Bitreverse of i, interpreted as a k-bit integer
Bitreverse of i interpreted as a k - bit integer
static uint32_t reverse(uint32_t i, uint32_t k) {
  uint32_t x, b, j;
  x = 0;
  for (j=0; j<k; j++) {
    b = i & 1;
    x = (x<<1) | b;
    i >>= 1;
  }
  return x;
}
static uint32_t reverse ( uint32_t i , uint32_t k ) { uint32_t x , b , j ; x = 0 ; for ( j = 0 ; j < k ; j ++ ) { b = i & 1 ; x = ( x << 1 ) | b ; i >>= 1 ; } return x ; }
Bitreverse of i, interpreted as a k-bit integer
Bitreverse of i interpreted as a k - bit integer