Subversion Repositories HelenOS

Rev

Rev 4537 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4537 Rev 4668
Line 33... Line 33...
33
 */
33
 */
34
 
34
 
35
#ifndef LIBC_MACROS_H_
35
#ifndef LIBC_MACROS_H_
36
#define LIBC_MACROS_H_
36
#define LIBC_MACROS_H_
37
 
37
 
-
 
38
#define min(a, b)  ((a) < (b) ? (a) : (b))
-
 
39
#define max(a, b)  ((a) > (b) ? (a) : (b))
-
 
40
 
38
#define SIZE2KB(size)  ((size) >> 10)
41
#define SIZE2KB(size)  ((size) >> 10)
39
#define SIZE2MB(size)  ((size) >> 20)
42
#define SIZE2MB(size)  ((size) >> 20)
40
 
43
 
41
#define KB2SIZE(kb)  ((kb) << 10)
44
#define KB2SIZE(kb)  ((kb) << 10)
42
#define MB2SIZE(mb)  ((mb) << 20)
45
#define MB2SIZE(mb)  ((mb) << 20)