Cryptography Reference
In-Depth Information
Table 14-4. LINT logical operators
==
equality
!=
inequality
<, < =
less than, less than or equal to
>, > =
greater than, greater than or equal to
Table 14-5. LINT assignment operators
=
simple assignment
+=
assignment after addition
-=
assignment after subtraction
*=
assignment after multiplication
/=
assignment after division
%=
assignment after remainder
&=
assignment after bitwise AND
|=
assignment after bitwise OR
ˆ =
assignment after bitwise XOR
<< =
assignment after left shift
>> =
assignment after right shift
with the operation are passed as references. Since the operator functions do not
change their arguments, the references are declared as const :
const LINT operator* (const LINT& lm, const LINT& ln)
{
LINT prd;
int error;
The first step is to query the operator function as to whether the arguments lm
and ln passed by reference have been initialized. If this is not the case for both ar-
guments, then error handling goes into effect, and the member function panic() ,
declared as static, is called (cf. Chapter 15).
if (lm.status == E_LINT_INV)
LINT::panic (E_LINT_VAL, "*", 1, __LINE__);
if (ln.status == E_LINT_INV)
LINT::panic (E_LINT_VAL, "*", 2, __LINE__);
 
Search WWH ::




Custom Search