This is fixed point library by Anthony Williams, published in Dr. Dobbs April 2008
This code has been in https://github.com/XCSoar project, but was recently removed.
Last revision: https://github.com/XCSoar/XCSoar/blob/45b4dbe7ebd601975c110f506fede2bd5bf8450f/src/Math/fixed.hpp
While importing to repo, applied 'astyle -A2 -s4 -W' to deal with unix/win linefeeds and formatting
Original articles https://www.justsoftwaresolutions.co.uk/news/optimizing-applications-with-fixed-point-arithmetic.html
Boost discussion
Thread start http://lists.boost.org/Archives/boost/2007/04/120357.php
Anthony's code post http://lists.boost.org/Archives/boost/2007/05/121707.php
Recent http://lists.boost.org/Archives/boost/2013/02/200690.php
A bunch of alternatives http://stackoverflow.com/questions/2945747/c-fixed-point-library