Extended-Precision Integer Arithmetic Instructions Instructions
6 PTX instructions in this category - click any row for encoding, pseudocode, and full documentation.
| Mnemonic | Syntax | PTX Version | Summary |
|---|---|---|---|
| add.cc | add.cc.type d, a, b; | PTX ISA 1.2 | Performs integer addition and writes the carry-out value into the condition code register. |
| addc | addc{.cc}.type d, a, b; | PTX ISA 1.2 | Performs integer addition with carry-in and optionally writes the carry-out value into the condition code register. |
| mad.cc | mad{.hi,.lo}.cc.type d, a, b, c; | PTX ISA 3.0 | Multiplies two values, extracts either the high or low part of the result, and adds a third value. |
| madc | madc{.hi,.lo}{.cc}.type d, a, b, c; | PTX ISA 3.0 | Multiplies two values, extracts either the high or low part of the result, and adds a third value along with carry-in. |
| sub.cc | sub.cc.type d, a, b; | PTX ISA 1.2 | Performs integer subtraction and writes the borrow-out value into the condition code register. |
| subc | subc{.cc}.type d, a, b; | PTX ISA 1.2 | Performs integer subtraction with borrow-in and optionally writes the borrow-out value into the condition code register. |