Changeset efdfebc in mainline for uspace/lib/c/include/macros.h
- Timestamp:
- 2012-11-06T21:03:44Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 338810f
- Parents:
- de73242 (diff), 94795812 (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
rde73242 refdfebc 38 38 #define min(a, b) ((a) < (b) ? (a) : (b)) 39 39 #define max(a, b) ((a) > (b) ? (a) : (b)) 40 #define abs(a) ((a) >= 0 ? (a) : (-a)) 41 40 42 41 43 #define KiB2SIZE(kb) ((kb) << 10) … … 52 54 | ((((uint64_t) (up)) & 0xffffffff) << 32)) 53 55 56 #ifndef member_to_inst 57 #define member_to_inst(ptr_member, type, member_identif) \ 58 ((type*) (((void*)(ptr_member)) - ((void*)&(((type*)0)->member_identif)))) 59 #endif 60 61 54 62 #endif 55 63
Note:
See TracChangeset
for help on using the changeset viewer.