HPL_xjumpm(3)
πΈ NAME πΈ
Okay so bestie, meet HPL_xjumpm from the HPL Library Functions crew β she computes constants to jump in the random sequence. This is HPL_xjumpm(3), and she's lowkey iconic. π
β¨
β¨ SYNOPSIS β¨
#include "hpl.h"
void HPL_xjumpm( const int JUMPM, int * MULT, int * IADD, int * IRANN,
int * IRANM, int * IAM, int * ICM );
π¦ DESCRIPTION π¦
HPL_xjumpm computes the constants A and C to jump JUMPM numbers in the random sequence: X(n+JUMPM) = A*X(n)+C. The constants encoded in MULT and IADD specify how to jump from one entry in the sequence to the next. No cap, that's the whole vibe. π
π ARGUMENTS π
JUMPM(local input,const int) β On entry,JUMPMspecifies the number of entries in the sequence to jump over. WhenJUMPMis less or equal than zero,AandCare not computed, andIRANMis set toIRANNcorresponding to a jump of size zero. π«ΆMULT(local input,int *) β On entry,MULTis an array of dimension 2, that contains the 16-lower and 15-higher bits of the constantato jump fromX(n)toX(n+1) = a*X(n) + cin the random sequence. β¨IADD(local input,int *) β On entry,IADDis an array of dimension 2, that contains the 16-lower and 15-higher bits of the constantcto jump fromX(n)toX(n+1) = a*X(n) + cin the random sequence. πIRANN(local input,int *) β On entry,IRANNis an array of dimension 2 that contains the 16-lower and 15-higher bits of the encoding ofX(n). πIRANM(local output,int *) β On entry,IRANMis an array of dimension 2. On exit, this array contains respectively the 16-lower and 15-higher bits of the encoding ofX(n+JUMPM). πIAM(local output,int *) β On entry,IAMis an array of dimension 2. On exit, whenJUMPMis greater than zero, this array contains the encoded constantAto jump fromX(n)toX(n+JUMPM)in the random sequence.IAM(0:1)contains respectively the 16-lower and 15-higher bits of this constantA. WhenJUMPMis less or equal than zero, this array is not referenced. π₯ICM(local output,int *) β On entry,ICMis an array of dimension 2. On exit, whenJUMPMis greater than zero, this array contains the encoded constantCto jump fromX(n)toX(n+JUMPM)in the random sequence.ICM(0:1)contains respectively the 16-lower and 15-higher bits of this constantC. WhenJUMPMis less or equal than zero, this array is not referenced. π
π SEE ALSO π
HPL_ladd (3)HPL_lmul (3)HPL_setran (3)HPL_jumpit (3)HPL_rand (3)
HPL 2.2 πΈ February 24, 2016 π HPL_xjumpm(3) β that's the version, date, and manual name, bestie. Byeee, stay random! π«Άβ¨
π¦ where this page comes from
- fedora 43: hpl-doc 2.2-22.fc43 Β· LicenseRef-Callaway-BSD-with-advertising
- fedora 44: hpl-doc 2.2-23.fc44 Β· LicenseRef-Callaway-BSD-with-advertising
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms