Purpose
Performs a left-justified mask.
Argument type and attributes
- I
- An INTENT(IN) INTEGER. Its value
must be non-negative, and less than or equal to the number of bits
for the kind of the result.
- KIND (optional)
- An INTENT(IN) INTEGER scalar.
The actual argument corresponding to KIND must
be a constant expression.
Result type and attributes
The result is
an integer. In the presence of KIND argument, its kind is specified
by the value of KIND. Otherwise, its kind is of default integer type.
Result value
The leftmost I bits set to
1 and the other bits set to 0.
Example
MASKL (1)
has the result -2147483648.