cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
macros.h
Go to the documentation of this file.
1#ifndef __CWIST_MACROS_H__
2#define __CWIST_MACROS_H__
3
10#define CWIST_KB(x) ((size_t)(x) * 1000)
12#define CWIST_KIB(x) ((size_t)(x) * 1024)
14#define CWIST_MB(x) ((size_t)(x) * 1000 * 1000)
16#define CWIST_MIB(x) ((size_t)(x) * 1024 * 1024)
18#define CWIST_GB(x) ((size_t)(x) * 1000 * 1000 * 1000)
20#define CWIST_GIB(x) ((size_t)(x) * 1024 * 1024 * 1024)
21
23#define CWIST_UNUSED(x) (void)(x)
24
25#endif