~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/archive/archive_test.c

Replaced all unsigned long long with uint64_t.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
char test_string[BUFFER_LEN];
34
34
 
35
 
unsigned long long row_lengths[]= {536870912LL, 2147483648LL, 4294967296LL, 8589934592LL};
36
 
unsigned long long row_numbers[]= {524288LL, 2097152LL, 4194304LL, 8388608LL};
 
35
uint64_t row_lengths[]= {536870912LL, 2147483648LL, 4294967296LL, 8589934592LL};
 
36
uint64_t row_numbers[]= {524288LL, 2097152LL, 4194304LL, 8388608LL};
37
37
 
38
38
/* prototypes */
39
 
int size_test(unsigned long long length, unsigned long long rows_to_test_for, az_method method);
 
39
int size_test(uint64_t length, uint64_t rows_to_test_for, az_method method);
40
40
int small_test(az_method method);
41
41
long int timedif(struct timeval a, struct timeval b);
42
42
 
78
78
      struct timeval start_time, end_time;
79
79
      long int timing;
80
80
 
81
 
      printf("Testing %llu bytes with (%d)\n", row_lengths[x], (int)method);
 
81
      printf("Testing %"PRIu64" bytes with (%d)\n", row_lengths[x], (int)method);
82
82
      gettimeofday(&start_time, NULL);
83
83
      size_test(row_lengths[x], row_numbers[x], method);
84
84
      gettimeofday(&end_time, NULL);
271
271
  return 0;
272
272
}
273
273
 
274
 
int size_test(unsigned long long length, unsigned long long rows_to_test_for, 
 
274
int size_test(uint64_t length, uint64_t rows_to_test_for, 
275
275
              az_method method)
276
276
{
277
277
  azio_stream writer_handle, reader_handle;
278
 
  unsigned long long write_length;
279
 
  unsigned long long read_length;
280
 
  unsigned long long count;
 
278
  uint64_t write_length;
 
279
  uint64_t read_length;
 
280
  uint64_t count;
281
281
  unsigned int ret;
282
282
  int error;
283
283
  int x;
318
318
  /* We do a double loop to test speed */
319
319
  for (x= 0, read_length= 0; x < 2; x++, read_length= 0)
320
320
  {
321
 
    unsigned long long count;
 
321
    uint64_t count;
322
322
 
323
323
    azread_init(&reader_handle);
324
324
    for (count= 0; count < writer_handle.rows; count++)