Changeset b5e68c8 in mainline for kernel/generic/include/macros.h
- Timestamp:
- 2011-05-12T16:49:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f36787d7
- Parents:
- e80329d6 (diff), 750636a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/macros.h
re80329d6 rb5e68c8 95 95 overlaps(KA2PA((x)), (szx), KA2PA((y)), (szy)) 96 96 97 #define SIZE2KB(size) ((size) >> 10) 98 #define SIZE2MB(size) ((size) >> 20) 99 100 #define KB2SIZE(kb) ((kb) << 10) 101 #define MB2SIZE(mb) ((mb) << 20) 97 #define KiB2SIZE(kb) ((kb) << 10) 98 #define MiB2SIZE(mb) ((mb) << 20) 102 99 103 100 #define STRING(arg) STRING_ARG(arg) 104 101 #define STRING_ARG(arg) #arg 105 102 106 #define LOWER32(arg) (((uint64_t) (arg)) & 0xffffffff)107 #define UPPER32(arg) (((((uint64_t) arg)) >> 32) & 0xffffffff)103 #define LOWER32(arg) (((uint64_t) (arg)) & UINT32_C(0xffffffff)) 104 #define UPPER32(arg) (((((uint64_t) arg)) >> 32) & UINT32_C(0xffffffff)) 108 105 109 106 #define MERGE_LOUP32(lo, up) \ 110 ((((uint64_t) (lo)) & 0xffffffff) \111 | ((((uint64_t) (up)) & 0xffffffff) << 32))107 ((((uint64_t) (lo)) & UINT32_C(0xffffffff)) \ 108 | ((((uint64_t) (up)) & UINT32_C(0xffffffff)) << 32)) 112 109 113 110 /** Pseudorandom generator
Note:
See TracChangeset
for help on using the changeset viewer.