From owner-svn-src-all@freebsd.org Sun Jan 21 18:50:15 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11DA3EB2ED5 for ; Sun, 21 Jan 2018 18:50:15 +0000 (UTC) (envelope-from joerg@bec.de) Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CFFEA76FA2 for ; Sun, 21 Jan 2018 18:50:14 +0000 (UTC) (envelope-from joerg@bec.de) Received: from britannica.bec.de (p200300D2ABC4DD104639C4FFFE599710.dip0.t-ipconnect.de [IPv6:2003:d2:abc4:dd10:4639:c4ff:fe59:9710]) (Authenticated sender: joerg@bec.de) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 9166317209C for ; Sun, 21 Jan 2018 19:50:06 +0100 (CET) Date: Sun, 21 Jan 2018 19:49:22 +0100 From: Joerg Sonnenberger To: svn-src-all@freebsd.org Subject: Re: svn commit: r328159 - head/sys/modules Message-ID: <20180121184922.GA32134@britannica.bec.de> References: <201801191737.w0JHbM90073097@pdx.rh.CN85.dnsmgr.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.0 (2017-09-02) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2018 18:50:15 -0000 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