From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6971 Path: news.gmane.org!not-for-mail From: Denys Vlasenko Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH 1/2] x86_64/memset: simple optimizations Date: Tue, 10 Feb 2015 22:08:29 +0100 Message-ID: References: <1423589457-8407-1-git-send-email-vda.linux@googlemail.com> <20150210205047.GK23507@brightrain.aerifal.cx> 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 1423602546 5490 80.91.229.3 (10 Feb 2015 21:09:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2015 21:09:06 +0000 (UTC) To: musl Original-X-From: musl-return-6984-gllmg-musl=m.gmane.org@lists.openwall.com Tue Feb 10 22:09:05 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YLI3L-0006rM-PA for gllmg-musl@m.gmane.org; Tue, 10 Feb 2015 22:09:03 +0100 Original-Received: (qmail 30073 invoked by uid 550); 10 Feb 2015 21:09:02 -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 30065 invoked from network); 10 Feb 2015 21:09:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=bkRvFWh6yvqnF7yl8MHZJtKvMY80DbJovQ1OQe/sNZo=; b=TNl0uMwCgZP6woWY2Cc+/3yfDPDI5bpnldd9XZfc+t54mh/k4Ih7ianqrIWuctxt8C LWnMkmNkzRd1aHgL0QSBafLu/KTD8AlMJMA9fCh5BSvOvEaLc52vdfDHuYIht9vOY4BH f2r0e/MoYNes+A2BOGPPcFHuRvxB50ySZMmibxkGQXSQ/scab1/XIHmKOR/Xk+7P/bhJ InvSetizcWx+RXcaU63y/URpAv3pNalYOXSUv7OVsfUS42TwknDQ3kTAx21YrNA4JNTO l65axaozC9Nhx+wHeH/hJh9+v15EDGow8+hLBtpbcc8tYOJTFTh/GjDFQL10gmMQaLBi ffvg== X-Received: by 10.224.28.70 with SMTP id l6mr25582524qac.77.1423602530014; Tue, 10 Feb 2015 13:08:50 -0800 (PST) In-Reply-To: <20150210205047.GK23507@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:6971 Archived-At: On Tue, Feb 10, 2015 at 9:50 PM, Rich Felker wrote: > On Tue, Feb 10, 2015 at 06:30:56PM +0100, Denys Vlasenko wrote: >> "and $0xff,%esi" is a six-byte insn (81 e6 ff 00 00 00), can use >> 4-byte "movzbl %sil,%esi" (40 0f b6 f6) instead. >> [...] > > Do you want to go ahead with these patches as-is, or consider some of > the other ideas we discussed off-list like avoiding the 64-bit imul > entirely in the small-n case? If you think that's easy as another > incremental change I'll go ahead with these I think you can apply these patches without waiting for potential future improvements.