Skip to content

tensorush/zig-quickdiv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);