9 ms·
> Darwin kernel does though. It does not. Compare the implementation of _bcopyout against _platform_memmove, you'll see the difference :)
by saagarjha 4y ago
> Darwin kernel does though.
It does not. Compare the implementation of _bcopyout against _platform_memmove, you'll see the difference :)
- astrange 4y agoHuh, maybe I was thinking of "you can use floating point in the kernel". That doesn't work in every kernel because they don't want to bother saving/restoring the extra registers.
- saagarjha 4y agoTo be entirely honest I'm not sure why the kernel doesn't use better routines here, I think on ARM at least it saves the entire NEON state on context switch…