Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 933cadf in mainline for uspace/lib/c/include/macros.h


Ignore:
Timestamp:
2011-04-22T13:35:41Z (11 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
3dbe4ca2, afdcc60e, b678410
Parents:
74c8f344
Message:

use binary suffixes in printouts where appropriate

File:
1 edited

Legend:

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

    r74c8f344 r933cadf  
    3939#define max(a, b)  ((a) > (b) ? (a) : (b))
    4040
    41 #define SIZE2KB(size)  ((size) >> 10)
    42 #define SIZE2MB(size)  ((size) >> 20)
    43 
    44 #define KB2SIZE(kb)  ((kb) << 10)
    45 #define MB2SIZE(mb)  ((mb) << 20)
     41#define KiB2SIZE(kb)  ((kb) << 10)
     42#define MiB2SIZE(mb)  ((mb) << 20)
    4643
    4744#define STRING(arg)      STRING_ARG(arg)
Note: See TracChangeset for help on using the changeset viewer.