Cryptography Reference
In-Depth Information
exchange values of two LINT objects
Function:
const LINT&
LINT::fswap (LINT& b);
Syntax:
implicit argument a
position b (the value to be swapped for a )
Input:
pointer to the implicit argument with the value b
Return:
a.fswap (b); exchanges the values a and b
Example:
15.2 Number Theory
In contrast to the arithmetic functions, the following number-theoretic member
functions do not overwrite the implicit first argument with the result. The reason
for this is that with more complex functions it has been shown in practice not
to be practical to overwrite, as is the case with simple arithmetic functions.
The results of the following functions are thus returned as values rather than as
pointers.
Function:
calculate the greatest integer less than or equal to the
base-2 logarithm of a LINT object
unsigned int
LINT::ld (void);
Syntax:
implicit argument a
Input:
integer part of the base-2 logarithm of a
Return:
i = a.ld ();
Example:
 
Search WWH ::




Custom Search