Computes greatest common divisor.
IppStatus ippsGcd_BN(IppsBigNumState *a, IppsBigNumState *b, IppsBigNumState * g);
a |
First integer big number of IppsBigNumState. |
b |
Second integer big number of IppsBigNumState. |
g |
Greatest common divisor to a and b. |
This function is declared in the ippcp.h file. The function computes the greatest common divisor (GCD) for two positive integer big numbers.
The following pseudocode represents this function:
g ← gcd (a , b).
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 *g is smaller than the length of IppsBigNumState *a or IppsBigNumState *b. |
The size of IppsBigNumState *g should not be less than either the length of IppsBigNumState *a and IppsBigNumState *b.
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.