Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ double abs2( double x ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
double x[ 100 ];
double *x = (double *)malloc( 100 * sizeof(double) );
if ( x == NULL ) {
return 0.0;
}
double elapsed;
double y;
double t;
Expand All @@ -121,7 +124,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ static double rand_double( void ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
double x[ 100 ];
double *x = (double *)malloc( 100 * sizeof(double) );
if ( x == NULL ) {
return 0.0;
}
double elapsed;
double y;
double t;
Expand All @@ -112,7 +115,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ float abs2f( float x ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
float x[ 100 ];
float *x = (float *)malloc( 100 * sizeof(float) );
if ( x == NULL ) {
return 0.0;
}
double elapsed;
double t;
float y;
Expand All @@ -121,7 +124,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ static float rand_float( void ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
float x[ 100 ];
float *x = (float *)malloc( 100 * sizeof(float) );
if ( x == NULL ) {
return 0.0;
}
double elapsed;
double t;
float y;
Expand All @@ -112,7 +115,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ static float rand_float( void ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
float x[ 100 ];
float *x = (float *)malloc( 100 * sizeof(float) );
if ( x == NULL ) {
return 0.0;
}
double elapsed;
double t;
float y;
Expand All @@ -111,7 +114,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ static float rand_float( void ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
float x[ 100 ];
float *x = (float *)malloc( 100 * sizeof(float) );
if ( x == NULL ) {
return 0.0;
}
double elapsed;
double t;
float y;
Expand All @@ -116,7 +119,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ static float rand_float( void ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
float x[ 100 ];
float *x = (float *)malloc( 100 * sizeof(float) );
if ( x == NULL ) {
return 0.0;
}
double elapsed;
double t;
float y;
Expand All @@ -113,7 +116,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ static float random_uniform( const float min, const float max ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
float x[ 100 ];
float *x = (float *)malloc( 100 * sizeof(float) );
if ( x == NULL ) {
return 0.0;
}
double elapsed;
double t;
float y;
Expand All @@ -114,7 +117,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ static double rand_double( void ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
double x[ 100 ];
double *x = (double *)malloc( 100 * sizeof(double) );
if ( x == NULL ) {
return 0.0;
}
double elapsed;
double y;
double t;
Expand All @@ -111,7 +114,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ static double rand_double( void ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
double x[ 100 ];
double *x = (double *)malloc( 100 * sizeof(double) );
if ( x == NULL ) {
return 0.0;
}
double elapsed;
double y;
double t;
Expand All @@ -116,7 +119,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ static double rand_double( void ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
double x[ 100 ];
double *x = (double *)malloc( 100 * sizeof(double) );
if ( x == NULL ) {
return 0.0;
}
double elapsed;
double y;
double t;
Expand All @@ -112,7 +115,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ static double rand_double( void ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
double x[ 100 ];
double *x = (double *)malloc( 100 * sizeof(double) );
if ( x == NULL ) {
return 0.0;
}
double elapsed;
double y;
double t;
Expand All @@ -112,7 +115,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ static float rand_float( void ) {
static double benchmark( void ) {
double elapsed;
double t;
float x[ 100 ];
float *x = (float *)malloc( 100 * sizeof(float) );
if ( x == NULL ) {
return 0.0;
}
float y;
int i;

Expand All @@ -112,7 +115,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ static float rand_float( void ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
float x[ 100 ];
float *x = (float *)malloc( 100 * sizeof(float) );
if ( x == NULL ) {
return 0.0;
}
double elapsed;
double t;
float y;
Expand All @@ -112,7 +115,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ static double rand_double( void ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
double x[ 100 ];
double *x = (double *)malloc( 100 * sizeof(double) );
if ( x == NULL ) {
return 0.0;
}
double elapsed;
double y;
double t;
Expand All @@ -111,7 +114,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ static double rand_double( void ) {
* @return elapsed time in seconds
*/
static double benchmark( void ) {
double x[ 100 ];
double *x = (double *)malloc( 100 * sizeof(double) );
if ( x == NULL ) {
return 0.0;
}
double elapsed;
double y;
double t;
Expand All @@ -116,7 +119,8 @@ static double benchmark( void ) {
if ( y != y ) {
printf( "should not return NaN\n" );
}
return elapsed;
free( x );
return elapsed;
}

/**
Expand Down
Loading
Loading