A fixed point library from Trenki http://www.trenki.net/content/view/17/1/ Slightly modified so that the fixed point data structure can automatically cast itself to float or int when used in an expression, and added the functionality to cast between precisions.
History
Made it possible to cast to double
2011-11-27, by madcowswe [Sun, 27 Nov 2011 05:10:45 +0000] rev 1
Made it possible to cast to double
added the functionality to cast between precisions
2011-11-27, by madcowswe [Sun, 27 Nov 2011 00:28:31 +0000] rev 0
added the functionality to cast between precisions