News for hackers. Stuff that matters.
Re:Dav2d by WD-42 on Sunday May 31, 2026 @11:53AM (#48346725)
dav1d is the av1 decoder and it’s an insane feat of engineering. Written in assembly, it even eschews the normal c calling convention to get even better performance.
Re:Dav2d by IshKebab on Sunday May 31, 2026 @12:29PM (#48347046)
The normal C calling convention is really only for cross-binary calls (e.g. between shared libraries). If you're not doing that you can ignore it; it's not a weird thing to do. It would be odd to strictly follow it in assembly and I assume compilers don't either.
Re:Dav2d by adgjlsfhk1 on Sunday May 31, 2026 @07:58PM (#48351075)
Unfortunately, in absence of inlining, compilers mostly respect calling convention even when they don't have to.