From owner-svn-ports-head@freebsd.org Sat Aug 17 19:13:05 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E1181CE9E9; Sat, 17 Aug 2019 19:13:05 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 469qb55MMfz4f2s; Sat, 17 Aug 2019 19:13:05 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 99EEE1E49F; Sat, 17 Aug 2019 19:13:05 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x7HJD5ZK024971; Sat, 17 Aug 2019 19:13:05 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x7HJD44L024967; Sat, 17 Aug 2019 19:13:04 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201908171913.x7HJD44L024967@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sat, 17 Aug 2019 19:13:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r509162 - in head/devel: . fxdiv X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/devel: . fxdiv X-SVN-Commit-Revision: 509162 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Aug 2019 19:13:05 -0000 Author: yuri Date: Sat Aug 17 19:13:04 2019 New Revision: 509162 URL: https://svnweb.freebsd.org/changeset/ports/509162 Log: New port: devel/fxdiv: C/C++ header-only library for division via FP inverse multiplication Added: head/devel/fxdiv/ head/devel/fxdiv/Makefile (contents, props changed) head/devel/fxdiv/distinfo (contents, props changed) head/devel/fxdiv/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sat Aug 17 18:26:14 2019 (r509161) +++ head/devel/Makefile Sat Aug 17 19:13:04 2019 (r509162) @@ -711,6 +711,7 @@ SUBDIR += fujaba SUBDIR += funnelweb SUBDIR += fuzzylite + SUBDIR += fxdiv SUBDIR += ga SUBDIR += gaa SUBDIR += gamin Added: head/devel/fxdiv/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/fxdiv/Makefile Sat Aug 17 19:13:04 2019 (r509162) @@ -0,0 +1,33 @@ +# $FreeBSD$ + +PORTNAME= fxdiv +PORTVERSION= g20181121 +CATEGORIES= devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C/C++ header-only library for division via FP inverse multiplication + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake +USE_GITHUB= yes +GH_ACCOUNT= Maratyszcza +GH_PROJECT= FXdiv +GH_TAGNAME= f8c5354 +USE_LDCONFIG= yes + +CMAKE_OFF= FXDIV_BUILD_TESTS FXDIV_BUILD_BENCHMARKS + +NO_BUILD= yes +NO_ARCH= yes + +PLIST_FILES= include/fxdiv.h + +do-test: + @cd ${BUILD_WRKSRC} && \ + ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DFXDIV_BUILD_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test + +.include Added: head/devel/fxdiv/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/fxdiv/distinfo Sat Aug 17 19:13:04 2019 (r509162) @@ -0,0 +1,3 @@ +TIMESTAMP = 1566067960 +SHA256 (Maratyszcza-FXdiv-g20181121-f8c5354_GH0.tar.gz) = 94258c95f737916127ab70df1aa79d39575ed48dc6d23155a89747122d5d7797 +SIZE (Maratyszcza-FXdiv-g20181121-f8c5354_GH0.tar.gz) = 8792 Added: head/devel/fxdiv/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/fxdiv/pkg-descr Sat Aug 17 19:13:04 2019 (r509162) @@ -0,0 +1,15 @@ +Header-only library for division via fixed-point multiplication by inverse. + +On modern CPUs and GPUs integer division is several times slower than +multiplication. FXdiv implements an algorithm to replace an integer division +with a multiplication and two shifts. This algorithm improves performance when +an application performs repeated divisions by the same divisor. + +Features: +* Integer division for uint32_t, uint64_t, and size_t +* Header-only library, no installation or build required +* Compatible with C99, C++, OpenCL, and CUDA +* Uses platform-specific compiler intrinsics for optimal performance +* Covered with unit tests and microbenchmarks + +WWW: https://github.com/Maratyszcza/FXdiv