Fixed-Point Tutorial #2

Posted on Thu 27 March 2025 in signal-processing • Tagged with dsp, signal-processing, fixed-point

Introduction

I've received a lot of feedback on my blog posts over the past few months. I'm humbled and grateful for the suggestions, and I always look forward to hearing from readers. You'll often see that I leave my mistakes in the posts along with the corrections, giving credit where …


Continue reading

Vectorizing IIR Filters: What are you Recursing?

Posted on Wed 12 February 2025 in signal-processing • Tagged with dsp, signal-processing, iir, filters, simd, vector, avx, sse, neon

Disclaimer: This article took quite a while to prepare. Although I’ve made every effort to fact-check and ensure the accuracy of the content, there may still be errors. If you notice any mistakes, please feel free to reach out and let me know!

I like writing programs that run …


Continue reading

Strange Corners of C: Entering The Twilight Zone of the C Compiler

Posted on Mon 10 February 2025 in Programming • Tagged with techonology, C, compiler, linker

C is a fascinating programming language, simple enough to learn in a few days, yet powerful enough to build the world's most complex systems. With its lightweight runtime, C runs everywhere! From microwave ovens to spacecrafts, and everything in between. Sometimes, I can’t help but wonder: Is the universe …


Continue reading

An Alternate Present: Sound Policy, Standardization, and Global Collaboration

Posted on Sun 09 February 2025 in Policy • Tagged with policy, technology, politics

It has been just over five year since the government set in motion to breakup up tech monopolies. It was not a dramatic revolution, but enacting a series of incremental policy updates, revising tax codes, and introducing new guidelines for technology that touches every facet of our lives. Although this …


Continue reading

Float to Q1.15: A FizzBuzz for Audio Technical Interview

Posted on Sun 19 January 2025 in Programming • Tagged with fizzbuzz, interview, tech, C, C++

An easy-sounding “Float to Q1.15” challenge is proposed as an audio FizzBuzz interview question.


Continue reading

Introduction to Fixed Point Signal Processing

Posted on Wed 09 December 2020 in signal-processing • Tagged with filters, signal processing, dsp, fir, iir, fixed-point

Fixed-point arithmetic is central to embedded signal processing where resources and power are often strictly limited. This article explains how Qm.n notation represents numbers with integer and fractional bits, highlighting range and resolution constraints. It discusses the trade-offs between floating-point’s easier development and fixed-point’s hardware cost savings. Examples illustrate clipping, saturation, and rounding techniques for converting between floating and fixed-point. A detailed walk-through of converting Celsius to Fahrenheit in Q10.6 format shows how to preserve precision under hardware constraints. Practical code snippets for FIR and IIR filter implementations in C and Python further demonstrate fixed-point’s capabilities across real-world DSP applications.


Continue reading

Hello, world!

Posted on Tue 17 May 2016 in misc • Tagged with programming

Hello! This is my first post. So...

tmp=`mktemp`; gcc -x c -o $tmp - << EOF &> /dev/null && $tmp
#include <stdio.h>
int main() {
  printf("Hello, world!\n");
}
EOF

Which should output:

Hello, world!