Changeset c2b2de7 in mainline for uspace/lib/c/include/macros.h
- Timestamp:
- 2012-10-17T22:17:29Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 150a271
- Parents:
- 6454ad47 (diff), 57912af3 (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
-
uspace/lib/c/include/macros.h
r6454ad47 rc2b2de7 52 52 | ((((uint64_t) (up)) & 0xffffffff) << 32)) 53 53 54 #ifndef member_to_inst 55 #define member_to_inst(ptr_member, type, member_identif) \ 56 ((type*) (((void*)(ptr_member)) - ((void*)&(((type*)0)->member_identif)))) 54 57 #endif 58 59 60 #endif 61 62 #define _paddname(line) PADD_ ## line ## __ 63 #define _padd(width, line) uint ## width ## _t _paddname(line) 64 #define PADD32 _padd(32, __LINE__) 65 #define PADD16 _padd(16, __LINE__) 66 #define PADD8 _padd(8, __LINE__) 55 67 56 68 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.