spooky_hash 接口

public interface spooky_hash

SPOOKY_HASH 接口 (规范)


函数

private module function character_spooky_hash(key, seed) result(hash_code)

用于字符字符串的 SPOOKY 哈希函数

参数

类型 意图可选 属性 名称
character(len=*), intent(in) :: key
integer(kind=int_hash), intent(in) :: seed(2)

返回值 integer(kind=int_hash), (2)

private module function int16_spooky_hash(key, seed) result(hash_code)

用于 kind 为 int16 的秩 1 数组的 SPOOKY HASH 函数

参数

类型 意图可选 属性 名称
integer(kind=int16), intent(in) :: key(0:)
integer(kind=int_hash), intent(in) :: seed(2)

返回值 integer(kind=int_hash), (2)

private module function int32_spooky_hash(key, seed) result(hash_code)

用于 kind 为 int32 的秩 1 数组的 SPOOKY HASH 函数

参数

类型 意图可选 属性 名称
integer(kind=int32), intent(in) :: key(0:)
integer(kind=int_hash), intent(in) :: seed(2)

返回值 integer(kind=int_hash), (2)

private module function int64_spooky_hash(key, seed) result(hash_code)

用于 kind 为 int64 的秩 1 数组的 SPOOKY HASH 函数

参数

类型 意图可选 属性 名称
integer(kind=int64), intent(in) :: key(0:)
integer(kind=int_hash), intent(in) :: seed(2)

返回值 integer(kind=int_hash), (2)

private module function int8_spooky_hash(key, seed) result(hash_code)

用于 kind 为 int8 的秩 1 数组的 SPOOKY HASH 函数

参数

类型 意图可选 属性 名称
integer(kind=int8), intent(in) :: key(0:)
integer(kind=int_hash), intent(in) :: seed(2)

返回值 integer(kind=int_hash), (2)