https://github.com/ascpixi/is-odd-jit
a blazing-fast JIT-compilation-powered C library to determine whether a number is even or odd
https://github.com/ascpixi/is-odd-jit
c c-library is-even is-odd is-odd-or-even jit jit-compilation jit-compiler
Last synced: about 1 year ago
JSON representation
a blazing-fast JIT-compilation-powered C library to determine whether a number is even or odd
- Host: GitHub
- URL: https://github.com/ascpixi/is-odd-jit
- Owner: ascpixi
- License: other
- Created: 2024-05-18T00:02:51.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-18T01:10:13.000Z (about 2 years ago)
- Last Synced: 2024-05-19T01:23:45.493Z (about 2 years ago)
- Topics: c, c-library, is-even, is-odd, is-odd-or-even, jit, jit-compilation, jit-compiler
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
# is-odd-jit
the **is-odd-jit** library is a *blazing* fast way to tell whether a number is even or odd - now leveraging **just-in-time (JIT) compilation!** (ノ◕ヮ◕)ノ*:・゚✧
> [!TIP]
> you also may be interested in the previous, web version, [ascpixi/is-odd](https://github.com/ascpixi/is-odd)!
in order to use is-odd-jit, compile the library under Linux via `make OS=linux` or `make OS=windows` in the root repository directory - for Windows, you'll also need to run `sudo apt-get install gcc-mingw-w64`.
this will produce a static library named `libisodd-.a` (where `` is the OS the library was compiled for), that you can reference like any other! see the [demo](./demo/) for more details!
currently, the only supported architecture is **x86-64**, and the supported ABIs are System V (most Unices) and the Microsoft x64 (Windows).