Ignore:
File:
1 edited

Legend:

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

    ra5a73c0 r34b9299  
    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))
     41
    4042
    4143#define KiB2SIZE(kb)  ((kb) << 10)
     
    6062#endif
    6163
    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__)
    67 
    6864/** @}
    6965 */
Note: See TracChangeset for help on using the changeset viewer.