|
cwist
Modern C web framework with libttak runtime
|
Convenience size-conversion and utility macros shared across CWIST. More...

Go to the source code of this file.
Macros | |
| #define | CWIST_KB(x) ((size_t)(x) * 1000) |
| Convert decimal kilobytes to bytes. | |
| #define | CWIST_KIB(x) ((size_t)(x) * 1024) |
| Convert binary kibibytes to bytes. | |
| #define | CWIST_MB(x) ((size_t)(x) * 1000 * 1000) |
| Convert decimal megabytes to bytes. | |
| #define | CWIST_MIB(x) ((size_t)(x) * 1024 * 1024) |
| Convert binary mebibytes to bytes. | |
| #define | CWIST_GB(x) ((size_t)(x) * 1000 * 1000 * 1000) |
| Convert decimal gigabytes to bytes. | |
| #define | CWIST_GIB(x) ((size_t)(x) * 1024 * 1024 * 1024) |
| Convert binary gibibytes to bytes. | |
| #define | CWIST_UNUSED(x) (void)(x) |
| Mark an intentionally unused variable to silence compiler warnings. | |
Convenience size-conversion and utility macros shared across CWIST.
Definition in file macros.h.