HPL_ladd(3)
π HPL_ladd(3) π
okay bestie, welcome to the HPL library functions corner of the manual π this one is literally the moment two long positive integers get added together, no cap.
β¨ NAME β¨
HPL_ladd β adds two long positive integers. that's it, that's the whole job description π
πΈ SYNOPSIS πΈ
#include "hpl.h"
void HPL_ladd( int * J, int * K, int * I );
π¦ DESCRIPTION π¦
okay so here's the tea π HPL_ladd adds without carry two long positive integers K and J, and puts the result into I.
β οΈ and yes, bestie, clock the "without carry" part. that is not a vibe, that is the actual spec. no carry. periodt.
the long integers I, J, and K are encoded on 64 bits using an array of 2 integers. the 32-lower bits are stored in the first entry of each array, and the 32-higher bits are stored in the second entry. lowkey elegant, highkey cursed, iykyk π
π ARGUMENTS π
J(local input)int *β on entry,Jis an integer array of dimension2containing the encoded long integerJ. it's giving... an integer, encoded. β¨K(local input)int *β on entry,Kis an integer array of dimension2containing the encoded long integerK. the other half of the duo, main character energy fr fr π«ΆI(local output)int *β on entry,Iis an integer array of dimension2. on exit, this array contains the encoded long integer result. the glow-up arc goes here ππ₯
π SEE ALSO π
HPL_lmul(3)HPL_setran(3)HPL_xjumpm(3)HPL_jumpit(3)HPL_rand(3)
and that's the whole page, bestie, you ate it up π this was HPL 2.2, dated February 24, 2016 β slay, iconic, no notes π β¨
π¦ 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