Gcd_BN

Computes greatest common divisor.

Syntax

IppStatus ippsGcd_BN(IppsBigNumState *a, IppsBigNumState *b, IppsBigNumState * g);

Parameters

a

First integer big number of IppsBigNumState.

b

Second integer big number of IppsBigNumState.

g

Greatest common divisor to a and b.

Description

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).

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 *g is smaller than the length of IppsBigNumState *a or IppsBigNumState *b.

Note iconNote

The size of IppsBigNumState *g should not be less than either the length of IppsBigNumState *a and IppsBigNumState *b.


Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.