projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use syscall_arg_t and __scc macro for arguments to __alt_socketcall
[musl]
/
src
/
prng
/
__rand48_step.c
diff --git
a/src/prng/__rand48_step.c
b/src/prng/__rand48_step.c
index
105f810
..
94703d0
100644
(file)
--- a/
src/prng/__rand48_step.c
+++ b/
src/prng/__rand48_step.c
@@
-1,11
+1,11
@@
-#include <stdlib.h>
#include <stdint.h>
#include <stdint.h>
+#include "rand48.h"
uint64_t __rand48_step(unsigned short *xi, unsigned short *lc)
{
uint64_t a, x;
uint64_t __rand48_step(unsigned short *xi, unsigned short *lc)
{
uint64_t a, x;
- x = xi[0] | xi[1]<<16 | xi[2]+0ULL<<32;
- a = lc[0] | lc[1]<<16 | lc[2]+0ULL<<32;
+ x = xi[0] | xi[1]
+0U
<<16 | xi[2]+0ULL<<32;
+ a = lc[0] | lc[1]
+0U
<<16 | lc[2]+0ULL<<32;
x = a*x + lc[3];
xi[0] = x;
xi[1] = x>>16;
x = a*x + lc[3];
xi[0] = x;
xi[1] = x>>16;