BSD Ports

devel/fxdiv g20181121 FreeBSD

C/C++ header-only library for division via FP inverse multiplication

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
da28c3f6af
License
MIT
Categories
devel
Package size
4.4 KiB, 13.2 KiB installed

Description

Header-only library for division via fixed-point multiplication by inverse.

On modern CPUs and GPUs integer division is several times slower than multiplication. FXdiv implements an algorithm to replace an integer division with a multiplication and two shifts. This algorithm improves performance when an application performs repeated divisions by the same divisor.

Features: * Integer division for uint32_t, uint64_t, and size_t * Header-only library, no installation or build required * Compatible with C99, C++, OpenCL, and CUDA * Uses platform-specific compiler intrinsics for optimal performance * Covered with unit tests and microbenchmarks

In the other systems

SystemPortVersion
FreeBSDdevel/fxdivg20181121
DragonFlydevel/fxdivg20181121
MidnightBSDdevel/fxdivg20181121

Install

Binary package:

pkg install fxdiv

From the ports tree:

cd /usr/ports/devel/fxdiv/ && make install clean

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

RUN_DEPENDS=	fxdiv>0:devel/fxdiv

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:latestg20181121g20181121g20181121g20181121g20181121
FreeBSD:14:quarterlyg20181121g20181121n/ag20181121g20181121
FreeBSD:15:latestg20181121g20181121n/ag20181121g20181121
FreeBSD:15:quarterlyg20181121g20181121n/an/an/a
FreeBSD:16:latestg20181121g20181121n/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

No options to configure.

USES
cmake
Service scripts
none

Files

distinfo 1
FileSizeSHA256
Maratyszcza-FXdiv-g20181121-f8c5354_GH0.tar.gz879294258c95f737916127ab70df1aa79d39575ed48dc6d23155a89747122d5d7797

Commit history 1

DateCommitCreditsLog message
da28c3f6af Yuri Victorovich */*: CMake 4 compatibility
PR: 295319