HPL_jumpit(3)

πŸ“¦ version 2.2, in fedora 43, fedora 44

πŸ’– 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, MULT is an array of dimension 2 that holds the 16-lower and 15-higher bits of the constant A. yeah, sixteen then fifteen, not a typo, don't @ me πŸ’€
  • IADD (local input) int * β€” on entry, IADD is an array of dimension 2 that holds the 16-lower and 15-higher bits of the constant C.
  • IRANN (local input) int * β€” on entry, IRANN is an array of dimension 2 that holds the 16-lower and 15-higher bits of the encoding of X(n). this is your starting point bestie, the "before" pic πŸ“Έ
  • IRANM (local output) int * β€” on entry, IRANM is an array of dimension 2. on exit, this array contains respectively the 16-lower and 15-higher bits of the encoding of X(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