Y
Hacker News
new
|
ask
|
show
|
jobs
by
AndyKelley
3477 days ago
Here's another implementation that works on Windows too:
https://github.com/andrewrk/libsoundio/blob/master/src/ring_...
1 comments
csl
3477 days ago
This seems to use modulus. The whole point of the mmap trick is to get the kernel/MMU to do the work for you, IIRC.
EDIT: Oops, I see they use mirrored memory here as well.
link
EDIT: Oops, I see they use mirrored memory here as well.