notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
Port details on branch 2024Q4
libdivide Fast prime counting function implementations
5.0_1 math on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 5.0_1Version of this port present on the latest quarterly branch.
Maintainer: thierry@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2024-11-18 22:54:27
Last Update: 2024-11-18 22:52:33
Commit Hash: 2216ea3
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/
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (7 items)
Collapse this list.
  1. include/libdivide.h
  2. lib/cmake/libdivide/libdivideConfig.cmake
  3. lib/cmake/libdivide/libdivideConfigVersion.cmake
  4. /usr/local/share/licenses/libdivide-5.0_1/catalog.mk
  5. /usr/local/share/licenses/libdivide-5.0_1/LICENSE
  6. /usr/local/share/licenses/libdivide-5.0_1/ZLIB
  7. /usr/local/share/licenses/libdivide-5.0_1/BSL
Collapse this list.
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 = 1731919803 SHA256 (ridiculousfish-libdivide-5.0_GH0.tar.gz) = 01ffdf90bc475e42170741d381eb9cfb631d9d7ddac7337368bcd80df8c98356 SIZE (ridiculousfish-libdivide-5.0_GH0.tar.gz) = 680611

Expand this list (2 items)

Collapse this list.

SHA256 (fa020f3b3e7ab3e80a2b23ab70bad0f46dbab795.patch) = 47ed962063ff09c4030a95297803e99b5899795bcaba7630fa3c5e0f80f583dd SIZE (fa020f3b3e7ab3e80a2b23ab70bad0f46dbab795.patch) = 829

Collapse this list.


No package information for this port in our database
Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link: pkg-fallout
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. cmake : devel/cmake-core
  2. ninja : devel/ninja
There are no ports dependent upon this port

Configuration Options:
===> The following configuration options are available for libdivide-5.0_1: 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:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/ridiculousfish/libdivide/tar.gz/5.0?dummy=/
Collapse this list.

Number of commits found: 1

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
5.0_1
18 Nov 2024 22:52:33
commit hash: 2216ea39e937ac6066e2ca788bd477193e05ab47commit hash: 2216ea39e937ac6066e2ca788bd477193e05ab47commit hash: 2216ea39e937ac6066e2ca788bd477193e05ab47commit hash: 2216ea39e937ac6066e2ca788bd477193e05ab47 files touched by this commit
Dimitry Andric (dim) search for other commits by this committer
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

(cherry picked from commit 822b0e7aebed327a924dc812b43c7cce2b19f7ea)

Number of commits found: 1