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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/fxdiv | g20181121 |
| DragonFly | devel/fxdiv | g20181121 |
| MidnightBSD | devel/fxdiv | g20181121 |
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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | g20181121 | g20181121 | g20181121 | g20181121 | g20181121 |
| FreeBSD:14:quarterly | g20181121 | g20181121 | n/a | g20181121 | g20181121 |
| FreeBSD:15:latest | g20181121 | g20181121 | n/a | g20181121 | g20181121 |
| FreeBSD:15:quarterly | g20181121 | g20181121 | n/a | n/a | n/a |
| FreeBSD:16:latest | g20181121 | g20181121 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
Required by 3
Configuration
No options to configure.
- USES
- cmake
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Maratyszcza-FXdiv-g20181121-f8c5354_GH0.tar.gz | 8792 | 94258c95f737916127ab70df1aa79d39575ed48dc6d23155a89747122d5d7797 |