Date: Sat, 17 Aug 2019 19:13:04 +0000 (UTC) From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r509162 - in head/devel: . fxdiv Message-ID: <201908171913.x7HJD44L024967@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908171913.x7HJD44L024967>