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

Unified Diff: fusl/src/prng/mrand48.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/mrand48.c
diff --git a/fusl/src/prng/mrand48.c b/fusl/src/prng/mrand48.c
index ee650fc3e6a9f25d765e99a4427281819cda96b9..a59f3b8e97220c319ddd3fde1888aa1a047abc39 100644
--- a/fusl/src/prng/mrand48.c
+++ b/fusl/src/prng/mrand48.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 jrand48(unsigned short s[3])
-{
- return __rand48_step(s, __seed48+3) >> 16;
+long jrand48(unsigned short s[3]) {
+ return __rand48_step(s, __seed48 + 3) >> 16;
}
-long mrand48(void)
-{
- return jrand48(__seed48);
+long mrand48(void) {
+ return jrand48(__seed48);
}

Powered by Google App Engine
This is Rietveld 408576698