From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id 930113857036 for ; Thu, 16 Sep 2021 22:36:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 930113857036 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: CnNoPngRMxIJwRjU/vluXrc40wQgnY/Q+1PohdSMzuLrcFVKoGOZdqMw59PGxe8P36IypjX1cK TWPgFejSM15o/8nw4HzYYX8frExuO2/aRO2FqdzcNWZvrTZ+TDXYZ2bwbDUq3I9HfQfrd4/dX9 efFzT8A7wNnK4TN4yRKv2WIA9gPzYwQui0EalbGFm6MM4FZ76RBlPM146LruGfHUMqyi6eD73w uMFYOFMfI6mY4f0Gf87Kmd7aZRYwD8IcnqfOD6VaPmwrgaFrv7/tgi+mtXxp06stbyHAhSVrKE V4Gw5b/LK1Y1qWvPM6g5tdnG X-IronPort-AV: E=Sophos;i="5.85,299,1624348800"; d="scan'208";a="66149527" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 16 Sep 2021 14:36:27 -0800 IronPort-SDR: Bp94XEtkdcdNfgLqg/iL9kgcHhk6VC2l0J3aMbxsmG3GOy6K5XQ+3CoE3cRo6Udz+s00yDyfGa JGyjoPi2W6C/8FKsybNpgQWGEKaei+AHBj6sv3J/9Zd7O3eu6Y/xBnlUR89bEDkFl2qBNGxB4P RxL/bTpeB1WRfLUQPW2TW/X9tlQxK/kM+WhLaElX+aCtqkzQAk/CLTsurBY+o0+Uom91ZNkc3u Y1HIWpkvUlKffD4c5oTfRfyz32+SBVq2XC8C9QFgHioRfod/Mq7jHxs4L+Wi45Jo5DhLopVYp0 3HI= Date: Thu, 16 Sep 2021 22:36:22 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: CC: GNU C Library , Subject: Re: [libc-coord] Add new ABI '__memcmpeq()' to libc In-Reply-To: Message-ID: References: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-1040.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2021 22:36:29 -0000 On Thu, 16 Sep 2021, Chris Kennelly wrote: > The mem* functions are extremely sensitive to instruction cache effects, so > having 3 unique implementations (__memcmpeq, bcmp, memcmp) that do similar, I don't think anyone is suggesting 3 unique implementations. The obsolescent name bcmp would be aliased to either __memcmpeq or memcmp (depending on whether there are concerns about existing binaries depending on bcmp acting like memcmp). (And __memcmpeq and memcmp would be aliases on architectures without a separate optimized __memcmpeq.) -- Joseph S. Myers joseph@codesourcery.com