llvm::APInt::multiplicativeInverse

Return the multiplicative inverse of an odd APInt modulo 2^BitWidth.

Synopsis

Declared in <llvm/ADT/APInt.h>

APInt
multiplicativeInverse() const;

Return Value

The multiplicative inverse of this odd APInt modulo 2^BitWidth.