CRE Programmer's Guide
Math Functions
Common Run-Time Environment (CRE) Programmer’s Guide—528146-004
7-23
Sixty-Four-Bit Logical Operations (Bit Manipulation
Functions)
number
is the number to which the Upper function is applied.
Return Value
Upper returns the smallest integer that is not less than number.
Example
REAL(64) r;
r := RTL_Upper_Real64_(1.8L0); ! r gets 2.0L0
r := RTL_Upper_Real64_(-1.8L0); ! r gets -1.0L0
Sixty-Four-Bit Logical Operations (Bit
Manipulation Functions)
This subsection describes the functions that manipulate 64-bit integer operands.
Table 7-3
on page 7-23 summarizes the 64-bit logical operations. Descriptions of the
functions themselves follow.
Table 7-3. Sixty-Four-Bit Logical Operations
Function
Name Function Action
Shift_Left Returns its 64-bit integer parameter logically shifted left.
Shift_Right Returns its 64-bit integer parameter logically shifted right.
Complement Returns the one’s complement of its 64-bit integer parameter.
AND Returns the bit-wise logical AND of its two 64-bit integer parameters.
OR Returns the bit-wise logical OR of its two 64-bit integer parameters.
XOR Returns the bit-wise logical XOR of its two 64-bit integer parameters.
Remainder Returns the remainder from the integer division of its two 64-bit operands.