Searched refs:fsize (Results 1 - 3 of 3) sorted by relevance

/system/extras/tests/bionic/libc/other/
H A Dtest_jpeg.c138 int decompress(char* data, long fsize)
168 _source_init( &sourcemgr, data, fsize );
309 long fsize; local
320 fsize = ftell(f);
335 data = malloc( fsize );
337 if (fsize > 0)
338 fprintf(stderr, "could not allocate %ld bytes to load '%s'\n", fsize, argv[1] );
342 fread( data, 1, fsize, f );
346 printf( "compressed load: %10.2f ms (%ld bytes)\n", usec1*1e-3, fsize );
351 decompress( data, fsize );
[all...]
H A Dtest_zlib.c222 long fsize; local
232 fsize = ftell(f);
247 printf( "compression took: %10.3f ms (%.2f KB/s)\n", usec1/1e3, fsize*(1e6/1024)/usec1 );
262 printf( "decompression took: %10.3f ms (%.2f KB/s, %d passes)\n", usec1/1e3, fsize*(1e6/1024)*repeat_count/usec1, repeat_count );
/system/core/toolbox/cp/
H A Dutils.c217 size_t fsize = (size_t)fs->st_size; local
218 p = mmap(NULL, fsize, PROT_READ, MAP_FILE|MAP_SHARED,
234 remainder = fsize;
240 if (write(to_fd, &p[fsize - remainder],
252 if (munmap(p, fsize) < 0) {

Completed in 70 milliseconds