BSD Ports

math/libdivide 5.4.0 FreeBSD

Fast prime counting function implementations

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
9ce523da06
License
ZLIB, BSL
Categories
math
Package size
21.9 KiB, 152.1 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
FreeBSDmath/libdivide5.4.0
DragonFlymath/libdivide5.0_1

Install

Binary package:

pkg install libdivide

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	libdivide>0:math/libdivide

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest5.4.05.4.05.05.2.05.4.0
FreeBSD:14:quarterly5.4.05.4.0n/a5.2.05.4.0
FreeBSD:15:latest5.4.05.4.0n/a5.2.05.2.0
FreeBSD:15:quarterly5.4.05.4.0n/an/an/a
FreeBSD:16:latest5.4.05.4.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 15

Configuration

Options name: math_libdivide

OptionDefaultDescription
NATIVEoffUse native optimization (-march=native)
USES
cmake compiler:c++11-lang
Service scripts
none

Files

distinfo 1
FileSizeSHA256
ridiculousfish-libdivide-v5.4.0_GH0.tar.gz1.291406e+06077e8ce6c783d1b4402aa6d77f643f88f37feb80e9896c30e19a62cc0a3f5576

Commit history 1

DateCommitCreditsLog message
9ce523da06 Thierry Thomas math/libdivide: upgrade to v5.4.0
Release notes at https://github.com/ridiculousfish/libdivide/releases/tag/v5.4.0