Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tensorush/zig-quickdiv
Zig port of quickdiv library for optimized repeated division.
https://github.com/tensorush/zig-quickdiv
divide divisor fast-divide fast-division libdivide quickdiv zig zig-lang zig-language zig-lib zig-library zig-package
Last synced: 16 days ago
JSON representation
Zig port of quickdiv library for optimized repeated division.
- Host: GitHub
- URL: https://github.com/tensorush/zig-quickdiv
- Owner: tensorush
- License: mit
- Created: 2024-03-24T14:32:26.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-07-18T12:01:10.000Z (5 months ago)
- Last Synced: 2024-10-16T19:21:24.984Z (2 months ago)
- Topics: divide, divisor, fast-divide, fast-division, libdivide, quickdiv, zig, zig-lang, zig-language, zig-lib, zig-library, zig-package
- Language: Zig
- Homepage: https://tensorush.github.io/zig-quickdiv/
- Size: 970 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zig-quickdiv
[![CI][ci-shd]][ci-url]
[![CD][cd-shd]][cd-url]
[![DC][dc-shd]][dc-url]
[![LC][lc-shd]][lc-url]## Zig port of [quickdiv library](https://github.com/dtrifuno/quickdiv) for optimized repeated division.
### :rocket: Usage
- Add `quickdiv` dependency to `build.zig.zon`.
```sh
zig fetch --save https://github.com/tensorush/zig-quickdiv/archive/.tar.gz
```- Use `quickdiv` dependency in `build.zig`.
```zig
const quickdiv_dep = b.dependency("quickdiv", .{
.target = target,
.optimize = optimize,
});
const quickdiv_mod = quickdiv_dep.module("quickdiv");
.root_module.addImport("quickdiv", quickdiv_mod);
```[ci-shd]: https://img.shields.io/github/actions/workflow/status/tensorush/zig-quickdiv/ci.yaml?branch=main&style=for-the-badge&logo=github&label=CI&labelColor=black
[ci-url]: https://github.com/tensorush/zig-quickdiv/blob/main/.github/workflows/ci.yaml
[cd-shd]: https://img.shields.io/github/actions/workflow/status/tensorush/zig-quickdiv/cd.yaml?branch=main&style=for-the-badge&logo=github&label=CD&labelColor=black
[cd-url]: https://github.com/tensorush/zig-quickdiv/blob/main/.github/workflows/cd.yaml
[dc-shd]: https://img.shields.io/badge/click-F6A516?style=for-the-badge&logo=zig&logoColor=F6A516&label=docs&labelColor=black
[dc-url]: https://tensorush.github.io/zig-quickdiv
[lc-shd]: https://img.shields.io/github/license/tensorush/zig-quickdiv.svg?style=for-the-badge&labelColor=black
[lc-url]: https://github.com/tensorush/zig-quickdiv/blob/main/LICENSE