Changes in uspace/lib/c/include/macros.h [34b9299:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/macros.h
r34b9299 r9d58539 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 42 40 43 41 #define KiB2SIZE(kb) ((kb) << 10) … … 54 52 | ((((uint64_t) (up)) & 0xffffffff) << 32)) 55 53 56 #ifndef member_to_inst57 #define member_to_inst(ptr_member, type, member_identif) \58 ((type*) (((void*)(ptr_member)) - ((void*)&(((type*)0)->member_identif))))59 #endif60 61 62 54 #endif 63 55
Note:
See TracChangeset
for help on using the changeset viewer.