Next: Alignment of `poly_int`

s, Previous: Comparisons involving `poly_int`

, Up: poly_int [Contents][Index]

`poly_int`

sAddition, subtraction, negation and bit inversion all work normally for
`poly_int`

s. Multiplication by a constant multiplier and left
shifting by a constant shift amount also work normally. General
multiplication of two `poly_int`

s is not supported and is not
useful in practice.

Other operations are only conditionally supported: the operation might succeed or might fail, depending on the inputs.

This section describes both types of operation.

• Using `poly_int` with C++ arithmetic operators: | ||

• `wi` arithmetic on `poly_int` s: | ||

• Division of `poly_int` s: | ||

• Other `poly_int` arithmetic: |