IcBench: Benchmark App
This commit is contained in:
@ -1124,10 +1124,10 @@ unsigned befgen(unsigned char **_in, int fmt, unsigned isize, FILE *fi) {
|
|||||||
#define LSIZE 1024
|
#define LSIZE 1024
|
||||||
char s[LSIZE+1];
|
char s[LSIZE+1];
|
||||||
switch(fmt) {
|
switch(fmt) {
|
||||||
case T_TXT:
|
case T_TXT: if(verbose) printf("reading text file\n");
|
||||||
while(fgets(s, LSIZE, fi)) {
|
while(fgets(s, LSIZE, fi)) {
|
||||||
s[strlen(s) - 1] = 0;
|
s[strlen(s) - 1] = 0; //printf("%5s,", s);
|
||||||
unsigned long long u = strtoull(s, NULL, 10) - mdelta;
|
unsigned long long u = strtoull(s, NULL, 10) - mdelta;
|
||||||
IPUSH(in,n,isize,nmax,u);
|
IPUSH(in,n,isize,nmax,u);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user