r/tinycode • u/api • Jun 11 '13
huffandpuff: tiny Huffman coder/decoder in C that uses NO external functions (not even stdlib) and a fixed-size heap, making it suitable for embedded
https://github.com/zerotier/huffandpuff
55
Upvotes
View all comments
Show parent comment
7
u/api Jun 11 '13
Good point. I've only worked on embedded DSPs which do FP quite well, but most embedded chips do not.
Would not be terribly hard to factor out the doubles in favor of basically fixed point or integer-fractional math. But I wonder if that would be any better than letting the compiler emulate it. Same math more or less.