1HPL_jumpit(3) HPL Library Functions HPL_jumpit(3)
2
3
4
6 HPL_jumpit - jump into the random sequence.
7
9 #include "hpl.h"
10
11 void HPL_jumpit( int * MULT, int * IADD, int * IRANN, int * IRANM );
12
14 HPL_jumpit jumps in the random sequence from the number X(n) encoded
15 in IRANN to the number X(m) encoded in IRANM using the constants A
16 and C encoded in MULT and IADD: X(m) = A * X(n) + C. The constants A
17 and C obviously depend on m and n, see the function HPL_xjumpm in
18 order to initialize them.
19
21 MULT (local input) int *
22 On entry, MULT is an array of dimension 2, that contains the
23 16-lower and 15-higher bits of the constant A.
24
25 IADD (local input) int *
26 On entry, IADD is an array of dimension 2, that contains the
27 16-lower and 15-higher bits of the constant C.
28
29 IRANN (local input) int *
30 On entry, IRANN is an array of dimension 2, that contains
31 the 16-lower and 15-higher bits of the encoding of X(n).
32
33 IRANM (local output) int *
34 On entry, IRANM is an array of dimension 2. On exit, this
35 array contains respectively the 16-lower and 15-higher bits of
36 the encoding of X(m).
37
39 HPL_ladd (3), HPL_lmul (3), HPL_setran (3), HPL_xjumpm (3),
40 HPL_rand (3).
41
42
43
44HPL 2.2 February 24, 2016 HPL_jumpit(3)