From owner-svn-src-head@FreeBSD.ORG Fri Mar 1 02:46:41 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1033) id 598F728A; Fri, 1 Mar 2013 02:46:41 +0000 (UTC) Date: Fri, 1 Mar 2013 02:46:41 +0000 From: Alexey Dokuchaev To: Alexander Motin Subject: Re: svn commit: r247460 - head/sys/dev/acpica Message-ID: <20130301024641.GA88239@FreeBSD.org> References: <201302281127.r1SBR2VE068276@svn.freebsd.org> <20130228162522.GA41693@FreeBSD.org> <512F95DC.1040005@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <512F95DC.1040005@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Davide Italiano , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Mar 2013 02:46:41 -0000 On Thu, Feb 28, 2013 at 07:37:32PM +0200, Alexander Motin wrote: > SBT_1US is 4294 (0x10c6). The best that compiler may do is replace > division with multiplication. In fact, Clang even does this on amd64. > But on i386 it calls __divdi3(), doing 64bit division in software. Shift > is definitely cheaper and 5% precision is fine here. I see, thanks for explanation. I overlooked SBT_1US definition. ./danfe