svn commit: r328159 - head/sys/modules

Joerg Sonnenberger joerg at bec.de
Sun Jan 21 18:50:15 UTC 2018


On Fri, Jan 19, 2018 at 08:40:56PM +0200, Andriy Gapon wrote:
> I seem to recall that the actual shift happens to be N % 32 for 32-bit registers
> (at least on some processors).

It depends. That's the behavior some architectures implement. Others
will just give you 0 as result for N>32. This is a case of UB where the
implementation-defined behavior of different CPUs is actually
inconsistent.

Joerg


More information about the svn-src-all mailing list