TRAILZ(3f)

DESCRIPTION
TRAILZ returns the number of trailing zero bits of an integer.

STANDARD
Fortran 2008 and later

CLASS
Elemental function

SYNTAX
RESULT = TRAILZ(I)

ARGUMENTS

I Shall be of type INTEGER.

RETURN VALUE
The type of the return value is the default INTEGER. If all the bits of I are zero, the result value is BIT_SIZE(I).

EXAMPLE
          PROGRAM test_trailz
            WRITE (*,*) TRAILZ(8) ! prints 3
          END PROGRAM

SEE ALSO
BIT_SIZE, LEADZ, POPPAR, POPCNT

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).