.. Copyright 1988-2022 Free Software Foundation, Inc. This is part of the GCC manual. For copying conditions, see the copyright.rst file. .. _maskl: MASKL --- Left justified mask ***************************** .. index:: MASKL, mask, left justified .. function:: MASKL(I, KIND) ``MASKL(I[, KIND])`` has its leftmost :samp:`{I}` bits set to 1, and the remaining bits set to 0. :param I: Shall be of type ``INTEGER``. :param KIND: Shall be a scalar constant expression of type ``INTEGER``. :return: The return value is of type ``INTEGER``. If :samp:`{KIND}` is present, it specifies the kind value of the return type; otherwise, it is of the default integer kind. Standard: Fortran 2008 and later Class: Elemental function Syntax: .. code-block:: fortran RESULT = MASKL(I[, KIND]) See also: :ref:`MASKR`