From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965349AbXCFRT7 (ORCPT ); Tue, 6 Mar 2007 12:19:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965346AbXCFRT7 (ORCPT ); Tue, 6 Mar 2007 12:19:59 -0500 Received: from smtp.osdl.org ([65.172.181.24]:48466 "EHLO smtp.osdl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965349AbXCFRT6 (ORCPT ); Tue, 6 Mar 2007 12:19:58 -0500 Date: Tue, 6 Mar 2007 09:19:30 -0800 (PST) From: Linus Torvalds To: Eric Dumazet cc: "H. Peter Anvin" , Davide Libenzi , Linux Kernel Mailing List , Andrew Morton Subject: Re: [patch v2] epoll use a single inode ... In-Reply-To: <200703061812.28478.dada1@cosmosbay.com> Message-ID: References: <45ED08A9.9050501@cosmosbay.com> <45ED96A6.3000704@zytor.com> <200703061812.28478.dada1@cosmosbay.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 6 Mar 2007, Eric Dumazet wrote: > > Something like : > > [PATCH] : Use reciprocal divides in sprintf() Try this on Core 2, and I suspect that you'll find that the hardware is actually *faster* than doing the shift/test, function call and the two multiplies. > Using reciprocal divides permits to change each divide by two multiplies, less > expensive on current CPUS. Are you sure? Linus