Next: TRANSFER, Previous: TINY, Up: Intrinsic Procedures
TRAILZ
— Number of trailing zero bits of an integerTRAILZ
returns the number of trailing zero bits of an integer.
RESULT = TRAILZ(I)
I | Shall be of type INTEGER .
|
INTEGER
.
If all the bits of I
are zero, the result value is BIT_SIZE(I)
.
PROGRAM test_trailz WRITE (*,*) TRAILZ(8) ! prints 3 END PROGRAM