search for: get_tp

Displaying 2 results from an estimated 2 matches for "get_tp".

Did you mean: get_dp
2010 Mar 18
0
[MODULE] COM32 module to time null-dumping a file
...> +#include <errno.h> +#include <fcntl.h> +#include <unistd.h> +#include <sys/times.h> +#include <consoles.h> +#include <minmax.h> + + +#ifdef __COM32__ +#define BUFSZ 2048 +/* What's optimal? Under 4k? + * layout.inc: xfer_buf_seg equ 1000h + */ + +float get_tps(){ return 18.2; } + +#else /* __COM32__ */ + +#define BUFSZ 16384 +/* Need to check what might be a "best" buffer/fetch block size here */ + +float get_tps(){ return (float)sysconf(_SC_CLK_TCK); } +void print_cp_result2(char *fn, int bcnt, clock_t bc, clock_t ec) +{ + float et, dr; + et...
2010 Mar 20
1
[MODULE] COM32 module to time null-dumping a file, v1.1
...<sys/times.h> +#include <consoles.h> +#include <minmax.h> +#include <limits.h> +#include <string.h> + +#ifdef __COM32__ +# define BUFSZ_DEF 2048 +/* What's optimal? Under 4k? + * layout.inc: xfer_buf_seg equ 1000h + */ +# define O_DIRECT 0 + +static inline float get_tps(){ return 18.2; } + +#else /* __COM32__ */ + +# define BUFSZ_DEF 16384 +/* Need to check what might be a "best" buffer/fetch block size here */ + +static inline float get_tps(){ return (float)sysconf(_SC_CLK_TCK); } + +#endif /* __COM32__ */ + +#ifndef SSIZE_MAX +# define SSIZE_MAX PTR...