From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3617 Path: news.gmane.org!not-for-mail From: Andre Renaud Newsgroups: gmane.linux.lib.musl.general Subject: Re: Thinking about release Date: Thu, 11 Jul 2013 08:34:03 +1200 Message-ID: References: <20130709053711.GO29800@brightrain.aerifal.cx> <1373485116.27613.40@driftwood> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1373488455 17524 80.91.229.3 (10 Jul 2013 20:34:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Jul 2013 20:34:15 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3621-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jul 10 22:34:17 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Ux15c-0002HC-HD for gllmg-musl@plane.gmane.org; Wed, 10 Jul 2013 22:34:16 +0200 Original-Received: (qmail 21596 invoked by uid 550); 10 Jul 2013 20:34:15 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 21587 invoked from network); 10 Jul 2013 20:34:15 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=Cy1s8vcJ0Km+P6haYFgTeSP3bSeCRKq4NhlcDX+J85o=; b=nx60W2CkDX5wUO3AXhCoqTBlkkFKd1gXfbnQ3SozWFJJE7EW5ihvba07tE/YQ8FWi7 sSo+Uq790pJDvfdT58PQrleIBBeEAJHnpSPpkfK2STh2+/AkRNk3y3eTG6r2ZQVrPU1T t71Y9r/kiEKzRM4GwPNoJXP6Dk0wtA9MfHAyNpNPxmb+v3IR++nvqN4p86+Nor23jskM s/ecw3LY6xZRwYCxlYI2OIzvXdBleJryDF/PCd92tM+LW70MWPI0CECof9gBzYkUOFFq HMfoaIKewgv5V8O0i8aQQ0073HpEBq+VctyUX3qZAuHFZSX+mbeTh3yeWxzZG9KMoMPe YK0Q== X-Received: by 10.220.197.72 with SMTP id ej8mr20152868vcb.66.1373488443540; Wed, 10 Jul 2013 13:34:03 -0700 (PDT) In-Reply-To: <1373485116.27613.40@driftwood> X-Gm-Message-State: ALoCoQkZQoPoUvN32LevXhw2DP+KSH3XK+L93EMu8ABdy2KAtbUDrCgTV7ouadE74ruwt6TI2HUv Xref: news.gmane.org gmane.linux.lib.musl.general:3617 Archived-At: >> What also might be worth testing is whether GCC can compete if you >> just give it a naive loop (not the fancy pseudo-vectorized stuff >> currently in musl) and good CFLAGS. I know on x86 I was able to beat >> the fanciest asm strlen I could come up with simply by writing the >> naive loop in C and unrolling it a lot. > > > Duff's device! That was exactly my first idea too, but interestingly it turns out not to have really added any performance improvement. Looking at the assembler, with -O3, gcc does a pretty good job of unrolling as it is. Regards, Andre