mailing list of musl libc
 help / color / mirror / code / Atom feed
4e4e9ab61d5e7026cfb85d533b8c506623ed4b5b blob 313 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
#include <stdint.h>
#include "rand48.h"

uint64_t __rand48_step(unsigned short *xi, unsigned short *lc)
{
	uint64_t a, x;
	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;
	xi[2] = x>>32;
	return x & 0xffffffffffffull;
}
debug log:

solving 4e4e9ab6 ...
found 4e4e9ab6 in https://inbox.vuxu.org/musl/20190722180740.16951-4-me@concati.me/
found 94703d07 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 94703d0738d2408326d85b39b3fda14998c035ed	src/prng/__rand48_step.c

applying [1/1] https://inbox.vuxu.org/musl/20190722180740.16951-4-me@concati.me/
diff --git a/src/prng/__rand48_step.c b/src/prng/__rand48_step.c
index 94703d07..4e4e9ab6 100644

Checking patch src/prng/__rand48_step.c...
Applied patch src/prng/__rand48_step.c cleanly.

index at:
100644 4e4e9ab61d5e7026cfb85d533b8c506623ed4b5b	src/prng/__rand48_step.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).