Subversion Repositories HelenOS

Rev

Rev 3883 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3883 Rev 3921
Line 33... Line 33...
33
 */
33
 */
34
 
34
 
35
#ifndef BOOT_MACROS_H_
35
#ifndef BOOT_MACROS_H_
36
#define BOOT_MACROS_H_
36
#define BOOT_MACROS_H_
37
 
37
 
38
#define SIZE2KB(size) ((size) >> 10)
38
#define min(a, b)  ((a) < (b) ? (a) : (b))
39
#define SIZE2MB(size) ((size) >> 20)
39
#define max(a, b)  ((a) > (b) ? (a) : (b))
40
 
40
 
41
#define KB2SIZE(kb) ((kb) << 10)
41
#define SIZE2KB(size)  ((size) >> 10)
42
#define MB2SIZE(mb) ((mb) << 20)
42
#define SIZE2MB(size)  ((size) >> 20)
43
 
43
 
-
 
44
#define KB2SIZE(kb)  ((kb) << 10)
-
 
45
#define MB2SIZE(mb)  ((mb) << 20)
-
 
46
 
44
#define STRING(arg) STRING_ARG(arg)
47
#define STRING(arg)      STRING_ARG(arg)
45
#define STRING_ARG(arg) #arg
48
#define STRING_ARG(arg)  #arg
46
 
49
 
47
#endif
50
#endif
48
 
51
 
49
/** @}
52
/** @}
50
 */
53
 */