1HPL_lmul(3) HPL Library Functions HPL_lmul(3)
2
3
4
6 HPL_lmul - multiplies 2 long positive integers.
7
9 #include "hpl.h"
10
11 void HPL_lmul( int * K, int * J, int * I );
12
14 HPL_lmul multiplies without carry two long positive integers K and J
15 and puts the result into I. The long integers I, J, K are encoded on
16 64 bits using an array of 2 integers. The 32-lower bits are stored in
17 the first entry of each array, the 32-higher bits in the second entry
18 of each array. For efficiency purposes, the intrisic modulo function
19 is inlined.
20
22 K (local input) int *
23 On entry, K is an integer array of dimension 2 containing the
24 encoded long integer K.
25
26 J (local input) int *
27 On entry, J is an integer array of dimension 2 containing the
28 encoded long integer J.
29
30 I (local output) int *
31 On entry, I is an integer array of dimension 2. On exit, this
32 array contains the encoded long integer result.
33
35 HPL_ladd (3), HPL_setran (3), HPL_xjumpm (3), HPL_jumpit (3),
36 HPL_rand (3).
37
38
39
40HPL 2.1 October 26, 2012 HPL_lmul(3)