﻿ 8.8 fixed point/inflation by 256 tutorial
21 May, 2013, 14:25:59
 OmnomIRC You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

 Pages: [1]   Go Down
 Author Topic: 8.8 fixed point/inflation by 256 tutorial -  (Read 443 times) 0 Members and 1 Guest are viewing this topic.
Deep Thought
So much to do, so much time, so little motivation

Offline

Gender:
Last Login: 19 May, 2013, 19:18:47
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813

Topic starter
Total Post Ratings: +706

 « on: 10 October, 2011, 06:29:02 » +2

[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://ourl.ca/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: 16 December, 2011, 06:30:35 by Deep Thought » Logged

Quigibo
The Executioner
LV11 Super Veteran (Next: 3000)

Offline

Gender:
Date Registered: 22 January, 2010, 05:02:37
Location: Los Angeles
Posts: 2022

Total Post Ratings: +1019

 « Reply #1 on: 10 October, 2011, 07:34:13 » 0

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.
 Logged

___Axe_Parser___
Today the calculator, tomorrow the world!
Stefan Bauwens
Creator of Myst 89 - סטיבן
LV10 31337 u53r (Next: 2000)

Online

Gender:
Date Registered: 25 February, 2011, 15:41:10
Location: Belgium
Posts: 1697

Total Post Ratings: +132

 « Reply #2 on: 10 October, 2011, 17:18:11 » 0

Thanks DeepThough. I quite understand this now. I just have to think of how to implant it in my code.
 Logged

 Pages: [1]   Go Up