From owner-svn-src-all@FreeBSD.ORG Fri Jul 27 07:36:28 2012 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6736D106564A; Fri, 27 Jul 2012 07:36:28 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail07.syd.optusnet.com.au (mail07.syd.optusnet.com.au [211.29.132.188]) by mx1.freebsd.org (Postfix) with ESMTP id D849F8FC16; Fri, 27 Jul 2012 07:36:27 +0000 (UTC) Received: from c122-106-171-246.carlnfd1.nsw.optusnet.com.au (c122-106-171-246.carlnfd1.nsw.optusnet.com.au [122.106.171.246]) by mail07.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id q6R7aJiD012252 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 Jul 2012 17:36:20 +1000 Date: Fri, 27 Jul 2012 17:36:19 +1000 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Luigi Rizzo In-Reply-To: <20120727063813.GB49988@onelab2.iet.unipi.it> Message-ID: <20120727173155.A5046@besplex.bde.org> References: <201207262137.q6QLbwGi028133@svn.freebsd.org> <20120726213959.GA12908@freebsd.org> <20120727063813.GB49988@onelab2.iet.unipi.it> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-head@FreeBSD.org, Roman Divacky , src-committers@FreeBSD.org, Luigi Rizzo , svn-src-all@FreeBSD.org Subject: Re: svn commit: r238818 - head/sys/dev/netmap X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 27 Jul 2012 07:36:28 -0000 On Fri, 27 Jul 2012, Luigi Rizzo wrote: > On Thu, Jul 26, 2012 at 11:39:59PM +0200, Roman Divacky wrote: >> Why dont you use __builtin_prefetch() ? > > ignorance :) > > thanks for the pointer, i'll look at it. > i suppose it works for clang too ? Even gcc-3.3.1 has it (I expected it not to). And it works quite well (defaults to nothing from -mi386, and gives prefetcht0 for -march=athlon-xp and later). Other builtins that I have tried didn't work so well (IIRC, many generate a call to a library function instead of nothing, when the CPU or compiler doesn't really support them). Bruce