root / www / HPL_jumpit.html @ 1
Historique | Voir | Annoter | Télécharger (1,85 ko)
1 |
<HTML>
|
---|---|
2 |
<HEAD>
|
3 |
<TITLE>HPL_jumpit HPL 2.0 Library Functions September 10, 2008</TITLE> |
4 |
</HEAD>
|
5 |
|
6 |
<BODY BGCOLOR="WHITE" TEXT = "#000000" LINK = "#0000ff" VLINK = "#000099" |
7 |
ALINK = "#ffff00"> |
8 |
|
9 |
<H1>Name</H1> |
10 |
<B>HPL_jumpit</B> jump into the random sequence. |
11 |
|
12 |
<H1>Synopsis</H1> |
13 |
<CODE>#include "hpl.h"</CODE><BR><BR> |
14 |
<CODE>void</CODE> |
15 |
<CODE>HPL_jumpit(</CODE> |
16 |
<CODE>int *</CODE> |
17 |
<CODE>MULT</CODE>, |
18 |
<CODE>int *</CODE> |
19 |
<CODE>IADD</CODE>, |
20 |
<CODE>int *</CODE> |
21 |
<CODE>IRANN</CODE>, |
22 |
<CODE>int *</CODE> |
23 |
<CODE>IRANM</CODE> |
24 |
<CODE>);</CODE> |
25 |
|
26 |
<H1>Description</H1> |
27 |
<B>HPL_jumpit</B> |
28 |
jumps in the random sequence from the number X(n) encoded |
29 |
in IRANN to the number X(m) encoded in IRANM using the constants A |
30 |
and C encoded in MULT and IADD: X(m) = A * X(n) + C. The constants A |
31 |
and C obviously depend on m and n, see the function HPL_xjumpm in |
32 |
order to initialize them. |
33 |
|
34 |
<H1>Arguments</H1> |
35 |
<PRE>
|
36 |
MULT (local input) int * |
37 |
On entry, MULT is an array of dimension 2, that contains the |
38 |
16-lower and 15-higher bits of the constant A. |
39 |
</PRE>
|
40 |
<PRE>
|
41 |
IADD (local input) int * |
42 |
On entry, IADD is an array of dimension 2, that contains the |
43 |
16-lower and 15-higher bits of the constant C. |
44 |
</PRE>
|
45 |
<PRE>
|
46 |
IRANN (local input) int * |
47 |
On entry, IRANN is an array of dimension 2, that contains |
48 |
the 16-lower and 15-higher bits of the encoding of X(n). |
49 |
</PRE>
|
50 |
<PRE>
|
51 |
IRANM (local output) int * |
52 |
On entry, IRANM is an array of dimension 2. On exit, this |
53 |
array contains respectively the 16-lower and 15-higher bits |
54 |
of the encoding of X(m). |
55 |
</PRE>
|
56 |
|
57 |
<H1>See Also</H1> |
58 |
<A HREF="HPL_ladd.html">HPL_ladd</A>, |
59 |
<A HREF="HPL_lmul.html">HPL_lmul</A>, |
60 |
<A HREF="HPL_setran.html">HPL_setran</A>, |
61 |
<A HREF="HPL_xjumpm.html">HPL_xjumpm</A>, |
62 |
<A HREF="HPL_rand.html">HPL_rand</A>. |
63 |
|
64 |
</BODY>
|
65 |
</HTML>
|