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

Unified Diff: fusl/src/prng/lrand48.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/lrand48.c
diff --git a/fusl/src/prng/lrand48.c b/fusl/src/prng/lrand48.c
index a3c4e4e2b2bb09e69627a7bbd0ff655c1f4eec8a..1e6ec624e8aca892d730836da113c1503d79922c 100644
--- a/fusl/src/prng/lrand48.c
+++ b/fusl/src/prng/lrand48.c
@@ -1,15 +1,13 @@
#include <stdlib.h>
#include <inttypes.h>
-uint64_t __rand48_step(unsigned short *xi, unsigned short *lc);
+uint64_t __rand48_step(unsigned short* xi, unsigned short* lc);
extern unsigned short __seed48[7];
-long nrand48(unsigned short s[3])
-{
- return __rand48_step(s, __seed48+3) >> 17;
+long nrand48(unsigned short s[3]) {
+ return __rand48_step(s, __seed48 + 3) >> 17;
}
-long lrand48(void)
-{
- return nrand48(__seed48);
+long lrand48(void) {
+ return nrand48(__seed48);
}

Powered by Google App Engine
This is Rietveld 408576698