Rev 4449 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4449 | Rev 4450 | ||
|---|---|---|---|
| Line 84... | Line 84... | ||
| 84 | #define STRING_ARG(arg) #arg |
84 | #define STRING_ARG(arg) #arg |
| 85 | 85 | ||
| 86 | #define LOWER32(arg) ((arg) & 0xffffffff) |
86 | #define LOWER32(arg) ((arg) & 0xffffffff) |
| 87 | #define UPPER32(arg) (((arg) >> 32) & 0xffffffff) |
87 | #define UPPER32(arg) (((arg) >> 32) & 0xffffffff) |
| 88 | 88 | ||
| - | 89 | #define MERGE_LOHI32(lo, hi) \ |
|
| 89 | #define MERGE_LOHI32(lo, hi) ((lo & 0xffffffff) | ((hi & 0xffffffff) << 32)) |
90 | (((lo) & 0xffffffff) | (((hi) & 0xffffffff) << 32)) |
| 90 | 91 | ||
| 91 | /** Pseudorandom generator |
92 | /** Pseudorandom generator |
| 92 | * |
93 | * |
| 93 | * A pretty standard linear congruential pseudorandom |
94 | * A pretty standard linear congruential pseudorandom |
| 94 | * number generator (m = 2^32 or 2^64 depending on architecture). |
95 | * number generator (m = 2^32 or 2^64 depending on architecture). |