BSD Ports

devel/cityhash 1.1.1_1 DragonFly

Family of hash functions

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel
Package size
11.8 KiB, 32.4 KiB installed

Description

CityHash provides hash functions for strings. The functions mix the input bits thoroughly but are not suitable for cryptography. See "Hash Quality," below, for details on how CityHash was tested and so on.

Functions by CityHash:

  • CityHash32() returns a 32-bit hash.
  • CityHash64() and similar return a 64-bit hash.
  • CityHash128() and similar return a 128-bit hash and are tuned for strings of at least a few hundred bytes. Depending on your compiler and hardware, it's likely faster than CityHash64() on sufficiently long strings. It's slower than necessary on shorter strings, but we expect that case to be relatively unimportant.
  • CityHashCrc128() and similar are variants of CityHash128() that depend on _mm_crc32_u64(), an intrinsic that compiles to a CRC32 instruction on some CPUs. However, none of the functions we provide are CRCs.
  • CityHashCrc256() is a variant of CityHashCrc128() that also depends on _mm_crc32_u64(). It returns a 256-bit hash.

All members of the CityHash family were designed with heavy reliance on previous work by Austin Appleby, Bob Jenkins, and others. For example, CityHash32 has many similarities with Murmur3a.

In the other systems

The newest version among them is 1.1.1, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/cityhash1.1.1_1 newestnone known-[email protected]-
FreeBSDdevel/cityhash1.1.1_1 newestnone known-[email protected]-
HardenedBSDdevel/cityhash1.1.1_1 newestno data-[email protected]-
GhostBSDdevel/cityhash1.1.1_1 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install cityhash

From DPorts:

cd /usr/dports/devel/cityhash && make install clean

Dependencies

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

===>   NOTICE:

The cityhash port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing