From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80050.outbound.protection.outlook.com [40.107.8.50]) by sourceware.org (Postfix) with ESMTPS id 6F44F385840B for ; Thu, 10 Feb 2022 13:17:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6F44F385840B Received: from AS9PR06CA0042.eurprd06.prod.outlook.com (2603:10a6:20b:463::27) by VI1PR08MB5408.eurprd08.prod.outlook.com (2603:10a6:803:130::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.16; Thu, 10 Feb 2022 13:17:44 +0000 Received: from AM5EUR03FT011.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:463:cafe::62) by AS9PR06CA0042.outlook.office365.com (2603:10a6:20b:463::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11 via Frontend Transport; Thu, 10 Feb 2022 13:17:43 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT011.mail.protection.outlook.com (10.152.16.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11 via Frontend Transport; Thu, 10 Feb 2022 13:17:43 +0000 Received: ("Tessian outbound 18e50a6f0513:v113"); Thu, 10 Feb 2022 13:17:43 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 46f7ff7592e5fe45 X-CR-MTA-TID: 64aa7808 Received: from cbebb8a718a8.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 1D808F57-DF01-483D-8F90-7716EAF9F561.1; Thu, 10 Feb 2022 13:17:37 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id cbebb8a718a8.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 10 Feb 2022 13:17:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gYcbKl2+2OHmZcqEeuoFyqa3sYgWTAJptF2O2/b3VgqKHMYv8i6AyO/AhXkoVbTeiAn4ZwniXFXbI3nxN2YGofwmKNSRA7q4bmiBaZ9LOjnntJRHoUU6uuhZ9zEEbB5t6ILyaICc5P1DKJia092hzQAb00nF4uP7DJ3jNkZLsXLmDHWno8ep+XEAZtozq1nBz9ie+buEOdDvoNiV+98aIl46l/OmH5CasaQ1OdLygKRUwuQMzTcMWXaAD/7lcaL4DhybhULruycMeRYjIoT0OECoJVQHWLKpAb///f+1pmXgPZqFJmAp/8vndIe+oqBu0/BD94LciEhh16risEXnfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oCil7Vvs25gX1O90AvzqcSGg6j41SM6Dx9vk0DJ40+o=; b=HKf4tRLXth4c9jLyK+94cJYbrmK+lMvA8HD49WjHYbIp47DXnw0tO/QxQ/kxnK0FIL5y/uY6lWqj6rbZulj5S/1LemuY0+ZsLuHcu+WnpXu4PxNZlHqch8F37AUBlT0aKJOB7sdTIgEyO8PBTt/Hc0rLLUoxnqk1kLYmoAxkZGZoNA+OEO35tB72Gaf8nXUeSx82cuX0D0zrDMsIbRkVIuLqAGTFpwpVHrr6skdsGyjsNsmxTGdZiAGdu4Ox87UcpBjIkfWFf1pYsp7FTHyjl9g+cM2jbyxb8LRzwuc7MN62wWTU0odY0X51UKsoZCQXojdWlViilIDTtBbeKLOA2w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from AS8PR08MB6534.eurprd08.prod.outlook.com (2603:10a6:20b:31c::10) by DU2PR08MB7309.eurprd08.prod.outlook.com (2603:10a6:10:2e4::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.17; Thu, 10 Feb 2022 13:17:35 +0000 Received: from AS8PR08MB6534.eurprd08.prod.outlook.com ([fe80::4c4f:f584:ce98:e21d]) by AS8PR08MB6534.eurprd08.prod.outlook.com ([fe80::4c4f:f584:ce98:e21d%5]) with mapi id 15.20.4951.019; Thu, 10 Feb 2022 13:17:35 +0000 From: Wilco Dijkstra To: Adhemerval Zanella , Noah Goldstein CC: "H.J. Lu" , GNU C Library Subject: Re: [PATCH v2] x86-64: Optimize bzero Thread-Topic: [PATCH v2] x86-64: Optimize bzero Thread-Index: AQHYHan5YCUSvWalA0+/WJO+HSj366yLyVsAgADwuYCAAAE0M4AACI+AgAAAUMo= Date: Thu, 10 Feb 2022 13:17:34 +0000 Message-ID: References: <20220208224319.40271-1-hjl.tools@gmail.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-MS-Office365-Filtering-Correlation-Id: 1b20c178-29c7-405b-0aa2-08d9ec97b8e9 x-ms-traffictypediagnostic: DU2PR08MB7309:EE_|AM5EUR03FT011:EE_|VI1PR08MB5408:EE_ X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:10000;OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: XgAfvhnslLFsUe3KGFtG2eyXD32QF/DzXZNhbOQaRX8hOg0QuFx/YHZTVkGy9xhfrBde4YpU1D8mnKLgkQZdyFjHFOomJSeF0kY5NquXXXu7/t5GDbBz+SCNpAnE3mKXBW1f6iFPRrGUKFdb+M2QUg9kPDU1hYI8lnOWTYGgZErXtkdLWnkCaL+PXOwqoaSErzK38O7OYRc4C5iCFAb49YTrr1iCeLdboS5usgpxD2A4gk/Wgrc8E6D5wSLTTZVUSASMqLh7sdGPG9q7TFKr0Z74gg5xV/DHLU4NA7qeRF/OsdYlebCo/vMNDJNR1seGZba/kYBgAY1QZvtjvKhr/FQUA+OPDyel7qCTTWLIvGwg9JvDmqljM3gOK0yOiQndFD+A7w2rV3t62yzfClmtjQjltavkBaJ2y/mCeV3hRhVSYRlVafFHrr7pytDITSljFeSY4CwTSOp7vKcQchtFc6tsfCMZIWT6qDmlORAKrW1TtBab9cx+jZORuKdCog3/eWiXI1+egfo2fO2DUjQbgqJrS+NN0SP+R6+z1KjxY6k0Ave+0kzRB6HLCMHN0WeTEXdd9cOu5YEnC2AP3B38Kf5f6BYelp9BSuQvU22dbV19jSI0swfy0Sq0eUKZL/JlCn0qrwwQOY5UQqbd9W4JtG3irCXFpBrpI7l/IApzJlNY8XME1fq6AHT1G6It8fvO+ZCxtdYzaTibFGA8iClirQ== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB6534.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(2906002)(4744005)(5660300002)(7696005)(52536014)(55016003)(91956017)(6506007)(508600001)(71200400001)(122000001)(8676002)(8936002)(76116006)(66946007)(83380400001)(316002)(66556008)(33656002)(186003)(38100700002)(4326008)(38070700005)(66446008)(9686003)(64756008)(86362001)(26005)(54906003)(66476007)(110136005); DIR:OUT; SFP:1101; Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB7309 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT011.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: cd2ecff8-b1d3-477b-d518-08d9ec97b3e8 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YtkYY2AW37m91+Lyh7r8YGFRBRtcvAT1sTfTEOvwa+/7wL+sw0bumFM/YVNK+ip9zqsq1Ue3qzOkMZM08Ap4YlNklnPoWOeFiq3eC1wGqvJykJPszBzQ+OissRgRiOt4K2OzONvdjrPw3EyaQjrRST2n8MWq40pfDMWvkmj8ms5jBJ4nVOs2XJh4SaymP9q75IE+rMQJYDcy3uFvNRZHr4dMHOCBwWfOS8/KHz5EpOqJwymWmPuS++LtIdh9N6nGg1Vw1sNwH6nV+EzwjLXLwIOkYO/OgwtdStb9LzrJPnl9pezVswIRvAaaNqA+ccMtkfQEqnnVUhFGclu9QO4pm10xU8frdv95hA9r2ladUgbtojUFar4UO97sGEecKeKQln/TAfGrvL5Aea+mfThSF1+NgTgo8DxJ+kOkR5yOVFkoRVE3KFvrH04LIOe1KmE8rT0vhBk+2lfCZyQvDoXmrbxudaidIuKDvd01KCACdod7BBd1mN//PEQUu4274dm+AmmX+QLE6JcoD+IsunGmrlmpZqbwdcpFkbXrBRxDMfjeEAH8RUoZcUhJ0RSFLJ6S93dWduJ0ycYWFJvPARGJVWHVgg7fABMdsCRitTu76s283cQjHumIhjAx2zRxiGlRcmMi8vfShvge3uN7NGuaNwxj73GASeSKDGMCcobxVn4IqptbUOxRsPCwjqOS+NwO X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(40470700004)(46966006)(52536014)(26005)(356005)(186003)(83380400001)(2906002)(336012)(4326008)(81166007)(110136005)(4744005)(9686003)(5660300002)(40460700003)(82310400004)(7696005)(6506007)(70586007)(86362001)(55016003)(47076005)(8936002)(316002)(70206006)(33656002)(508600001)(36860700001)(8676002)(54906003); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2022 13:17:43.5664 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1b20c178-29c7-405b-0aa2-08d9ec97b8e9 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT011.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB5408 X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY 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: 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, 10 Feb 2022 13:17:57 -0000 Hi,=0A= =0A= > We need to keep the symbols as-is afaiu, since callers might still target= =0A= > old POSIX where the symbol is defined as supported.=A0 We might add eithe= r=0A= > compiler or linker warning stating the symbols is deprecated, but imho it= =0A= > would just be better if we stop trying to microoptimize it and just use= =0A= > the generic interface (which call memset).=0A= =0A= Compilers have been doing that forever - if you use bzero GCC and LLVM=0A= emit a call to memset. No new calls are emitted to these functions, so ther= e=0A= is no point in having target-specific optimization at all.=0A= =0A= However we could disallow use of these functions at all in future GLIBCs.= =0A= =0A= Cheers,=0A= Wilco=