Tidying up.
This commit is contained in:
1 parent
cb9d0ea7ac
commit
c4382470e6
3 files changed
+227
-140
No files matched your search
@@ -0,0 +1,13 @@
|
||||
#ifndef HELPERS_SENTRY
|
||||
#define HELPERS_SENTRY
|
||||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
|
||||
|
||||
#define KB(n) (((unsigned long long)(n)) << 10)
|
||||
#define MB(n) (((unsigned long long)(n)) << 20)
|
||||
#define GB(n) (((unsigned long long)(n)) << 30)
|
||||
#define TB(n) (((unsigned long long)(n)) << 40)
|
||||
|
||||
#define SWAP(T, a, b) do { T t__ = a; a = b; b = t__; } while(0)
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user