Changeset 831667a9 in mainline
- Timestamp:
- 2009-06-03T18:33:55Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 815bf9a5
- Parents:
- 8658f89
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/include/macros.h
r8658f89 r831667a9 36 36 #define LIBC_MACROS_H_ 37 37 38 #define SIZE2KB(size) ((size) >> 10)39 #define SIZE2MB(size) ((size) >> 20)38 #define SIZE2KB(size) ((size) >> 10) 39 #define SIZE2MB(size) ((size) >> 20) 40 40 41 #define KB2SIZE(kb) ((kb) << 10)42 #define MB2SIZE(mb) ((mb) << 20)41 #define KB2SIZE(kb) ((kb) << 10) 42 #define MB2SIZE(mb) ((mb) << 20) 43 43 44 #define STRING(arg) STRING_ARG(arg) 45 #define STRING_ARG(arg) #arg 44 #define STRING(arg) STRING_ARG(arg) 45 #define STRING_ARG(arg) #arg 46 47 #define LOWER32(arg) ((arg) & 0xffffffff) 48 #define UPPER32(arg) (((arg) >> 32) & 0xffffffff) 49 50 #define MERGE_LOUP32(lo, up) \ 51 ((((uint64_t) (lo)) & 0xffffffff) \ 52 | ((((uint64_t) (up)) & 0xffffffff) << 32)) 46 53 47 54 #endif
Note:
See TracChangeset
for help on using the changeset viewer.