Subversion Repositories HelenOS

Rev

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

Rev 4124 Rev 4448
Line 81... Line 81...
81
#define MB2SIZE(mb)  ((mb) << 20)
81
#define MB2SIZE(mb)  ((mb) << 20)
82
 
82
 
83
#define STRING(arg)      STRING_ARG(arg)
83
#define STRING(arg)      STRING_ARG(arg)
84
#define STRING_ARG(arg)  #arg
84
#define STRING_ARG(arg)  #arg
85
 
85
 
-
 
86
#define LOWER32(arg)  ((arg) & 0xffffffff)
-
 
87
#define UPPER32(arg)  (((arg) >> 32) & 0xffffffff)
-
 
88
 
-
 
89
#define MERGE_LOHI32(lo, hi)  ((lo & 0xffffffff) | ((hi & 0xffffffff) < 32))
-
 
90
 
86
/** Pseudorandom generator
91
/** Pseudorandom generator
87
 *
92
 *
88
 * A pretty standard linear congruential pseudorandom
93
 * A pretty standard linear congruential pseudorandom
89
 * number generator (m = 2^32 or 2^64 depending on architecture).
94
 * number generator (m = 2^32 or 2^64 depending on architecture).
90
 *
95
 *