From 33263d01436d1b89fde299e1c63f3edeca4370ac Mon Sep 17 00:00:00 2001 From: Nicolas Cornu Date: Fri, 18 Oct 2024 16:08:58 +0200 Subject: [PATCH] Reduce warnings for gnu directory (#3134) --- src/gnu/mcran4.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/gnu/mcran4.cpp b/src/gnu/mcran4.cpp index a9553687f6..fb913a8a9e 100644 --- a/src/gnu/mcran4.cpp +++ b/src/gnu/mcran4.cpp @@ -92,19 +92,6 @@ uint32_t nrnRan4int(uint32_t* idx1, uint32_t idx2) { /*n ^= (((u >> 16) | (u << 16)) ^ 0x178b0f3c) + w * v;*/ n ^= (((u >> 16) | (u << 16)) ^ 0xe874f0c3) + w * v; return n; - - w = n ^ 0x03bcdc3c; - v = w >> 16; - w &= 0xffff; - u = (v - w) * (v + w); - m ^= (((u >> 16) | (u << 16)) ^ 0x96aa3a59) + w * v; - - w = m ^ 0x0f33d1b2; - v = w >> 16; - w &= 0xffff; - u = (v - w) * (v + w); - n ^= (((u >> 16) | (u << 16)) ^ 0xaa5835b9) + w * v; - return n; } /* @@ -128,7 +115,7 @@ uint32_t nrnRan4int(uint32_t* idx1, uint32_t idx2) { */ static const double SHIFT32 = 1.0 / 4294967296.0; /* 2^-32 */ double nrnRan4dbl(uint32_t* idx1, uint32_t idx2) { - uint32_t hi, lo, extra; + uint32_t hi; hi = (uint32_t) nrnRan4int(idx1, idx2); /*top 32 bits*/ /* // lo = (extra // low bits