Developer Reference

Contents

Big Number Arithmetic

This section describes primitives for performing arithmetic operations with integer big numbers of variable length.
The magnitude of an integer big number is specified by an array of unsigned integer data type
Ipp32u
rp
[length]
and corresponds to the mathematical value
This section uses the following definition for the sign of an integer big number:
typedef enum { IppsBigNumNEG=0, IppsBigNumPOS=1 } IppsBigNumSGN;
The functions described in this section use the context
IppsBigNumState
to serve as an operational vehicle that carries not only the sign and value of the data, but also a sufficient working buffer reserved for various arithmetic operations. The length of the context
IppsBigNumState
is defined as the length of the data carried by the structure and the size of the context
IppsBigNumState
is therefore defined as the maximal length of the data that this operational vehicle can carry.
In all unsigned big number arithmetic functions, integers pointed to by
a
,
b
, and
r
are all of (
n
*32) bits.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.