Add_BNU

Adds two unsigned integer big numbers of the same length.

Syntax

IppStatus ippsAdd_BNU(const Ipp32u *a, const Ipp32u *b, Ipp32u *r, int n, Ipp32u * carry);

Parameters

a

First unsigned integer big number of n*32 bits.

b

Second unsigned integer big number of n*32 bits.

n

Size specified for the input parameters a and b and the result parameter r. The size is expressed in the number of 32-bit words.

r

On output, addition result.

carry

On output, addition carry. The possible value is 0 or 1.

Description

This function is declared in the ippcp.h file. The function adds two unsigned integer big numbers of the same length and returns the result of the operation with a possible carry.

The following pseudocode represents this function:

(carry|(*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.

ippStsLengthErr

Indicates an error condition if n is less than or equal to 0.

Submit feedback on this help topic

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