projects
/
fio.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
HOWTO: add rate example
[fio.git]
/
lib
/
num2str.h
1
#ifndef FIO_NUM2STR_H
2
#define FIO_NUM2STR_H
3
4
#include <inttypes.h>
5
6
#define N2S_NONE 0
7
#define N2S_BITPERSEC 1 /* match unit_base for bit rates */
8
#define N2S_PERSEC 2
9
#define N2S_BIT 3
10
#define N2S_BYTE 4
11
#define N2S_BYTEPERSEC 8 /* match unit_base for byte rates */
12
13
extern char *num2str(uint64_t, int, int, int, int);
14
15
#endif