From owner-freebsd-arm@FreeBSD.ORG Tue May 5 16:37:20 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AC63106566B for ; Tue, 5 May 2009 16:37:20 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (casselton.net [63.165.140.2]) by mx1.freebsd.org (Postfix) with ESMTP id 15A658FC1A for ; Tue, 5 May 2009 16:37:19 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (localhost [127.0.0.1]) by casselton.net (8.14.3/8.14.3) with ESMTP id n45GbFOG057470; Tue, 5 May 2009 11:37:15 -0500 (CDT) (envelope-from tinguely@casselton.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=casselton.net; s=ccnMail; t=1241541435; bh=VBJlytDzc1PqKw62UtsXhEX0OYL39nuJyV2N1/WSO6s=; h=Date:From:Message-Id:To:Subject:Cc:In-Reply-To; b=Plx9FQhjFBSi+TY03fGqd3IdC4dUgcPEzxbIZ3w4qidkS9IZNzcXmug8enKDGwy3w pT0iM1abYBZMga1pbybu00v3Aaj5HScxFmz7C7tYktEBMLiqIgI9UDJ1+9s/CNpdYs EpvfAodwCte3+57ZT7xiz1JcS4Ft8C6oC80HQGP4= Received: (from tinguely@localhost) by casselton.net (8.14.3/8.14.2/Submit) id n45GbE7Q057469; Tue, 5 May 2009 11:37:14 -0500 (CDT) (envelope-from tinguely) Date: Tue, 5 May 2009 11:37:14 -0500 (CDT) From: Mark Tinguely Message-Id: <200905051637.n45GbE7Q057469@casselton.net> To: imp@bsdimp.com, tinguely@casselton.net In-Reply-To: <20090505.081701.569396874.imp@bsdimp.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.1.10 (casselton.net [127.0.0.1]); Tue, 05 May 2009 11:37:15 -0500 (CDT) Cc: channa.kad@gmail.com, freebsd-arm@freebsd.org, venkiece2005@gmail.com Subject: Re: strncmp issue X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2009 16:37:20 -0000 > Is the hand rolled assembler still better than what gcc can produce? > > Warner Assuming my additional conditional branch, we can save at least an add and a branch in the comparison loop with the hard rolled assembler over the "cc -O2 head/lib/libc/string/strncmp.c" code. If the conditional branch can be deleted, then even better. --Mark.