Module: Mesa Branch: master Commit: f50f26325f8df7e076a0ffd2196eab1c36ff07ae URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f50f26325f8df7e076a0ffd2196eab1c36ff07ae
Author: Eric Engestrom <[email protected]> Date: Sun Oct 13 08:52:59 2019 +0100 util/rand_xor: make it clear that {,s_}rand_xorshift128plus take *exactly 2* uint64_t Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Emmanuel Gil Peyrot <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2316> --- src/util/rand_xor.c | 4 ++-- src/util/rand_xor.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/rand_xor.c b/src/util/rand_xor.c index 31612d57660..b34b4e40bfa 100644 --- a/src/util/rand_xor.c +++ b/src/util/rand_xor.c @@ -41,7 +41,7 @@ * to the public domain. */ uint64_t -rand_xorshift128plus(uint64_t *seed) +rand_xorshift128plus(uint64_t seed[2]) { uint64_t *s = seed; @@ -55,7 +55,7 @@ rand_xorshift128plus(uint64_t *seed) } void -s_rand_xorshift128plus(uint64_t *seed, bool randomised_seed) +s_rand_xorshift128plus(uint64_t seed[2], bool randomised_seed) { if (!randomised_seed) goto fixed_seed; diff --git a/src/util/rand_xor.h b/src/util/rand_xor.h index 532d549bcda..b55598f228a 100644 --- a/src/util/rand_xor.h +++ b/src/util/rand_xor.h @@ -29,9 +29,9 @@ #include <stdbool.h> uint64_t -rand_xorshift128plus(uint64_t *seed); +rand_xorshift128plus(uint64_t seed[2]); void -s_rand_xorshift128plus(uint64_t *seed, bool randomised_seed); +s_rand_xorshift128plus(uint64_t seed[2], bool randomised_seed); #endif /* RAND_XOR_H */ _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
