BSD Ports

devel/cityhash 1.1.1_1 FreeBSD

Family of hash functions

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
MIT
Categories
devel
Package size
14.2 KiB, 35.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

SystemPortVersion
FreeBSDdevel/cityhash1.1.1_1
DragonFlydevel/cityhash1.1.1_1
HardenedBSDdevel/cityhash1.1.1_1
GhostBSDdevel/cityhash1.1.1_1

Install

Binary package:

pkg install cityhash

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	cityhash>0:devel/cityhash
LIB_DEPENDS=	libcityhash.so:devel/cityhash

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.1.1_11.1.1_11.1.1_11.1.1_11.1.1_1
FreeBSD:14:quarterly1.1.1_11.1.1_1n/a1.1.1_11.1.1_1
FreeBSD:15:latest1.1.1_11.1.1_1n/a1.1.1_11.1.1_1
FreeBSD:15:quarterly1.1.1_11.1.1_1n/an/an/a
FreeBSD:16:latest1.1.1_11.1.1_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

No port depends on this one.

Configuration

Options name: devel_cityhash

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
cpe libtool
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

Files

pkg-plist 7
  • include/city.h
  • lib/libcityhash.a
  • lib/libcityhash.so
  • lib/libcityhash.so.0
  • lib/libcityhash.so.0.0.0
  • share/doc/cityhash/NEWS
  • share/doc/cityhash/README
distinfo 1
FileSizeSHA256
google-cityhash-1.1.1-8af9b8c_GH0.tar.gz380310b13bb003d682c8068d164e782463c2c58eebfa75227e6a2fde1603e2da03a55e

Commit history 0

No commits in the history this site was built from.