Returns the greatest common divisor of A and B.

Synopsis

Declared in <llvm/ADT/DynamicAPInt.h>

DynamicAPInt
gcd(
    DynamicAPInt const& A,
    DynamicAPInt const& B);

Description

Both operands must be non‐negative.

Return Value

Greatest common divisor of A and B.

Parameters

Name

Description

A

First non‐negative operand.

B

Second non‐negative operand.

Created with MrDocs