Changeset 7d7bc09 in mainline for uspace/lib/c/include/macros.h
- Timestamp:
- 2018-06-20T18:58:11Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 777832e
- Parents:
- 3bd1d7d4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/macros.h
r3bd1d7d4 r7d7bc09 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))40 #define mabs(a) ((a) >= 0 ? (a) : -(a)) 41 41 42 42 #define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))
Note:
See TracChangeset
for help on using the changeset viewer.