Visible to Intel only — GUID: GUID-0FC5ABE0-2D3D-4FF0-A96C-B4E8EFBDC9B5
Visible to Intel only — GUID: GUID-0FC5ABE0-2D3D-4FF0-A96C-B4E8EFBDC9B5
Gcd_BN
Computes greatest common divisor.
Syntax
IppStatus ippsGcd_BN(IppsBigNumState* pA, IppsBigNumState* pB, IppsBigNumState* pGCD);
Include Files
ippcp.h
Parameters
pA |
Pointer to the first integer big number of IppsBigNumState. |
pB |
Pointer to the second integer big number of IppsBigNumState. |
pCGD |
Pointer to the greatest common divisor to pA and pB. |
Description
The function computes the greatest common divisor (GCD) for two positive integer big numbers.
The following pseudocode represents this function:
pCGD←gcd (pA ,pB).
Return Values
ippStsNoErr |
Indicates no error. Any other value indicates an error or warning. |
ippStsNullPtrErr |
Indicates an error condition if any of the specified pointers is NULL. |
ippStsOutOfRangeErr |
Indicates an error condition if IppsBigNumState*pCGD is smaller than the length of IppsBigNumState*pA or IppsBigNumState*pB. |
ippStsContextMatchErr |
Indicates an error condition if any of the context parameters does not match the operation. |