dm_hash Module

Non-cryptographic hash functions (DJB2, DJB2a, FNV-1, FNV-1a).


Uses

  • module~~dm_hash~~UsesGraph module~dm_hash dm_hash module~dm_kind dm_kind module~dm_hash->module~dm_kind module~dm_platform dm_platform module~dm_hash->module~dm_platform iso_fortran_env iso_fortran_env module~dm_kind->iso_fortran_env

Used by

  • module~~dm_hash~~UsedByGraph module~dm_hash dm_hash module~dm_cgi dm_cgi module~dm_cgi->module~dm_hash module~dm_hash_table dm_hash_table module~dm_hash_table->module~dm_hash module~dmpack dmpack module~dmpack->module~dm_hash module~dmpack->module~dm_cgi module~dmpack->module~dm_hash_table module~dm_cgi_router dm_cgi_router module~dmpack->module~dm_cgi_router module~dm_fcgi dm_fcgi module~dmpack->module~dm_fcgi module~dm_cgi_router->module~dm_cgi module~dm_cgi_router->module~dm_hash_table module~dm_fcgi->module~dm_cgi proc~dm_html_cgi_env dm_html_cgi_env proc~dm_html_cgi_env->module~dm_cgi

Functions

public pure elemental function dm_hash_djb2(str) result(hash)

Dan Bernstein’s DJB2 non-cryptographic hash algorithm.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: str

Input string.

Return Value integer(kind=i8)

public pure elemental function dm_hash_djb2a(str) result(hash)

Dan Bernstein’s DJB2a (XOR) non-cryptographic hash algorithm.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: str

Input string.

Return Value integer(kind=i8)

public pure elemental function dm_hash_fnv1(str) result(hash)

32-bit Fowler–Noll–Vo hash function (FNV-1). Uses a 64-bit signed integer to store the unsigned 32-bit hash.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: str

Input string.

Return Value integer(kind=i8)

public pure elemental function dm_hash_fnv1a(str) result(hash)

32-bit Fowler–Noll–Vo hash function (FNV-1a). Uses a 64-bit signed integer to store the unsigned 32-bit hash.

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: str

Input string.

Return Value integer(kind=i8)