Computing A mod d (for small odd d without division and multiplication)

Torbjörn Granlund tg at gmplib.org
Sun Mar 15 20:42:37 CET 2026


Torbjörn Granlund <tg at gmplib.org> writes:

  Arm has means of computing carry-out for all elements of a vector
  register (CMHI, CMHS).  (I have not looked at the newer variable-length
  vector stuff (SVG?).)

SVE, apparently.  I do not know if this is implemented in any affordable
Arm hardware, though.

And that has vector add-with-carry, presumably akin to what PowerPC has.

https://dougallj.github.io/asil/

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-devel mailing list