From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Feb 10 14:40:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1D47CE5E for ; Sun, 10 Feb 2013 14:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 103F1101 for ; Sun, 10 Feb 2013 14:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1AEe1T9047721 for ; Sun, 10 Feb 2013 14:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1AEe1Ds047720; Sun, 10 Feb 2013 14:40:01 GMT (envelope-from gnats) Date: Sun, 10 Feb 2013 14:40:01 GMT Message-Id: <201302101440.r1AEe1Ds047720@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: ports/174793: commit references a PR X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dfilter service List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Feb 2013 14:40:02 -0000 The following reply was made to PR ports/174793; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/174793: commit references a PR Date: Sun, 10 Feb 2013 14:30:45 +0000 (UTC) Author: miwi Date: Sun Feb 10 14:30:35 2013 New Revision: 312029 URL: http://svnweb.freebsd.org/changeset/ports/312029 Log: 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. WWW: http://code.google.com/p/cityhash/ PR: ports/174793 Submitted by: Gvozdikov Veniamin Added: head/devel/cityhash/ head/devel/cityhash/Makefile (contents, props changed) head/devel/cityhash/distinfo (contents, props changed) head/devel/cityhash/files/ head/devel/cityhash/files/patch-src_city.cc (contents, props changed) head/devel/cityhash/pkg-descr (contents, props changed) head/devel/cityhash/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sun Feb 10 14:28:53 2013 (r312028) +++ head/devel/Makefile Sun Feb 10 14:30:35 2013 (r312029) @@ -201,6 +201,7 @@ SUBDIR += checkheaders SUBDIR += chrpath SUBDIR += cil + SUBDIR += cityhash SUBDIR += cl-alexandria SUBDIR += cl-alexandria-clisp SUBDIR += cl-alexandria-sbcl Added: head/devel/cityhash/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cityhash/Makefile Sun Feb 10 14:30:35 2013 (r312029) @@ -0,0 +1,17 @@ +# Created by: Gvozdikov Veniamin +# $FreeBSD$ + +PORTNAME= cityhash +PORTVERSION= 1.1.0 +CATEGORIES= devel +MASTER_SITES= GOOGLE_CODE + +MAINTAINER= g.veniamin@googlemail.com +COMMENT= Family of hash functions + +LICENSE= MIT + +GNU_CONFIGURE= yes +USE_LDCONFIG= yes + +.include Added: head/devel/cityhash/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cityhash/distinfo Sun Feb 10 14:30:35 2013 (r312029) @@ -0,0 +1,2 @@ +SHA256 (cityhash-1.1.0.tar.gz) = 0d07c13c6caf7c798856efa76df7dd2a8d24539240449538316ba4c3bd084679 +SIZE (cityhash-1.1.0.tar.gz) = 355571 Added: head/devel/cityhash/files/patch-src_city.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cityhash/files/patch-src_city.cc Sun Feb 10 14:30:35 2013 (r312029) @@ -0,0 +1,15 @@ +--- src/city.cc.orig 2012-12-24 12:40:59.863562632 +0400 ++++ src/city.cc 2012-12-24 12:48:07.077276386 +0400 +@@ -60,6 +60,12 @@ + #define bswap_32(x) OSSwapInt32(x) + #define bswap_64(x) OSSwapInt64(x) + ++#elif defined __FreeBSD__ ++ ++#include ++#define bswap_32(x) bswap32(x) ++#define bswap_64(x) bswap64(x) ++ + #else + + #include Added: head/devel/cityhash/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cityhash/pkg-descr Sun Feb 10 14:30:35 2013 (r312029) @@ -0,0 +1,24 @@ +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. + +WWW: http://code.google.com/p/cityhash/ Added: head/devel/cityhash/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cityhash/pkg-plist Sun Feb 10 14:30:35 2013 (r312029) @@ -0,0 +1,9 @@ +include/city.h +lib/libcityhash.a +lib/libcityhash.la +lib/libcityhash.so +lib/libcityhash.so.0 +%%DOCSDIR%%/COPYING +%%DOCSDIR%%/NEWS +%%DOCSDIR%%/README +@dirrm %%DOCSDIR%% _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"