ΒΆllvm::APInt GreatestCommonDivisor(llvm::APInt A,
                                  llvm::APInt B)

Description

Compute GCD of two unsigned APInt values. This function returns the greatest common divisor of the two APInt values using Stein's algorithm.

Declared at: llvm/include/llvm/ADT/APInt.h:2152

Parameters

llvm::APInt A
llvm::APInt B

Returns

the greatest common divisor of A and B.