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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/cityhash | 1.1.1_1 |
| DragonFly | devel/cityhash | 1.1.1_1 |
| HardenedBSD | devel/cityhash | 1.1.1_1 |
| GhostBSD | devel/cityhash | 1.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.1.1_1 | 1.1.1_1 | 1.1.1_1 | 1.1.1_1 | 1.1.1_1 |
| FreeBSD:14:quarterly | 1.1.1_1 | 1.1.1_1 | n/a | 1.1.1_1 | 1.1.1_1 |
| FreeBSD:15:latest | 1.1.1_1 | 1.1.1_1 | n/a | 1.1.1_1 | 1.1.1_1 |
| FreeBSD:15:quarterly | 1.1.1_1 | 1.1.1_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.1.1_1 | 1.1.1_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
- USES
- cpe libtool
- Service scripts
- none
Message after installing
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
| File | Size | SHA256 |
|---|---|---|
| google-cityhash-1.1.1-8af9b8c_GH0.tar.gz | 380310 | b13bb003d682c8068d164e782463c2c58eebfa75227e6a2fde1603e2da03a55e |
Commit history 0
No commits in the history this site was built from.