News for hackers. Stuff that matters.
Re:Introducing Dav1d: a new AV1 decoder by hsivonen on Monday October 01, 2018 @03:59PM (#18116254)
Doesn't asm have the disadvantage that you end up spilling if you exceed 8 xmm registers even when running on x86_64 with 16 xmm registers available?

Or do you actually write separate asm for x86 and x86_64?

Re:Introducing Dav1d: a new AV1 decoder by TD-Linux on Monday October 01, 2018 @04:18PM (#18116457)
You either write an entire separate asm function, or use macro utilities to ifdef portions of the function. See for example: https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/HEAD:/libavcod...
Re:Introducing Dav1d: a new AV1 decoder by Retr0spectrum on Monday October 01, 2018 @04:10PM (#18116366)
I would imagine they write separate asm for x86, x86_64, and the various instruction set extensions that exist.
Re:Introducing Dav1d: a new AV1 decoder by __s on Monday October 01, 2018 @06:49PM (#18117454)
A project may even go so far as to write different asm for the same ISA for different architectures in order to optimize for specific pipeline behavior or whatnot

https://github.com/z-classic/libgmp/tree/master/mpn/x86_64