Fixed Point Arithmetic 2: Multiplication and Division @WhatsACreel
Fixed Point Arithmetic 2: Multiplication and Division  @WhatsACreel
Uploaded June 2014 | Updated September 2026, 2 weeks ago
In this tute we'll look at multiplication and division using fixed point, 32 bit integers. Most of the time you can just cast to 64 bit ints to keep precision and range, multiply or divide and cast back to 32 bits.

Sometimes this is not a good option. Casting and shifting 64 bit integers on 32 bit machines is very slow. Plus, SIMD is fantastic at fixed point, but not if it has to cast all the time. We'll have a look at a way we can tweak these operations, and trade a little precision or range for speed. This can greatly speedup packed fixed point arithmetic since it avoids casting altogether!

The technique in this video is particularly good when you're dealing with normalized numbers in some range, for instance -1.0 to 1.0. It is not good at all when your numbers might have a large range, -16000.0 to 16000.0 for instance.
Fixed Point Arithmetic 2: Multiplication and DivisionNVIDIA CUDA Tutorial 10: Blocking with Shared Memoryx64 Assembly Tutorial 55: MXCSR RegisterJava Tutorial for Beginners 2: Important Data TypesIEEE 754: Introduction to Floating Point FormatDirect2D Tutorial 1: Intro and WinMain EntryC++ Tutorial 8: Switch StatementsLearn Python Programming 4: Learn For LoopsExploring Cliques and Clique ProblemsC++ UnionsIEEE 754: 64 Bit Double Precision Floatsx64 Assembly Tutorial 63 B: Box Blur C++ Coding
Creel |

Fixed Point Arithmetic 2: Multiplication and Division

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER