seeded_nmhash32_hasher Function

public pure function seeded_nmhash32_hasher(key)

Hashes a key with the NMHASH32 hash algorithm (Specifications)

Arguments: key - the key to be hashed seed - the seed (unused) for the hashing algorithm

Arguments

TypeIntentOptionalAttributesName
type(key_type), intent(in) :: key

Return Value integer(kind=int_hash)


Calls

proc~~seeded_nmhash32_hasher~~CallsGraph proc~seeded_nmhash32_hasher seeded_nmhash32_hasher interface~nmhash32 nmhash32 proc~seeded_nmhash32_hasher->interface~nmhash32

Contents


Source Code

    pure function seeded_nmhash32_hasher( key )
!! Version: Experimental
!!
!! Hashes a key with the NMHASH32 hash algorithm
!! ([Specifications](../page/specs/stdlib_hashmaps.html#seeded_nmhash32_hasher-calculates-a-hash-code-from-a-key))
!!
!! Arguments:
!!     key  - the key to be hashed
!!     seed - the seed (unused) for the hashing algorithm
        type(key_type), intent(in)    :: key
        integer(int_hash)             :: seeded_nmhash32_hasher

        seeded_nmhash32_hasher = nmhash32( key % value, &
            int( z'DEADBEEF', int32 ) )

    end function seeded_nmhash32_hasher