<aname="l2"></a></span><spanclass=cF2>"Fixed point" means you use ints</span><spanclass=cF0>
<aname="l3"></a></span><spanclass=cF2>that are scaled by a value. A common</span><spanclass=cF0>
<aname="l4"></a></span><spanclass=cF2>example would be using number of pennies</span><spanclass=cF0>
<aname="l5"></a></span><spanclass=cF2>instead of dollars with a float.</span><spanclass=cF0>
<aname="l6"></a>
<aname="l7"></a></span><spanclass=cF2>Fixed-point used to be much </span><ahref="http://en.wikipedia.org/wiki/X87"><spanclass=cF2>faster</span></a><spanclass=cF2>,</span><spanclass=cF0>
<aname="l8"></a></span><spanclass=cF2>but modern processors do well with</span><spanclass=cF0>
<aname="l9"></a></span><spanclass=cF2>floats. It also depends on the compiler</span><spanclass=cF0>
<aname="l10"></a></span><spanclass=cF2>and the CosmiC compiler is poor with floats.</span><spanclass=cF0>
<aname="l11"></a>
<aname="l12"></a></span><spanclass=cF2>Terry often used 64-bit ints with upper 32-bits</span><spanclass=cF0>
<aname="l13"></a></span><spanclass=cF2>as int and lower 32-bits as fraction.</span><spanclass=cF0>
<aname="l15"></a></span><spanclass=cF2>See </span><ahref="https://tomawezome.github.io/ZealOS/Demo/SubIntAccess.html#l1"><spanclass=cF4>::/Demo/SubIntAccess.CC</span></a><spanclass=cF2> for how</span><spanclass=cF0>
<aname="l19"></a></span><spanclass=cF2>features, see </span><ahref="https://tomawezome.github.io/ZealOS/Doc/CosmiC.html#l1"><spanclass=cF4>::/Doc/CosmiC.DD</span></a><spanclass=cF2>.</span><spanclass=cF0>
<aname="l46"></a></span><spanclass=cF6>"i&0xFFFFFFFF\t=%X\n"</span><spanclass=cF0>, i &</span><spanclass=cFE>0xFFFFFFFF</span><spanclass=cF0>;
<aname="l47"></a></span><spanclass=cF6>"i>>32\t\t=%X\n"</span><spanclass=cF0>, i >></span><spanclass=cFE>32</span><spanclass=cF0>;
<aname="l48"></a>
<aname="l49"></a></span><spanclass=cF2>/*</span><spanclass=cF0></span><spanclass=cF2>Standard int types are declared</span><spanclass=cF0>
<aname="l50"></a></span><spanclass=cF2>with a special compiler feature which</span><spanclass=cF0>
<aname="l51"></a></span><spanclass=cF2>allows a structure to be accessed as a</span><spanclass=cF0>
<aname="l52"></a></span><spanclass=cF2>whole. That's why the i variable can</span><spanclass=cF0>
<aname="l53"></a></span><spanclass=cF2>be accessed normally in addition to</span><spanclass=cF0>
<aname="l54"></a></span><spanclass=cF2>structure member access </span><ahref="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l103"><spanclass=cF4>I64</span></a><spanclass=cF2>. The actual</span><spanclass=cF0>
<aname="l73"></a></span><spanclass=cF2>features, see </span><ahref="https://tomawezome.github.io/ZealOS/Doc/CosmiC.html#l1"><spanclass=cF4>::/Doc/CosmiC.DD</span></a><spanclass=cF2>.</span><spanclass=cF0>