The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
This service is getting updated while this announcement is displayed. Commit processing is paused. Started at 16:21 - expected finish: 19:00 (was 18:00) UTC
Port details on branch 2024Q4
libdivideFast prime counting function implementations
5.0_1mathΣ=0 5.0_1Version of this port present on the latest quarterly branch.
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/
===> 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
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)