Swap two integer values.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ip), | intent(inout) | :: | i1 | |||
| integer(kind=ip), | intent(inout) | :: | i2 |
pure elemental subroutine swap64(i1,i2) integer(ip),intent(inout) :: i1 integer(ip),intent(inout) :: i2 integer(ip) :: tmp tmp = i1 i1 = i2 i2 = tmp end subroutine swap64