From 5bec78fe5d62816d00a18a452917410ee1ed8dd3 Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 15 Jun 2019 15:52:17 +0000 Subject: [PATCH] .cosmetics git-svn-id: svn://ultimatepp.org/upp/trunk@13398 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Random.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/uppsrc/Core/Random.cpp b/uppsrc/Core/Random.cpp index f686f0662..ad29eef49 100644 --- a/uppsrc/Core/Random.cpp +++ b/uppsrc/Core/Random.cpp @@ -89,25 +89,22 @@ static uint64 *sState() return s; } -never_inline -dword Random(void) { +dword Random() +{ return (dword)sNext(sState()); } -never_inline -uint64 Random64(void) { +uint64 Random64() +{ return sNext(sState()); } -never_inline void Random64(uint64 *t, int n) { uint64 *s = sState(); while(n-- > 0) *t++ = sNext(s); } - -never_inline dword Random(dword n) { ASSERT(n); uint64 *s = sState(); @@ -119,7 +116,6 @@ dword Random(dword n) { return r; } -never_inline uint64 Random64(uint64 n) { ASSERT(n); uint64 *s = sState(); @@ -131,7 +127,6 @@ uint64 Random64(uint64 n) { return r; } -never_inline double Randomf() { return (sNext(sState()) >> 11) * (1. / (UINT64_C(1) << 53));