Fix MinGW compile issues, msg2636.

This commit is contained in:
Wilson Snyder
2018-09-20 18:09:19 -04:00
parent d4159811d2
commit a8519a7a53
4 changed files with 20 additions and 3 deletions
+13
View File
@@ -188,6 +188,19 @@ void V3Os::unlinkRegexp(const string& dir, const string& regexp) {
}
}
//######################################################################
// METHODS (random)
vluint64_t V3Os::rand64(vluint64_t* statep) {
// Xoroshiro128+ algorithm
vluint64_t result = statep[0] + statep[1];
statep[1] ^= statep[0];
statep[0] = (((statep[0] << 55) | (statep[0] >> 9))
^ statep[1] ^ (statep[1] << 14));
statep[1] = (statep[1] << 36) | (statep[1] >> 28);
return result;
}
//######################################################################
// METHODS (performance)