| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=isp), | intent(in) | :: | N |
pure function is_power_of_two(N) result(value) integer(isp), intent(in) :: N logical :: value if (N < 1) then value = .false. else value = (iand(N, N - 1) == 0) end if end function is_power_of_two