int main( int argc, char* argv[] )
{
  int iterations = 1;
  if (argc > 1)
    iterations = atoi( argv[1] );

  int size = 10;
  uint dest[size*size];

  int i;
  for ( i = 0; i < size*size; i++ )
    dest[i] = 0;

  int temp = 0;

  for ( i = 0; i < iterations; i++ ) {
    test_stats_on( temp );
    masked_filter_scalar( dest, mask, src, size, size, g_coeff );
    test_stats_off( temp );
  }

  verify_results( dest, ref, size );

  return 0;
}
int main( int argc, char* argv[] )
{

    int size = 100;
    int dest[size];

    int i;
    for ( i = 0; i < size; i++ )
      dest[i] = 0;

    test_stats_on();
    vvadd_scalar( dest, src0, src1, size );
    test_stats_off();

    verify_results( dest, ref, size );

    return 0;
}
int main( int argc, char* argv[] )
{

    int size = 10;
    uint dest[size*size];

    int i;
    for ( i = 0; i < size*size; i++ )
      dest[i] = 0;

    int temp = 0;

    test_stats_on( temp );
    masked_filter_scalar( dest, mask, src, size, size, g_coeff );
    test_stats_off( temp );

    verify_results( dest, ref, size );

    return 0;

}
Beispiel #4
0
int main( int argc, char* argv[] )
{

    int size = C;
    int dest[size];

    int i;
    for ( i = 0; i < size; i++ )
      dest[i] = 0;

    int temp = 0;

    // warmup
    mvmult_scalar( dest, (int*) matrix, vector, R, C );

    test_stats_on( temp );
    for ( i = 0; i < 1; i++ )
      mvmult_scalar( dest, (int*) matrix, vector, R, C );
    test_stats_off( temp );

    verify_results( dest, ref, size );

    return 0;
}