Author Topic: 8.8 fixed point/inflation by 256 tutorial  (Read 2740 times)

0 Members and 1 Guest are viewing this topic.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
8.8 fixed point/inflation by 256 tutorial
« on: October 10, 2011, 12:29:02 am »
[This space is reserved for a BBCode version of this section of the tutorial when I finish it up.]

Here's my tutorial in response to http://omniurl.tk/10129/196558/. My working version is up at http://clrhome.org/tutorials/axe/07/ (and as you can probably tell, it'll be part of my general Axe tutorial).

Suggestions? I'm afraid it might be a bit confusing the way it jumps between inflation by 256 and 8.8 fixed point, even though they're really the same thing. Any thoughts?
« Last Edit: December 15, 2011, 11:30:35 pm by Deep Thought »




Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: 8.8 fixed point/inflation by 256 tutorial
« Reply #1 on: October 10, 2011, 01:34:13 am »
You might want to note that there actually is a difference between 8.8 fixed point and inflation:  8.8 is signed while inflation is unsigned.  The fixed point multiplication and inverse routines won't work as expected for larger values if you're treating them as unsigned.  Another effect of that is that 8.8 numbers should be deflated with //256 instead of /256.

Your tutorial is about inflated numbers though, and it does a good job in that respect, you just don't want to make people think that those 2 methods are identical because the operations you do with them are slightly different.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: 8.8 fixed point/inflation by 256 tutorial
« Reply #2 on: October 10, 2011, 11:18:11 am »
Thanks DeepThough. I quite understand this now. I just have to think of how to implant it in my code.


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me