lopy4/components/Bliss-master/ntt_variants/ntt.c
/*
 * x and y are assumed to be between 0 and q-1
 */
x and y are assumed to be between 0 and q-1
x and y are assumed to be between 0 and q - 1
static inline int32_t sub_mod(int32_t x, int32_t y) {
  x -= y;
  return x + ((x >> 14) & Q); 
}
static inline int32_t sub_mod ( int32_t x , int32_t y ) { x -= y ; return x + ( ( x >> 14 ) & Q ) ; }
x and y are assumed to be between 0 and q-1
x and y are assumed to be between 0 and q - 1
// return x < 0 ? x + Q : x; // return x + ((x >> 31) & Q); // x + Q * sign(x) // shift by 14 is enough