benchmark/fourier/parallel/pi/xeonphi/openmp/fourier-parallel-pi-xeonphi-openmp.c
void verify_results(tr_t* t){

  // since the input is 0,1,0,1,0,1,0,1; the output should be 4,0,0,0,-4,0,0,0.
  print_out(
    (t->out[0].re == 4 && t->out[0].im == 0 &&
     t->out[1].re == 0 && t->out[1].im == 0 &&
     t->out[2].re == 0 && t->out[2].im == 0 &&
     t->out[3].re == 0 && t->out[3].im == 0 &&
     t->out[4].re ==-4 && t->out[4].im == 0 &&
     t->out[5].re == 0 && t->out[5].im == 0 &&
     t->out[6].re == 0 && t->out[6].im == 0 &&
     t->out[7].re == 0 && t->out[7].im == 0)
    ? "Output is correct. Test passed.\n\n" 
    : "Output is incorrect! Test failed.\n\n");

  return;
}
// This function verifies that the output of the transform is correct.
//
//   t:                      (ptr to) tr_t object to use.
//
This function verifies that the output of the transform is correct.
t:                      (ptr to) tr_t object to use.
This function verifies that the output of the transform is correct . t : ( ptr to ) tr_t object to use .
void verify_results(tr_t* t){
  print_out(
    (t->out[0].re == 4 && t->out[0].im == 0 &&
     t->out[1].re == 0 && t->out[1].im == 0 &&
     t->out[2].re == 0 && t->out[2].im == 0 &&
     t->out[3].re == 0 && t->out[3].im == 0 &&
     t->out[4].re ==-4 && t->out[4].im == 0 &&
     t->out[5].re == 0 && t->out[5].im == 0 &&
     t->out[6].re == 0 && t->out[6].im == 0 &&
     t->out[7].re == 0 && t->out[7].im == 0)
    ? "Output is correct. Test passed.\n\n" 
    : "Output is incorrect! Test failed.\n\n");
  return;
}
void verify_results ( tr_t * t ) { print_out ( ( t -> out [ 0 ] . re == 4 && t -> out [ 0 ] . im == 0 && t -> out [ 1 ] . re == 0 && t -> out [ 1 ] . im == 0 && t -> out [ 2 ] . re == 0 && t -> out [ 2 ] . im == 0 && t -> out [ 3 ] . re == 0 && t -> out [ 3 ] . im == 0 && t -> out [ 4 ] . re == -4 && t -> out [ 4 ] . im == 0 && t -> out [ 5 ] . re == 0 && t -> out [ 5 ] . im == 0 && t -> out [ 6 ] . re == 0 && t -> out [ 6 ] . im == 0 && t -> out [ 7 ] . re == 0 && t -> out [ 7 ] . im == 0 ) ? " \n \n " : " \n \n " ) ; return ; }
This function verifies that the output of the transform is correct.
This function verifies that the output of the transform is correct .
// since the input is 0,1,0,1,0,1,0,1; the output should be 4,0,0,0,-4,0,0,0.