lopy4/components/Bliss-master/tools/rev_shoup_red_scaled_table.c
/*
 * Search for k such that q-1 = k * a power of 2
 */
Search for k such that q-1 = k * a power of 2
Search for k such that q - 1 = k * a power of 2
static uint32_t find_k(uint32_t q) {
  uint32_t x;
  x = q-1;
  while ((x & 1) == 0) {
    x >>= 1;
  }
  return x;
}
static uint32_t find_k ( uint32_t q ) { uint32_t x ; x = q - 1 ; while ( ( x & 1 ) == 0 ) { x >>= 1 ; } return x ; }
Search for k such that q-1 = k * a power of 2
Search for k such that q - 1 = k * a power of 2