Port details |
- libdivide Fast prime counting function implementations
- 5.2.0 math
=3 5.0_1Version of this port present on the latest quarterly branch. - Maintainer: thierry@FreeBSD.org
 - Port Added: 2021-11-28 17:57:04
- Last Update: 2025-01-27 18:04:53
- Commit Hash: d9540cd
- People watching this port, also watch:: wa-aspell, medit, ittapi, php81-pear, apache-log4j2
- License: ZLIB BSL
- WWW:
- https://libdivide.com/
- Description:
- 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.
See also: https://github.com/ridiculousfish/libdivide/
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- libdivide>0:math/libdivide
- To install the port:
- cd /usr/ports/math/libdivide/ && make install clean
- To add the package, run one of these commands:
- pkg install math/libdivide
- pkg install libdivide
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: libdivide
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1737904949
SHA256 (ridiculousfish-libdivide-v5.2.0_GH0.tar.gz) = 73ae910c4cdbda823b7df2c1e0e1e7427464ebc43fc770b1a30bb598cb703f49
SIZE (ridiculousfish-libdivide-v5.2.0_GH0.tar.gz) = 1283521
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- cmake : devel/cmake-core
- ninja : devel/ninja
- This port is required by:
- for Build
-
- math/primecount
Configuration Options:
- ===> The following configuration options are available for libdivide-5.2.0:
NATIVE=off: Use native optimization (-march=native)
===> Use 'make config' to modify these settings
- Options name:
- math_libdivide
- USES:
- cmake compiler:c++11-lang
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Number of commits found: 9
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
5.2.0 27 Jan 2025 18:04:53
    |
Thierry Thomas (thierry)  |
math/libdivide: upgrade to v5.2.0
Releases notes at https://github.com/ridiculousfish/libdivide/releases |
5.0_1 18 Nov 2024 22:51:34
    |
Dimitry Andric (dim)  |
math/libdivide: fix build with clang 19
Clang 19 has become more strict about errors in member functions, which
results in errors building math/libdivide:
/wrkdirs/usr/ports/math/libdivide/work/libdivide-5.0/libdivide.h:3020:41:
error: no member named 'denom' in 'divider<T, ALGO>'
3020 | return div.denom.magic == other.denom.magic && div.denom.more
== other.denom.more;
| ~~~~~ ^
/wrkdirs/usr/ports/math/libdivide/work/libdivide-5.0/libdivide.h:3020:80:
error: no member named 'denom' in 'divider<T, ALGO>'
3020 | return div.denom.magic == other.denom.magic && div.denom.more
== other.denom.more;
|
~~~~~ ^
The member function `operator==()` should refer to `other.div.denom`
instead. Upstream fixed this in
https://github.com/ridiculousfish/libdivide/commit/fa020f3, so import it
as a patch.
PR: 282827
Approved by: thierry (maintainer)
MFH: 2024Q4 |
5.0_1 21 Jul 2023 08:03:10
    |
Yuri Victorovich (yuri)  |
math/libdivide: Add NATIVE option
PR: 272497
Approved by: thierry@ (maintainer) |
5.0 07 Mar 2023 16:27:47
    |
Thierry Thomas (thierry)  |
math/libdivide: remove -Werror
With clang 15, a deprecation warning is emitted in a test file, and this
makes the compilation fail:
a function declaration without a prototype is deprecated in all versions of C |
07 Sep 2022 21:58:51
    |
Stefan Eßer (se)  |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
5.0 07 Sep 2022 21:10:59
    |
Stefan Eßer (se)  |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
5.0 27 Aug 2022 14:40:55
    |
Thierry Thomas (thierry)  Author: Robert Clausecker |
math/libdivide: fix build on armv6/armv7
The NEON code included in this library is for arm64 only.
Disable use of NEON on armv6/armv7.
See <https://github.com/ridiculousfish/libdivide/issues/102>.
PR: 265870
Reported by: fuz (at) fuz.su |
5.0 20 Jul 2022 14:22:24
    |
Tobias C. Berner (tcberner)  |
math: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Dalton <aaron@daltons.ca>
* Alessando Sagratini <ale_sagra@hotmail.com>
* Alex Dupre <ale@FreeBSD.org>
* Alexey Dokuchaev <danfe@FreeBSD.org>
* Amarendra Godbole <amarendra.godbole@gmail.com>
* Anders Nordby <anders@FreeBSD.org>
* Andreas Fehlner (fehlner@gmx.de)
* Andrew L. Neporada <andrew@chg.ru>
* Andrey <gugu@zoo.rambler.ru>
* Andrey Zakhvatov (Only the first 15 lines of the commit message are shown above ) |
5.0 28 Nov 2021 17:55:56
    |
Thierry Thomas (thierry)  |
math/libdivide: adding a library for optimized integer division
To be used by math/primecount. |
Number of commits found: 9
|