Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2018 19:49:22 +0100
From:      Joerg Sonnenberger <joerg@bec.de>
To:        svn-src-all@freebsd.org
Subject:   Re: svn commit: r328159 - head/sys/modules
Message-ID:  <20180121184922.GA32134@britannica.bec.de>
In-Reply-To: <a4402f31-a6c8-7f41-d49e-885e41e548d8@FreeBSD.org>
References:  <CAG6CVpV6Suft3v-=08f5UH6BTH2NEJgU_4kYd-UphLZ6yoJB4Q@mail.gmail.com> <201801191737.w0JHbM90073097@pdx.rh.CN85.dnsmgr.net> <CAG6CVpUj3SfiuHAaPMB1zGXpXPw=U-CsHgk%2BivEPyrzhvrrPKw@mail.gmail.com> <a4402f31-a6c8-7f41-d49e-885e41e548d8@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180121184922.GA32134>