lopy4/components/Bliss-master/ntt_variants/test_ntt_red512.c
/*
 * Call f on array a: apply shuffle to ensure input and output are in standard order.
 * - std2rev: true means that f takes input in standard order
 *           false means that f takes input in reverse order
 */
Call f on array a: apply shuffle to ensure input and output are in standard order.
- std2rev: true means that f takes input in standard order
false means that f takes input in reverse order
Call f on array a : apply shuffle to ensure input and output are in standard order . - std2rev : true means that f takes input in standard order false means that f takes input in reverse order
static void apply_ntt512(int32_t *a, void (*f)(int32_t *), bool std2rev) {
  if (std2rev) {
    shift_array(a, 512);
    f(a);
    ntt512_bitrev_shuffle(a);
    normalize(a, 512);
  } else {
    shift_array(a, 512);
    ntt512_bitrev_shuffle(a);
    f(a);
    normalize(a, 512);
  }
}
static void apply_ntt512 ( int32_t * a , void ( * f ) ( int32_t * ) , bool std2rev ) { if ( std2rev ) { shift_array ( a , 512 ) ; f ( a ) ; ntt512_bitrev_shuffle ( a ) ; normalize ( a , 512 ) ; } else { shift_array ( a , 512 ) ; ntt512_bitrev_shuffle ( a ) ; f ( a ) ; normalize ( a , 512 ) ; } }
Call f on array a: apply shuffle to ensure input and output are in standard order.
Call f on array a : apply shuffle to ensure input and output are in standard order .