Subversion Repositories HelenOS

Rev

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

Rev 4153 Rev 4581
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_LOUP32(lo, up) \
-
 
90
    ((((uint64_t) (lo)) & 0xffffffff) \
-
 
91
        | ((((uint64_t) (up)) & 0xffffffff) << 32))
-
 
92
 
86
/** Pseudorandom generator
93
/** Pseudorandom generator
87
 *
94
 *
88
 * A pretty standard linear congruential pseudorandom
95
 * A pretty standard linear congruential pseudorandom
89
 * number generator (m = 2^32 or 2^64 depending on architecture).
96
 * number generator (m = 2^32 or 2^64 depending on architecture).
90
 *
97
 *