r/cprogramming • u/Choice_Bid1691 • Mar 19 '26
I created an SIMD optimized PPM image manipulation library in C a while ago to gain reputation. I also created a linux kernel isochronous USB driver for a physical microphone i have. I also have a ring buffer implementation in C if anyone's interested.
I hope someone could give some feedback
- cachepix -> github.com/omeridrissi/cachepix
- fifine_mic_driver -> github.com/omeridrissi/fifine_mic_driver
- circ_buf -> github.com/omeridrissi/circ_buf
14
Upvotes
4
u/yehors Mar 19 '26
With LLMs?
1
u/DaCurse0 Mar 19 '26
why malloc every single number in the ppm header instead of using snprintf?
1
u/jakov30 Mar 21 '26
what resources would you recommend for some for somebody starting kernel dev? i know about device drivers but is there anything else that was really useful for you?
1
u/NervousAd5455 Mar 20 '26
Hey I'm also learning these stuff and trying to optimise a matrxi multipltion on cpu using SIMD and avx with better cache management, if possible can u help me to get some good resource to go through or atleast talk
1
u/Limp-Economics-3237 Mar 21 '26
You might want to go "all-in" and add the avx512 version. Most Intel/AMD processors nowadays have 512 bit working, without the downclocking issues from the past.
0
u/ffd9k Mar 19 '26
Is there really a significant overhead of runtime detection, if the check would only be done once before a long-running function that would not benefit much from being inlined as a whole?