mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-12 09:23:12 +08:00
Silenced a couple of compilation warnings generated by xcode
This commit is contained in:
parent
f8fcd6b32d
commit
a29a2cb4ff
@ -99,7 +99,7 @@ class NonBlockingThreadPoolTempl : public Eigen::ThreadPoolInterface {
|
|||||||
typedef typename Environment::EnvThread Thread;
|
typedef typename Environment::EnvThread Thread;
|
||||||
|
|
||||||
struct PerThread {
|
struct PerThread {
|
||||||
PerThread() : pool(NULL), index(-1), rand(0) { }
|
constexpr PerThread() : pool(NULL), index(-1), rand(0) { }
|
||||||
NonBlockingThreadPoolTempl* pool; // Parent pool, or null for normal threads.
|
NonBlockingThreadPoolTempl* pool; // Parent pool, or null for normal threads.
|
||||||
unsigned index; // Worker thread index in pool.
|
unsigned index; // Worker thread index in pool.
|
||||||
uint64_t rand; // Random generator state.
|
uint64_t rand; // Random generator state.
|
||||||
@ -247,7 +247,7 @@ class NonBlockingThreadPoolTempl : public Eigen::ThreadPoolInterface {
|
|||||||
// 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)));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user