[DiscordArchive] Wiki page where?
[DiscordArchive] Wiki page where?
Archived author: Quantam • Posted: 2018-06-04T06:53:22.717000+00:00
Original source
Normally you would divide by a power of 2 because it's so much faster, but if you really need the full range you have to divide by power of 2 - 1
Archived author: Quantam • Posted: 2018-06-04T06:54:37.857000+00:00
Original source
Hmm. Storing abs+sign certainly makes rounding easier. Doing a proper round on a two's complement number takes a good number of instructions if you're not using a DSP chip (which has hardware rounding)
Archived author: Quantam • Posted: 2018-06-04T07:00:41.319000+00:00
Original source
In any case, the difference between fixed_point and fixed16 is the -1
Archived author: schlumpf • Posted: 2018-06-04T07:01:40.143000+00:00
Original source
Yes. And I don’t know which one is correct.
Archived author: Quantam • Posted: 2018-06-04T07:02:00.857000+00:00
Original source
Are we talking in general, or is this for some game data structure?
Archived author: Quantam • Posted: 2018-06-04T07:04:00.143000+00:00
Original source
If this is in general then the standard is to use two's complement math with a power of two divider (unless you absolutely need [-1,1] range
Archived author: schlumpf • Posted: 2018-06-04T07:07:26.611000+00:00
Original source
It is the wowdev wiki..
Archived author: Quantam • Posted: 2018-06-04T07:08:04.600000+00:00
Original source
Well if it's a game structure you're gonna have to break out the disassembly
Archived author: Quantam • Posted: 2018-06-04T07:08:12.672000+00:00
Original source
Should be very obvious if it's not power of two
Archived author: schlumpf • Posted: 2018-06-04T07:08:14.205000+00:00
Original source
We’re not inventing that shit for ourselves. Why would you ever invent a 5,9 fixed point value out of free will?!