HPL_jumpit(3)
π HPL_jumpit β it's giving "glow up the random sequence" β¨
okay bestie, this is a page from the HPL Library Functions manual set, and the star of the show is HPL_jumpit(3). buckle up π
πΈ NAME πΈ
HPL_jumpit β jump into the random sequence. that's it. that's the whole vibe. π¦
β¨ SYNOPSIS β¨
#include "hpl.h"
void HPL_jumpit( int * MULT, int * IADD, int * IRANN, int * IRANM );
no cap, that's the entire signature. four pointers, zero drama π
π DESCRIPTION π
so here's the tea π: HPL_jumpit literally jumps through the random sequence. it takes the number X(n) that's encoded in IRANN and hops all the way over to the number X(m) encoded in IRANM, using the constants A and C that are encoded in MULT and IADD:
X(m) = A * X(n) + C
and bestie, the constants A and C obviously depend on m and n β like, obviously π β so if you wanna know how to initialize them, go check out the function HPL_xjumpm. that's the one doing the setup. this one just does the jump. main character energy fr fr π
π ARGUMENTS π
MULT(local input)int *β on entry,MULTis an array of dimension 2 that holds the 16-lower and 15-higher bits of the constantA. yeah, sixteen then fifteen, not a typo, don't @ me πIADD(local input)int *β on entry,IADDis an array of dimension 2 that holds the 16-lower and 15-higher bits of the constantC.IRANN(local input)int *β on entry,IRANNis an array of dimension 2 that holds the 16-lower and 15-higher bits of the encoding ofX(n). this is your starting point bestie, the "before" pic πΈ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(m). and THAT'S the glow-up, the "after" pic π slay.
π¦ SEE ALSO π¦
HPL_ladd (3)HPL_lmul (3)HPL_setran (3)HPL_xjumpm (3)HPL_rand (3)
go read those too, they're all part of the same little friend group π«Ά
and that's the whole page, bestie!! this little icon was brought to you by HPL 2.2, dated February 24, 2016 π stay random, stay iconic, and remember: jumping the sequence is free, but reading HPL_xjumpm first is self-care πΈβ¨π
π¦ 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