Subversion Repositories HelenOS

Rev

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

Rev 4337 Rev 4341
Line 74... Line 74...
74
#define MB2SIZE(mb) ((mb) << 20)
74
#define MB2SIZE(mb) ((mb) << 20)
75
 
75
 
76
#define STRING(arg) STRING_ARG(arg)
76
#define STRING(arg) STRING_ARG(arg)
77
#define STRING_ARG(arg) #arg
77
#define STRING_ARG(arg) #arg
78
 
78
 
-
 
79
/** Pseudorandom generator
-
 
80
 *
-
 
81
 * A pretty standard linear congruential pseudorandom
-
 
82
 * number generator (m = 2^32 or 2^64 depending on architecture).
-
 
83
 *
-
 
84
 */
-
 
85
#define RANDI(seed) \
-
 
86
    ({ \
-
 
87
        (seed) = 1103515245 * (seed) + 12345; \
-
 
88
        (seed); \
-
 
89
    })
-
 
90
 
79
#endif
91
#endif
80
 
92
 
81
/** @}
93
/** @}
82
 */
94
 */