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
| System | Port | Version |
|---|---|---|
| FreeBSD | math/libdivide | 5.4.0 |
| DragonFly | math/libdivide | 5.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 5.4.0 | 5.4.0 | 5.0 | 5.2.0 | 5.4.0 |
| FreeBSD:14:quarterly | 5.4.0 | 5.4.0 | n/a | 5.2.0 | 5.4.0 |
| FreeBSD:15:latest | 5.4.0 | 5.4.0 | n/a | 5.2.0 | 5.2.0 |
| FreeBSD:15:quarterly | 5.4.0 | 5.4.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 5.4.0 | 5.4.0 | 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
Options name: math_libdivide
| Option | Default | Description |
|---|---|---|
| NATIVE | off | Use native optimization (-march=native) |
- USES
- cmake compiler:c++11-lang
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| ridiculousfish-libdivide-v5.4.0_GH0.tar.gz | 1.291406e+06 | 077e8ce6c783d1b4402aa6d77f643f88f37feb80e9896c30e19a62cc0a3f5576 |