oa::crypto::bigint::div_rem
Compute batched unsigned limb div rem. Operands are public U32 [batch, words] rows of little-endian limbs, with 1..=128 words (32..=4096 bits). Records device work without host reads or a host wait. This public-data route does not accept cryptographic secrets and makes no constant-time or performance claim. Returns (quotient, remainder, status); status is U32 [batch]. A zero divisor produces status 0, quotient 0 and remainder equal to the dividend. Otherwise status is 1 and division is exact. Errors Rejects rank, dtype, shape, ownership, address limits, allocation or recording failures.
Function Documentation
Compute batched unsigned limb div rem. Operands are public U32 [batch, words] rows of little-endian limbs, with 1..=128 words (32..=4096 bits). Records device work without host reads or a host wait. This public-data route does not accept cryptographic secrets and makes no constant-time or performance claim. Returns (quotient, remainder, status); status is U32 [batch]. A zero divisor produces status 0, quotient 0 and remainder equal to the dividend. Otherwise status is 1 and division is exact. Errors Rejects rank, dtype, shape, ownership, address limits, allocation or recording failures.