I ripped this implementation out of one of my closed-source projects. I'm actively using it, but I don't have time to properly maintain it.
If you want to make this into a proper opam
library, then
pull-requests are welcome as well.
Feel free to create issues to say "hi".
This library emulates fixed-width integer operations
by representing them as int
under the hood and doing the
necessary math. It is not very efficient.
You might be interested in ocaml-stdint
library, which
implements same integer types, but using C-bindings instead:
https://github.com/andrenth/ocaml-stdint
The following command will run tests:
$ ocamlbuild -I vendor IntegersTest.byte --