From nobody Sun Nov 28 17:56:01 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id F3EFB18AEC32; Sun, 28 Nov 2021 17:56:01 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2GPF2GfVz4k57; Sun, 28 Nov 2021 17:56:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2992D13855; Sun, 28 Nov 2021 17:56:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1ASHu1sE021024; Sun, 28 Nov 2021 17:56:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ASHu1Qt021023; Sun, 28 Nov 2021 17:56:01 GMT (envelope-from git) Date: Sun, 28 Nov 2021 17:56:01 GMT Message-Id: <202111281756.1ASHu1Qt021023@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Thierry Thomas Subject: git: 55a132b6f601 - main - math/libdivide: adding a library for optimized integer division List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: thierry X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 55a132b6f601f15bf932a9516aeddc3385689991 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638122161; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kJmKWAc0knsFtGgSj7US024eWjNKkPJQanVK3Z1p3O4=; b=V2jFvpjwNhzdg6TUUuSd7r3PO9dFKDCh9HI5UXTrNvFf64JPvsReFUvnqedHSWkmffwxkx 6seVqv6L4EhqcHlP9xvmbWPEPmjziJQ8CDd993ngJegWFXaO27s+476zPEqOOdqGAUTERd uKmi0y+KvNWZ/PsIjJwO6VwD7yQfMpjiGUVvcTMwLVu2RPSa58UkFvn+LcDzlE+P8TM2Hx euC/gddrV7tV2fUbEd3lBMBxHuswoDwDH0wJhbLhcqW6BhZgi8yR0IiUWb9fPKQLx7LQqW 6DeFa97ywV1Mhvykbkm5TZEGMBaW7ZRssMSOjtrRzjFjequMq+PrSDBlWNmJ0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638122161; a=rsa-sha256; cv=none; b=HpodQ8jOGoaBpSR5NTVk+M35qYByqkJg5IGxXddCtj+FwACxb+fqWN+MZbosKxoX/A0wBf tfcbtDxa8Z2XzE9cY/BGdBakqHSxjuekeVJim9VjO3PgS1knGR+xTAhM+9i3BNSTUIsjQV cFI/KQehsNXDIv/91vlNwSivlBJ85yMvyyMHY8q/76CmebTfcbumOlXwXWUXVXDm1v+xwr 1+gyI7tFN9me9VWpbDto1rnNuZ4sY+xP4slj2XF1L8x+hNE6JPBGHXlInhnThB8lYCknJG XJu1KjMlWui8hsryYQ7emXV/D0iaFxIUnPgj08WGZ+TY4Z+9B7zotGoIRtkUqA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=55a132b6f601f15bf932a9516aeddc3385689991 commit 55a132b6f601f15bf932a9516aeddc3385689991 Author: Thierry Thomas AuthorDate: 2021-11-28 16:26:03 +0000 Commit: Thierry Thomas CommitDate: 2021-11-28 17:55:56 +0000 math/libdivide: adding a library for optimized integer division To be used by math/primecount. --- math/Makefile | 1 + math/libdivide/Makefile | 26 ++++++++++++++++++++++++++ math/libdivide/distinfo | 3 +++ math/libdivide/pkg-descr | 11 +++++++++++ 4 files changed, 41 insertions(+) diff --git a/math/Makefile b/math/Makefile index 6a9063d94961..5341be1e6987 100644 --- a/math/Makefile +++ b/math/Makefile @@ -398,6 +398,7 @@ SUBDIR += libRmath SUBDIR += libbraiding SUBDIR += libccd + SUBDIR += libdivide SUBDIR += libflame SUBDIR += libhomfly SUBDIR += libmesh diff --git a/math/libdivide/Makefile b/math/libdivide/Makefile new file mode 100644 index 000000000000..689e0e917306 --- /dev/null +++ b/math/libdivide/Makefile @@ -0,0 +1,26 @@ +# Created by: thierry@pompo.net + +PORTNAME= libdivide +DISTVERSION= 5.0 +CATEGORIES= math + +MAINTAINER= thierry@FreeBSD.org +COMMENT= Fast prime counting function implementations + +LICENSE= ZLIB BSL +LICENSE_COMB= multi + +USE_GITHUB= yes +GH_ACCOUNT= ridiculousfish + +USES= cmake compiler:c++11-lang +NO_ARCH= yes + +PLIST_FILES= include/libdivide.h \ + lib/cmake/libdivide/libdivideConfig.cmake \ + lib/cmake/libdivide/libdivideConfigVersion.cmake + +do-test: + ${CONFIGURE_WRKSRC}/tester + +.include diff --git a/math/libdivide/distinfo b/math/libdivide/distinfo new file mode 100644 index 000000000000..ac6777060bdd --- /dev/null +++ b/math/libdivide/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1638115355 +SHA256 (ridiculousfish-libdivide-5.0_GH0.tar.gz) = 01ffdf90bc475e42170741d381eb9cfb631d9d7ddac7337368bcd80df8c98356 +SIZE (ridiculousfish-libdivide-5.0_GH0.tar.gz) = 680611 diff --git a/math/libdivide/pkg-descr b/math/libdivide/pkg-descr new file mode 100644 index 000000000000..a65331c7f6bf --- /dev/null +++ b/math/libdivide/pkg-descr @@ -0,0 +1,11 @@ +libdivide allows you to replace expensive integer divides with comparatively +cheap multiplication and bitshifts. Compilers usually do this, but only when the +divisor is known at compile time. libdivide allows you to take advantage of it +at runtime. The result is that integer division can become faster - a lot +faster. + +Furthermore, libdivide allows you to divide SIMD vectors by runtime constants, +which is especially nice because SIMD typically lacks integer division. + +WWW: https://libdivide.com/ +WWW: https://github.com/ridiculousfish/libdivide/