[][src]Crate t1ha

t1ha = { Fast Positive Hash, aka "Позитивный Хэш" } by Positive Technologies

Briefly, it is a 64-bit Hash Function:

  1. Created for 64-bit little-endian platforms, in predominantly for x86_64, but portable and without penalties it can run on any 64-bit CPU.
  2. In most cases up to 15% faster than City64, xxHash, mum-hash, metro-hash and all others portable hash-functions (which do not use specific hardware tricks).
  3. Not suitable for cryptography.

The Future will Positive. Всё будет хорошо.

ACKNOWLEDGEMENT: The t1ha was originally developed by Leonid Yuriev (Леонид Юрьев) for The 1Hippeus project - zerocopy messaging in the spirit of Sparta!

Structs

T1haHasher

An implementation of the t1ha hash function.

T1ha2Hasher

An implementation of t1ha2 stream hasher.

Functions

t1ha0

t1ha library offers the t1ha0() function as the fastest for current CPU.

t1ha1_be

The big-endian variant for 64-bit CPU.

t1ha1_le

The little-endian variant for 64-bit CPU.

t1ha1

The little-endian variant for 64-bit CPU.

t1ha2_atonce

The at-once variant with 64-bit result

t1ha0_32be

The big-endian variant for 32-bit CPU.

t1ha0_32le

The little-endian variant for 32-bit CPU.

t1ha0_32

The little-endian variant for 32-bit CPU.

t1ha2_atonce128

The at-once variant with 128-bit result.

Type Definitions

T1haBuildHasher

A builder for default t1ha hashers.

T1haHashMap

A HashMap using a default t1ha hasher.

T1haHashSet

A HashSet using a default t1ha hasher.