Data structures for Fortran
Source Files
Modules
Procedures
Derived Types
pack_pair
Function
5 statements
Source File
hash.f90
datastructs_hash_mod
pack_pair
Contents
public function pack_pair(a, b) result(r)
Pack a pair of 32 bit integers into a single integer of 64 bits Only works for positive integers!
Arguments
Type
Intent
Optional
Attributes
Name
integer(kind=i4),
intent(in)
::
a
integer(kind=i4),
intent(in)
::
b
Return Value
integer(kind=i8)