Clicky

Fortran Wiki
maskl

Description

maskl(i[, kind]) has its leftmost i bits set to 1, and the remaining bits set to 0.

Standard

Fortran 2008 and later

Class

Elemental function

Syntax

result = maskl(i[, kind])

Arguments

  • i - Shall be of type integer.
  • kind - Shall be a scalar constant expression of type integer.

Return value

The return value is of type integer. If kind is present, it specifies the kind value of the return type; otherwise, it is of the default integer kind.

See also

maskr

category: intrinsics