Live data from Hacker News

Fixed Point Arithmetic

vha3.github.io

1–10 of 61 posts

Re: Fixed Point Arithmetic

#9

I used fixed-point for all the 3d code in The Virtual Reality Playhouse (1992). That was the last time I wrote any significant assembler code. Good times.

By the way ... that was the first VR program one could run at home. I drove liquid crystal classes with the modem control lines. Switching left/right was synchronized to the monitor's vertical retrace.

Even better times. :)

Re: Fixed Point Arithmetic

#10

I'm using fixed point for real-time DSP on cortex-M. Faster than floating. Using the CMSIS-DSP Q31 functions, in particular. On Rust `i32`s.

On the PIC32, fixed add is ~2 cycles and floating point is is ~60. And about a 2x increase for multiplies. On architectures with floating point hardware some of the advantage is lost, but it's fantastic for DSP on microcontrollers.
Post reply on HN