lopy4/components/Bliss-master/include/modulii.h
/*
 * Simple implementation of modq
 * (could optimize, cf. tests/static/mod.c)
 */
Simple implementation of modq
(could optimize, cf.
Simple implementation of modq ( could optimize cf .
static inline int32_t smodq(int32_t x, int32_t q){
  assert(q > 0);
  int32_t y = x % q;
  return y + ((y >> 31) & q); 
}
static inline int32_t smodq ( int32_t x , int32_t q ) { assert ( q > 0 ) ; int32_t y = x % q ; return y + ( ( y >> 31 ) & q ) ; }
Simple implementation of modq
 (could optimize, cf.
Simple implementation of modq ( could optimize cf .