fxdiv
C++ 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.
- Versions: 0.0-1.63058ef
- Website: https://github.com/Maratyszcza/FXdiv
- Licenses: Expat
- Package source: gnu/packages/maths.scm
- Builds: See build status
- Issues: See known issues
Installation
Install the latest version of fxdiv
as follows:
guix install fxdiv
Or install a particular version:
guix install fxdiv@0.0-1.63058ef
You can also install packages in augmented, pure or containerized environments for development or simply to try them out without polluting your user profile. See the guix shell
documentation for more information.
Badge code
You can use the following badge to inform users of fxdiv about the latest version available in Guix.
Example HTML:
<a href='https://packages.guix.gnu.org/packages/fxdiv'><img src='https://packages.guix.gnu.org/packages/fxdiv/badges/latest-version.svg' alt='Version in GNU Guix'></a>
Example Markdown:
[](https://packages.guix.gnu.org/packages/fxdiv)
Example Org:
[[https://packages.guix.gnu.org/packages/fxdiv][https://packages.guix.gnu.org/packages/fxdiv/badges/latest-version.svg]]