Statistiques
| Révision :

root / man / man3 / HPL_xjumpm.3

Historique | Voir | Annoter | Télécharger (2,6 ko)

1 1 equemene
.TH HPL_xjumpm 3 "September 10, 2008" "HPL 2.0" "HPL Library Functions"
2 1 equemene
.SH NAME
3 1 equemene
HPL_xjumpm \- Compute constants to jump in the random sequence.
4 1 equemene
.SH SYNOPSIS
5 1 equemene
\fB\&#include "hpl.h"\fR
6 1 equemene
7 1 equemene
\fB\&void\fR
8 1 equemene
\fB\&HPL_xjumpm(\fR
9 1 equemene
\fB\&const int\fR
10 1 equemene
\fI\&JUMPM\fR,
11 1 equemene
\fB\&int *\fR
12 1 equemene
\fI\&MULT\fR,
13 1 equemene
\fB\&int *\fR
14 1 equemene
\fI\&IADD\fR,
15 1 equemene
\fB\&int *\fR
16 1 equemene
\fI\&IRANN\fR,
17 1 equemene
\fB\&int *\fR
18 1 equemene
\fI\&IRANM\fR,
19 1 equemene
\fB\&int *\fR
20 1 equemene
\fI\&IAM\fR,
21 1 equemene
\fB\&int *\fR
22 1 equemene
\fI\&ICM\fR
23 1 equemene
\fB\&);\fR
24 1 equemene
.SH DESCRIPTION
25 1 equemene
\fB\&HPL_xjumpm\fR
26 1 equemene
computes  the constants  A and C  to jump JUMPM numbers in
27 1 equemene
the random sequence: X(n+JUMPM) = A*X(n)+C.  The constants encoded in
28 1 equemene
MULT and IADD  specify  how to jump from one entry in the sequence to
29 1 equemene
the next.
30 1 equemene
.SH ARGUMENTS
31 1 equemene
.TP 8
32 1 equemene
JUMPM   (local input)           const int
33 1 equemene
On entry,  JUMPM  specifies  the  number  of entries  in  the
34 1 equemene
sequence to jump over. When JUMPM is less or equal than zero,
35 1 equemene
A and C are not computed, IRANM is set to IRANN corresponding
36 1 equemene
to a jump of size zero.
37 1 equemene
.TP 8
38 1 equemene
MULT    (local input)           int *
39 1 equemene
On entry, MULT is an array of dimension 2,  that contains the
40 1 equemene
16-lower  and 15-higher bits of the constant  a  to jump from
41 1 equemene
X(n) to X(n+1) = a*X(n) + c in the random sequence.
42 1 equemene
.TP 8
43 1 equemene
IADD    (local input)           int *
44 1 equemene
On entry, IADD is an array of dimension 2,  that contains the
45 1 equemene
16-lower  and 15-higher bits of the constant  c  to jump from
46 1 equemene
X(n) to X(n+1) = a*X(n) + c in the random sequence.
47 1 equemene
.TP 8
48 1 equemene
IRANN   (local input)           int *
49 1 equemene
On entry, IRANN is an array of dimension 2. that contains the
50 1 equemene
16-lower and 15-higher bits of the encoding of X(n).
51 1 equemene
.TP 8
52 1 equemene
IRANM   (local output)          int *
53 1 equemene
On entry,  IRANM  is an array of dimension 2.   On exit, this
54 1 equemene
array  contains respectively  the 16-lower and 15-higher bits
55 1 equemene
of the encoding of X(n+JUMPM).
56 1 equemene
.TP 8
57 1 equemene
IAM     (local output)          int *
58 1 equemene
On entry, IAM is an array of dimension 2. On exit, when JUMPM
59 1 equemene
is  greater  than  zero,  this  array  contains  the  encoded
60 1 equemene
constant  A  to jump from  X(n) to  X(n+JUMPM)  in the random
61 1 equemene
sequence. IAM(0:1)  contains  respectively  the  16-lower and
62 1 equemene
15-higher  bits  of this constant  A. When  JUMPM  is less or
63 1 equemene
equal than zero, this array is not referenced.
64 1 equemene
.TP 8
65 1 equemene
ICM     (local output)          int *
66 1 equemene
On entry, ICM is an array of dimension 2. On exit, when JUMPM
67 1 equemene
is  greater  than  zero,  this  array  contains  the  encoded
68 1 equemene
constant  C  to jump from  X(n)  to  X(n+JUMPM) in the random
69 1 equemene
sequence. ICM(0:1)  contains  respectively  the  16-lower and
70 1 equemene
15-higher  bits  of this constant  C. When  JUMPM  is less or
71 1 equemene
equal than zero, this array is not referenced.
72 1 equemene
.SH SEE ALSO
73 1 equemene
.BR HPL_ladd \ (3),
74 1 equemene
.BR HPL_lmul \ (3),
75 1 equemene
.BR HPL_setran \ (3),
76 1 equemene
.BR HPL_jumpit \ (3),
77 1 equemene
.BR HPL_rand \ (3).