bvec, a Fortran77 code which demonstrates how signed integers can be stored as binary vectors, and arithmetic can be performed on them.
The information on this web page is distributed under the MIT license.
bvec is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.