Skip to content

Commit 81af4e0

Browse files
committed
Auto-generated commit
1 parent a020cf6 commit 81af4e0

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Makefile linguist-vendored
6060
*.mk linguist-vendored
6161
*.jl linguist-vendored
6262
*.py linguist-vendored
63+
*.R linguist-vendored
6364

6465
# Configure files which should be included in GitHub language statistics:
6566
docs/types/*.d.ts -linguist-documentation

benchmark/c/benchmark.length.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
* limitations under the License.
1717
*/
1818

19-
/**
20-
* Benchmark `dnannsumkbn2`.
21-
*/
2219
#include "stdlib/blas/ext/base/dnannsumkbn2.h"
2320
#include <stdlib.h>
2421
#include <stdio.h>
@@ -35,7 +32,7 @@
3532
/**
3633
* Prints the TAP version.
3734
*/
38-
void print_version() {
35+
void print_version( void ) {
3936
printf( "TAP version 13\n" );
4037
}
4138

@@ -74,7 +71,7 @@ void print_results( int iterations, double elapsed ) {
7471
*
7572
* @return clock time
7673
*/
77-
double tic() {
74+
double tic( void ) {
7875
struct timeval now;
7976
gettimeofday( &now, NULL );
8077
return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
@@ -85,7 +82,7 @@ double tic() {
8582
*
8683
* @return random number
8784
*/
88-
double rand_double() {
85+
double rand_double( void ) {
8986
int r = rand();
9087
return (double)r / ( (double)RAND_MAX + 1.0 );
9188
}
@@ -113,6 +110,7 @@ double benchmark( int iterations, int len ) {
113110
}
114111
}
115112
v = 0.0;
113+
n = 0;
116114
t = tic();
117115
for ( i = 0; i < iterations; i++ ) {
118116
v = stdlib_strided_dnannsumkbn2( len, x, 1, &n );

0 commit comments

Comments
 (0)