Ignore:
File:
1 edited

Legend:

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

    r34b9299 ra5a73c0  
    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 
    4240
    4341#define KiB2SIZE(kb)  ((kb) << 10)
     
    6260#endif
    6361
     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
    6468/** @}
    6569 */
Note: See TracChangeset for help on using the changeset viewer.