From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from albireo.enyo.de (albireo.enyo.de [37.24.231.21]) by sourceware.org (Postfix) with ESMTPS id 977283858409 for ; Fri, 31 Dec 2021 20:43:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 977283858409 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=deneb.enyo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=deneb.enyo.de Received: from [172.17.203.2] (port=34387 helo=deneb.enyo.de) by albireo.enyo.de ([172.17.140.2]) with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) id 1n3OkL-000KWw-QS; Fri, 31 Dec 2021 20:43:29 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.94.2) (envelope-from ) id 1n3OkE-000EIU-DB; Fri, 31 Dec 2021 21:43:22 +0100 From: Florian Weimer To: "H.J. Lu via Libc-alpha" Cc: Noah Goldstein , GCC Development , "H.J. Lu" , Arjan van de Ven Subject: Re: [PATCH] x86-64: Optimize memset for zeroing References: <20211231182010.107040-1-hjl.tools@gmail.com> Date: Fri, 31 Dec 2021 21:43:22 +0100 In-Reply-To: (H. J. Lu via Libc-alpha's message of "Fri, 31 Dec 2021 12:35:44 -0800") Message-ID: <87h7aofqtx.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Dec 2021 20:43:34 -0000 * H. J. Lu via Libc-alpha: > bzero is an alias of SSE2 memset in glibc. Should we add __memsetzero > like __memcmpeq? It should be almost free in glibc. GCC can use > __memsetzero if it is available. bzero does not have the interface ambiguity that bcmp has. So the only reason for not using it would be namespace cleanliness.