Zig port of quickdiv library for optimized repeated division.
- Add
quickdiv
dependency tobuild.zig.zon
.
zig fetch --save https://github.com/tensorush/zig-quickdiv/archive/<git_tag_or_commit_hash>.tar.gz
- Use
quickdiv
dependency inbuild.zig
.
const quickdiv_dep = b.dependency("quickdiv", .{
.target = target,
.optimize = optimize,
});
const quickdiv_mod = quickdiv_dep.module("quickdiv");
<compile>.root_module.addImport("quickdiv", quickdiv_mod);