/******************************************************************** The McGill Super-Duper Random Number Generator G. Marsaglia, K. Ananthanarayana, N. Paul Incorporating the Ziggurat method of sampling from decreasing or symmetric unimodal density functions. G. Marsaglia, W.W. Tsang Rewritten into C by E. Schneider *********************************************************************/ static unsigned long mcgn, srgn; #define MULT 69069L void rstart (long i1, long i2) { mcgn = (unsigned long)((i1 == 0L) ? 0L : i1 | 1L); srgn = (unsigned long)((i2 == 0L) ? 0L : (i2 & 0x7FFL) | 1L); } long uni(void) { unsigned long r0, r1; r0 = (srgn >> 15); r1 = srgn ^ r0; r0 = (r1 << 17); srgn = r0 ^ r1; mcgn = MULT * mcgn; r1 = mcgn ^ srgn; return (r1 >> 1); } long vni(void) { unsigned long r0, r1; r0 = (srgn >> 15); r1 = srgn ^ r0; r0 = (r1 << 17); srgn = r0 ^ r1; mcgn = MULT * mcgn; r1 = mcgn ^ srgn; return r1; } /* "Anyone who consider arithmetic means of producing random number is, of course, in a state of sin" - John Von Neumann */ net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-07-06 10:53:22 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-07-07 23:36:34 +0100
commite2f81844efa2d44d326bef48e1c9e48926162bc6 (patch)
tree29da1c66ea891a54fb5c42aaa9965bb2c38b89fe /arch
parent3835d69a6c7048a28d0aea3cb8403d5e83a0f867 (diff)
ARM: vmlinux.lds: use _text and _stext the same way as x86
x86 uses _text to mark the start of the kernel image including the head text, and _stext to mark the start of the .text section. Change our vmlinux.lds to conform. An audit of the places which use _stext and _text in arch/arm indicates no users of either symbol are impacted by this change. It does mean a slight change to /proc/iomem output. Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org> Tested-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')