Skip to content

a blazing-fast JIT-compilation-powered C library to determine whether a number is even or odd

License

Notifications You must be signed in to change notification settings

ascpixi/is-odd-jit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

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-<os>.a (where <os> is the OS the library was compiled for), that you can reference like any other! see the 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).