{"added":"2026-11-05T19:22:03-05:00","apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["math"],"comment":"Fast integer division using runtime divisors","compare":null,"dependentCount":null,"description":"libdivide allows you to replace expensive integer divides with comparatively\ncheap multiplication and bitshifts. Compilers usually do this, but only when the\ndivisor is known at compile time. libdivide allows you to take advantage of it\nat runtime. The result is that integer division can become faster - a lot\nfaster.\n\nFurthermore, libdivide allows you to divide SIMD vectors by runtime constants,\nwhich is especially nice because SIMD typically lacks integer division.\n\nSee also: https://github.com/ridiculousfish/libdivide/","flavors":[],"html":"https://daemonports.org/midnightbsd/math/libdivide/","kind":"port","lastUpdate":"2026-11-05T19:22:03-05:00","license":["zlib","BSL"],"licenses":["Zlib","BSL-1.0"],"maintainer":"ports@MidnightBSD.org","name":"libdivide","newest":true,"newestVersion":"5.4.0","noVulnData":true,"origin":"math/libdivide","otherSystems":[{"maintainer":"thierry@FreeBSD.org","newest":true,"origin":"math/libdivide","path":"/math/libdivide/","system":"FreeBSD","updated":"2026-09-08","version":"5.4.0"},{"maintainer":"thierry@FreeBSD.org","newest":true,"origin":"math/libdivide","path":"/dragonfly/math/libdivide/","system":"DragonFly","version":"5.4.0"},{"maintainer":"thierry@FreeBSD.org","newest":true,"noVulnData":true,"origin":"math/libdivide","path":"","system":"HardenedBSD","version":"5.4.0"},{"maintainer":"thierry@FreeBSD.org","newest":true,"noVulnData":true,"origin":"math/libdivide","path":"","system":"GhostBSD","version":"5.4.0"}],"packages":null,"pkgName":"libdivide-5.4.0","related":null,"repository":"mports","requiredBy":["graphics/gdal"],"requiredByCount":1,"runDepends":[],"status":null,"system":"midnightbsd","systemLabel":"MidnightBSD","version":"5.4.0","versions":[{"commit":"4de1dc64ef9f03210e195c5aab07fb9c188e8473","date":"2026-11-05","version":"5.4.0"}],"vulnerabilities":null,"www":"https://libdivide.com/"}
