MAC_BN_I

Multiplies two integer big numbers and accumulates the result with the third integer big number.

Syntax

IppStatus ippsMAC_BN_I(IppsBigNumState *a, IppsBigNumState *b, IppsBigNumState * r);

Parameters

a

Multiplicand of IppsBigNumState.

b

Multiplier of IppsBigNumState.

r

Multiplication result.

Description

This function is declared in the ippcp.h file. The function multiplies one integer big number by another and accumulates the result with the third input integer big number regardless of their signs and sizes. The function subsequently returns the result of the operation.

The following pseudocode represents this function:

r r + 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 *r is smaller than the result data length.

Note iconNote

The function executes only under the condition that the size IppsBigNumState *r is not less than the sum of the lengths of IppsBigNumState *a or that of IppsBigNumState *b minus one.


Submit feedback on this help topic

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