Remix.run Logo
AceJohnny2 2 hours ago

Offtopic...

    * Do this with "<0" and ">=0" to only test the sign of the result. A
    * good compiler would generate better code (and a really good compiler
    * wouldn't care). Gcc is currently neither.
It's funny the love-hate relationship the Linux kernel has with GCC. It's the only supported compiler[1], and yet...

[1] can Clang fully compile Linux yet? I haven't followed the updates in a while.

EvgeniyZh an hour ago | parent [-]

Yes it can [1].

https://docs.kernel.org/kbuild/llvm.html