summaryrefslogtreecommitdiff
path: root/math/libdivide/pkg-descr
diff options
context:
space:
mode:
Diffstat (limited to 'math/libdivide/pkg-descr')
-rw-r--r--math/libdivide/pkg-descr11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/libdivide/pkg-descr b/math/libdivide/pkg-descr
new file mode 100644
index 000000000000..a65331c7f6bf
--- /dev/null
+++ b/math/libdivide/pkg-descr
@@ -0,0 +1,11 @@
+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.
+
+WWW: https://libdivide.com/
+WWW: https://github.com/ridiculousfish/libdivide/