repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2011-10-08 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git]
/
libgo
/
runtime
/
go-rand.c
blob
9632efc09cd03d6e5ae664b5f542db217d11cdf8
1
// Copyright 2009 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4
5
#include
"runtime.h"
6
7
uint32
8
runtime_fastrand1
(
void
)
9
{
10
uint32 x
;
11
12
x
=
m
->
fastrand
;
13
x
+=
x
;
14
if
(
x
&
0x80000000
L
)
15
x
^=
0x88888eef
UL
;
16
m
->
fastrand
=
x
;
17
return
x
;
18
}