3 ms·
Several years ago I wrote a signal-processing kernel module for realtime interrupt handling in Linux. Surprise! You cannot do floating point in the kernel. So I
by dreamcompiler 5y ago
Several years ago I wrote a signal-processing kernel module for realtime interrupt handling in Linux. Surprise! You cannot do floating point in the kernel. So I wrote it all in fixed point.
ISTR the reason you couldn't use floats in the kernel had more to do with context switching and the kernel not spilling the FP registers than speed per se, but I might be misremembering.
Edit: Looks like I remembered it basically right:
https://stackoverflow.com/questions/13886338/use-of-floating-point-in-the-linux-kernel#13886805 https://stackoverflow.com/questions/13886338/use-of-floating...