Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Unified Diff: fusl/src/prng/__rand48_step.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fusl/src/prng/__rand48_step.c
diff --git a/fusl/src/prng/__rand48_step.c b/fusl/src/prng/__rand48_step.c
index 31270179785e9d4090cea3fe1acd83641aa2145a..6940f986f4cfee6b677fb7611c971ae4d3750fd6 100644
--- a/fusl/src/prng/__rand48_step.c
+++ b/fusl/src/prng/__rand48_step.c
@@ -1,13 +1,12 @@
#include <stdint.h>
-uint64_t __rand48_step(unsigned short *xi, unsigned short *lc)
-{
- uint64_t a, x;
- x = xi[0] | ((uint32_t)xi[1])<<16 | ((uint64_t)xi[2])<<32;
- a = lc[0] | ((uint32_t)lc[1])<<16 | ((uint64_t)lc[2])<<32;
- x = a*x + lc[3];
- xi[0] = x;
- xi[1] = x>>16;
- xi[2] = x>>32;
- return x & 0xffffffffffffull;
+uint64_t __rand48_step(unsigned short* xi, unsigned short* lc) {
+ uint64_t a, x;
+ x = xi[0] | ((uint32_t)xi[1]) << 16 | ((uint64_t)xi[2]) << 32;
+ a = lc[0] | ((uint32_t)lc[1]) << 16 | ((uint64_t)lc[2]) << 32;
+ x = a * x + lc[3];
+ xi[0] = x;
+ xi[1] = x >> 16;
+ xi[2] = x >> 32;
+ return x & 0xffffffffffffull;
}

Powered by Google App Engine
This is Rietveld 408576698