Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.52 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.52 KB

zig-quickdiv

CI CD DC LC

Zig port of quickdiv library for optimized repeated division.

🚀 Usage

  • Add quickdiv dependency to build.zig.zon.
zig fetch --save https://github.com/tensorush/zig-quickdiv/archive/<git_tag_or_commit_hash>.tar.gz
  • Use quickdiv dependency in build.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);