BSD Ports

math/libdivide 5.0_1 DragonFly

Fast prime counting function implementations

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSL, ZLIB
Categories
math
Package size
18.1 KiB, 126.0 KiB installed

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/

In the other systems

SystemPortVersion
DragonFlymath/libdivide5.0_1
FreeBSDmath/libdivide5.4.0

Install

Binary package:

pkg install libdivide

From DPorts:

cd /usr/dports/math/libdivide && make install clean

Dependencies

No port depends on this one.