News for hackers. Stuff that matters.
Re:My first patch to the Linux kernel by msichert on Sunday March 22, 2026 @11:17AM (#47478411)
That's very interesting, I'm only familiar with the C++ standard where bit shifts are defined in terms of multiplications and divisions by powers of 2: https://eel.is/c++draft/expr.shift

So it seems in regard to bit shifts, C++ behaves slightly differently (it seems to have less UB) than C.

There are no comments on this comment yet.