HPL_lmul(3)
π NAME π
HPL_lmul β bestie, this one multiplies 2 long positive integers. that's it. that's the whole job. β¨
π SYNOPSIS π
#include "hpl.h"
void HPL_lmul( int * K, int * J, int * I );
π¦ DESCRIPTION π¦
okay so HPL_lmul multiplies without carry two long positive integers K and J, and drops the result right into I. no cap, no carry. π
the long integers I, J, K are encoded on 64 bits using an array of 2 integers. here's the tea on how that layout works:
- the 32-lower bits live in the first entry of each array
- the 32-higher bits live in the second entry of each array
and because efficiency is that girl, the intrinsic modulo function is inlined. periodt. π
πΈ ARGUMENTS πΈ
Kβ (local input)int *on entry,Kis an integer array of dimension2containing the encoded long integerK. π«ΆJβ (local input)int *on entry,Jis an integer array of dimension2containing the encoded long integerJ. π«ΆIβ (local output)int *on entry,Iis an integer array of dimension2. on exit, this array contains the encoded long integer result. that's the glow-up moment right there β¨
π SEE ALSO π
HPL_ladd (3), HPL_setran (3), HPL_xjumpm (3), HPL_jumpit (3), HPL_rand (3).
HPL 2.2 Β· February 24, 2016 β mwah, that's the version and date bestie, this page is officially signed, sealed and slayed π πβ¨ππ¦πΈπ π«Άππβπ
π¦ 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