mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-04 03:00:39 +08:00
Silenced compilation warning
This commit is contained in:
parent
698ff69450
commit
ceee1c008b
@ -61,7 +61,7 @@ static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE unsigned PCG_XSH_RS_generator(uint6
|
|||||||
// Update the internal state
|
// Update the internal state
|
||||||
*state = current * 6364136223846793005ULL + 0xda3e39cb94b95bdbULL;
|
*state = current * 6364136223846793005ULL + 0xda3e39cb94b95bdbULL;
|
||||||
// Generate the random output (using the PCG-XSH-RS scheme)
|
// Generate the random output (using the PCG-XSH-RS scheme)
|
||||||
return (current ^ (current >> 22)) >> (22 + (current >> 61));
|
return static_cast<unsigned>((current ^ (current >> 22)) >> (22 + (current >> 61)));
|
||||||
}
|
}
|
||||||
|
|
||||||
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE uint64_t PCG_XSH_RS_state(uint64_t seed) {
|
static EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE uint64_t PCG_XSH_RS_state(uint64_t seed) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user