Changeset 7d7bc09 in mainline for uspace/lib/c/include/macros.h


Ignore:
Timestamp:
2018-06-20T18:58:11Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
777832e
Parents:
3bd1d7d4
Message:

abs, labs, llabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/macros.h

    r3bd1d7d4 r7d7bc09  
    3838#define min(a, b)  ((a) < (b) ? (a) : (b))
    3939#define max(a, b)  ((a) > (b) ? (a) : (b))
    40 #define abs(a)     ((a) >= 0 ? (a) : -(a))
     40#define mabs(a)    ((a) >= 0 ? (a) : -(a))
    4141
    4242#define ARRAY_SIZE(array)   (sizeof(array) / sizeof(array[0]))
Note: See TracChangeset for help on using the changeset viewer.