Message ID | 20240531092543.2694952-1-szabolcs.nagy@arm.com |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=HiNPxyTY; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=HiNPxyTY; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VrHmx6zsyz20Pb for <incoming@patchwork.ozlabs.org>; Fri, 31 May 2024 19:26:25 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BD16C3847718 for <incoming@patchwork.ozlabs.org>; Fri, 31 May 2024 09:26:23 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2057.outbound.protection.outlook.com [40.107.7.57]) by sourceware.org (Postfix) with ESMTPS id F0959385ED4A for <libc-alpha@sourceware.org>; Fri, 31 May 2024 09:25:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F0959385ED4A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F0959385ED4A Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=40.107.7.57 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1717147560; cv=pass; b=M7dXDXzrKZ8tmC/7fJfkI5YPJ4d3QDEoksyk/9DsL9pBDOt846xKcYYNgVuSH510FhzCw2bVlPCwCdENY2EZeJochmHvLJbWOwneIfLThFhtqDwfud/RiInUZnGAyEHJ3+CF+5cg6C1ujC5zrossWq9Xh3yoRzYo74A7ASFnW+0= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1717147560; c=relaxed/simple; bh=8uviZGeDcNY7eLqvvTrAIQW0kWapi6hW+KP3rDA9REs=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=AOVlkYeQ978oKlscjTlTb2ra1TRq1Hn68cyimaZcIDg2gX1houDofYtt2EHIt2OYYa36Li60B2zxY5pTYzjXlITUHKR0aeJ7s4YhnLxX1+0e8QDOEXIroJZJ/HVf8Tpg0mNhAObr/Tn3IbSTvmW/5yvln3Fn6dl5FTwLCeY+NNA= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=EBl1NZJgTEeRPyy37br2LTS7wlyYpMx32m65LciF0tZCabRWDx4akydPbXHE8Miyka4TWz5Np447rdEQPVEo/3tASUk2vxEQ6IH5ntF/Z0lVI5DlCKf/jVR8WJ5HU846RRWjQjBsua3doLivmO9JUVIGtAQLiIIiQv33nKm86VzA82pZTqInm7ijsghPqCO9j3bGm+OHpXeWiPGaQGTBzx+4Bev44oZmoZJPGiTPfAhf+IN8GKqCyNJByDIjsypjSx/yZh00gl3I5Ho1F2kQ8pKKuiUDZurWI+RTuXBTyuS3NaIF1dxKgR03VAA/dh6HhaRkME2y/KKpXPH89z9uBw== ARC-Message-Signature: i=2; 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=zXe4iIycSLqpddy2BjnxbRmH4riIW/isLZDP73lelow=; b=mRspDrEtfIgs1N3W9KbI1XswIxoBXjycEwPF0Ff2bJA+I0gjsufMDIWlrZsVyvKpczKN+gyGpcj9yMhZm0TxLVuFa2U9XKMeloZZaIGa2P824lRTnPVonePhankCOGHfzM6dI1OxmbJ3cHxoUHT2Q2GpJqlzNxeADXkTTzWUVi2Y1wSqv1TPAigR32gcURBc3SXyRY9dgaPpYwfqpOmnpJGTUAK/yV9yNdbDXBPUXcHMX86YoBDcE5FSDlBjXuTyOqurdSv7Lbx/FO5i/LHuEGE1qZpjOWIlIi1Dk0VRTeijTWy3LbCt7l6elG4ox4pUnl62+AQYKiS+sCWy5IpS9w== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zXe4iIycSLqpddy2BjnxbRmH4riIW/isLZDP73lelow=; b=HiNPxyTY6+QijjxKdfrSHEALK+vqUb35M9akZ9XRtlUOv+nJaJ3SDrmkBixvwHgMrJZbGLlN182dwemYkcEE5waxybu1+i8QWrBRTW+0asboxPKDonvhy2yZVcYRW7hDPdIytP4XafrOnVv/MlGHGxARVgBW0+40G5gldRHQRR8= Received: from DU7P250CA0022.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:54f::6) by PR3PR08MB5594.eurprd08.prod.outlook.com (2603:10a6:102:8b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.24; Fri, 31 May 2024 09:25:53 +0000 Received: from DB1PEPF000509E3.eurprd03.prod.outlook.com (2603:10a6:10:54f:cafe::b) by DU7P250CA0022.outlook.office365.com (2603:10a6:10:54f::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.23 via Frontend Transport; Fri, 31 May 2024 09:25:53 +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=arm.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; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB1PEPF000509E3.mail.protection.outlook.com (10.167.242.53) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7633.15 via Frontend Transport; Fri, 31 May 2024 09:25:52 +0000 Received: ("Tessian outbound a0025cf119c5:v327"); Fri, 31 May 2024 09:25:52 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e3ae2372857e561c X-CR-MTA-TID: 64aa7808 Received: from ab2894e31d24.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id E7CB8BE9-9302-4391-870A-07F81B6AFEF7.1; Fri, 31 May 2024 09:25:46 +0000 Received: from EUR03-AM7-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id ab2894e31d24.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 31 May 2024 09:25:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VkM9WgD6TbvD/2BHREFgRANzBPikYVw+g07m6YqGd0nvUfcfmghI9kjHWE89u2ixaBmya4NNFeSB8uCDZHkbrtc94VtwWINQhRxQ0QQeEqpyLevXgS6mx1vj19sd4D4dfQFEexDsL+6PYigH8EcST2XYWIdmg7bTsclvNJVefBS2FFZmCU3ZIfVFrdlDFthJocBIY6qSDzHSR5YUPm9ebz8rVkG7xClYqLgxv61v9i60jQrntmbI/Moxp63MQKKONhvijIaWZM3FOxHCkRg27jVNFhmMAiw1H6Tq1RrbrNonqqkQUDxLKlOPO06IF6r1AbbFtLzW09gxPmd6f2ry5g== 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=zXe4iIycSLqpddy2BjnxbRmH4riIW/isLZDP73lelow=; b=Xfn0ogkuLwCBuHRt7vQ3JwOtRYLv6YwgisSw2j7k9jAuRFhz848LDfDKIpfe0jNKhs0yFHKNxySBvxhY9HbTOczkucsR8Um2NDNW2yxJ4VGyF5/n+2EnBfPcI5SD9oNWWK+P2R4+S3d+fF05zrnzw6JpPD2c2lYjobchZZvUvAGpIoL5wEA8c0hVtOQPDe3Ngb4QEOkNLuHrjFkxAm/LOnexjef51QjSw5AzyKapCnc/oACVDhIYj/qxyW92LFVIPhF5lciatNSEY4c1ka9f6IV10FTANBreuNsaK4EhWfNLaHkka/jKoTtMpNOhFC+/L7FihQppklMMk5n20Bl2eA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zXe4iIycSLqpddy2BjnxbRmH4riIW/isLZDP73lelow=; b=HiNPxyTY6+QijjxKdfrSHEALK+vqUb35M9akZ9XRtlUOv+nJaJ3SDrmkBixvwHgMrJZbGLlN182dwemYkcEE5waxybu1+i8QWrBRTW+0asboxPKDonvhy2yZVcYRW7hDPdIytP4XafrOnVv/MlGHGxARVgBW0+40G5gldRHQRR8= Received: from AM0PR02CA0123.eurprd02.prod.outlook.com (2603:10a6:20b:28c::20) by DB9PR08MB8228.eurprd08.prod.outlook.com (2603:10a6:10:37f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Fri, 31 May 2024 09:25:44 +0000 Received: from AM2PEPF0001C716.eurprd05.prod.outlook.com (2603:10a6:20b:28c:cafe::97) by AM0PR02CA0123.outlook.office365.com (2603:10a6:20b:28c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.23 via Frontend Transport; Fri, 31 May 2024 09:25:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AM2PEPF0001C716.mail.protection.outlook.com (10.167.16.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Fri, 31 May 2024 09:25:44 +0000 Received: from AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 31 May 2024 09:25:44 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX02.Emea.Arm.com (10.251.26.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 31 May 2024 09:25:43 +0000 Received: from armchair.cambridge.arm.com (10.2.80.71) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Fri, 31 May 2024 09:25:43 +0000 From: Szabolcs Nagy <szabolcs.nagy@arm.com> To: <libc-alpha@sourceware.org> Subject: [PATCH] math: Fix exp10 undefined left shift Date: Fri, 31 May 2024 10:25:43 +0100 Message-ID: <20240531092543.2694952-1-szabolcs.nagy@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM2PEPF0001C716:EE_|DB9PR08MB8228:EE_|DB1PEPF000509E3:EE_|PR3PR08MB5594:EE_ X-MS-Office365-Filtering-Correlation-Id: 07a4a6f1-2b08-4fe2-9b59-08dc8153aad3 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230031|376005|36860700004|1800799015|82310400017; X-Microsoft-Antispam-Message-Info-Original: LpUaOumUa12A4e/8JSxsv3lTzABJ4y4sEmtB4VfndNz6+lhRIletupvv1jxWyGHNdXame1Cg1PJ9ZrG64T8z1sE8F0vEIkPCVtdYzh9dvc3dAYKwZ3f3rAr3lnzJRI4MtottMl2RDcduxXrM5qhv0Gd4hfRwwKxJAYGb3pabBDMkxWJrZZafydwOnlYcHjEHm+Tbm99EEiolOX/LLPfF/5wBw1BtyJYqATL2qTtmoMocKbPFpLcigsCdKDHz07kEUMDJEYPg0RXmrDg46piKaH2ui+FyK+8mymtCrMWuRE2yceT2D5kFaZ6Rf4lw4zLs2MAAJBD9iRjci4icpObSF4mZe/o+Xzt6LMvqI+kv4J8c1zNDZH726iLpBaFfEYMj4AjFNjWb4q5dLltGibhpRx5inr+8JvDABX+gKgschUe7qTfRkWy1Es9lUow1m+DYOetvBiomYVZ3zVpjfbcGrkJbks03ZyZlHLabyA2XkffxrWXUXEk8lll2Edzm8KMpRm/uwvgLn+JFF7NcRI7pAw2OmZfEEiavznM5MRCWIHc/A4jWLjJpfKUyvC98jk7CDi67SqHujbPgAuvpquS0QObB17I+xkI3nXva2UN6vtrff8u5kyRedayvdZ/pJROZZPICADhYu9bHJlDPSwvOXeK7NGzeJS96pxYqNbke2djBKdBUOtz5paiAS680fqanAvqR/MnF582rc5ujUdRy5Kf0SN2dFOWNQI9toaP2g0PwW91NZ2DyBhPAsp+NUBaC2CsDDUcLov9bfvnfKyP5xECCATZoiWEwONM5ykf+Lc+bXHO9iUcFQC+gN8uMhtNHFZYR1JhZ7laJWYDU88XTjGNFrxGWIOTRcFVdA4PbrU12IBW8PcUfDUUcTJ49etLVMLo+XnhKsJnCaMm7wWruxl7v9YqazG1atC7yqvFt6mUBUJgLn+oBncZH4veIRNptvNTOMJsQGUKbr+m661XDS1RL1XAZz/P02yGoWI+bFRGT3qnKIMkfRzNbmpQRXnNDppGhyyE0EGEXOR8I6YgRs5oHvbxW2QLQtf/eQxLoZP8NTr588Uf6Rz/y2PmlyXLc0O4FtwAtMC1efvRH/hJukVlxyh2jtzmv7Rr1diNZxrHt7U7vEJOLkUSQ55Jm7yTa72rgNwFg0BBB2Qkirg2GJvlZ1wuqtLgnK6bfURD1iWRnrPiM0UeCPVM1kOo30z/pySyFP8AAJmItjlg9USE8isofA9iVclEeTIttTla49BgV/OWhrvzOHj1ImODxNOLubtbHF464RFRju/bwhFdrpi5mnrnv5Lo0rURfqQxHRnKfk50ChNc8YRjC+pzroHt+I086TPF7vtXiaiN6H+pMoDkpeqns9Fnj36E8xlbBwoB9XX3O7kYzLBnbDzaJjHkN X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(376005)(36860700004)(1800799015)(82310400017); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB8228 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB1PEPF000509E3.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 8bc67194-01d4-458b-eeaa-08dc8153a5d4 X-Microsoft-Antispam: BCL:0; ARA:13230031|82310400017|35042699013|376005|36860700004|1800799015; X-Microsoft-Antispam-Message-Info: QUvgrl/LJ3N5yPlYf30DfiJFfFlSHZS9SmjbYwMQycQiAtsreaQswbFZMqJ6WAWjcAf1Vq+H0yujOps6CdhAOXJB47YcI+mx9/4puGxK+cIiAPOF+WDMOQcnpNrvXT0T7TxZPn0XIw+lWhw2NhZs8geCJxckUGMX7wBFMq2/HOglgFEusalGA1jsfSfaVuo4SrSi/J9R180u+sQzVjv/FA9Hw8NbJNS8sxw7no/LmZDHY/5ORxVtLXv/0W0ugNWXKFWrTCMpsj9EeOn3irP7kolMvVxioQUp8cHOdj6fXel3ND4mkWnxg9ZaieSJr7YgG/Aq1jnDW4A95ufVzb8/MHjBLZdroZcxR32SoOgU8NzCfuxOJkU4sIRbL0bRhSx7dGNs6S2Znti3S7Xw18aN9JPVPnKq1NYH4gZTo/VNQDhRSR4iU4wXs+jzgwa5qdKqyr3F+tLIbdovAqjdJheN5yvteMKpnmC8+UZ28EoTG0+FUpeg8tC+oX6FhdzoGso4WkJ5NjxZMYkljADg0ArHAxnCxpAEm4JIDg0d7cP5HTWgc1Ut3jCkU+eqyzxGysbcnH6cITiZetvTKGKlQtmeo4RZ7rJF6xYfHI+2D4wMsX/5fSCh16tr7dZB5QRA8HT3hk05Fv9pVXMjfmRyX3w5MQhjR+qOGw97xIXntm24r1vxcGfUhpH7pfQzWF22PJBpJyQ9vAAmsqeL4jfnEQWDV9XICAZHeeAThrz/WHePAXEMN7wQ+WFPJiVf0WFsUHZFw9+0PTvvwWPANgPutZkc/Mfx/D5YPwcgyCiDxxgRI396dPnklL0hqft1XD1HVsE6N1SpolTKSTA1LmNn8Bh/6dWHiJhjtO4UrhZhboYugZFF0APsxkpM13BUXzvl77hLZdsBl/b3DqsNIwPu/hUYvnDcC27O6lSZrSNCgmNTdykk4O3uYetZiEWaEjn7MsUgiJSo2R+c9vhw7ugydFf9k5ckxHxrU6ijOo9zwzIFprJaisZ2+peGIx0awIO2upmnR4754b8BipcbbR0ClvDmg8jNFnvMkJFltOzmQFg48PaEaixwo88hnuZ2PfDVHOZXQdeXOy6ZXI/xCCbmOiqjM7FU08FK7jHcyT8NO3OM5c4XVoWyaDEjtO8rYu0ekfqGpyjf7JuQ57AC/eP4uWFMoi5KhXAXLG0PJH3Ui08RLofY2n5RCUtDb512G1vWjlxXfY95T/vs55Rc6BSxqIPieuhpjERxHZFglRJpZTrjr14mBocDbBIMxLw9hYmS/WlA29h3arsC6VRdr/jKNy9pCRr9qQ8RSvo81OydFkJNXfPP2dS9Tm9b0zvS0iMmVuAUrd4C660QDLtmgJv91z5id1B4N7clVUYoIHnTTx+cH7hFFCgHCOaOnsXxRIV/DT9B 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:(13230031)(82310400017)(35042699013)(376005)(36860700004)(1800799015); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2024 09:25:52.8031 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 07a4a6f1-2b08-4fe2-9b59-08dc8153aad3 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: DB1PEPF000509E3.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR08MB5594 X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org |
Series |
math: Fix exp10 undefined left shift
|
expand
|
On 31/05/24 06:25, Szabolcs Nagy wrote: > Left shift of ki is undefined when ki<0, copy the logic from exp, > which uses unsigned arithmetics, to fix it. LGTM, thanks. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> > --- > sysdeps/ieee754/dbl-64/e_exp10.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/sysdeps/ieee754/dbl-64/e_exp10.c b/sysdeps/ieee754/dbl-64/e_exp10.c > index 225fc74c4c..7ea8270063 100644 > --- a/sysdeps/ieee754/dbl-64/e_exp10.c > +++ b/sysdeps/ieee754/dbl-64/e_exp10.c > @@ -38,7 +38,7 @@ special_case (uint64_t sbits, double_t tmp, uint64_t ki) > { > double_t scale, y; > > - if (ki - (1ull << 16) < 0x80000000) > + if ((ki & 0x80000000) == 0) > { > /* The exponent of scale might have overflowed by 1. */ > sbits -= 1ull << 52; > @@ -100,14 +100,14 @@ __exp10 (double x) > /* Reduce x: z = x * N / log10(2), k = round(z). */ > double_t z = __exp_data.invlog10_2N * x; > double_t kd; > - int64_t ki; > + uint64_t ki; > #if TOINT_INTRINSICS > kd = roundtoint (z); > ki = converttoint (z); > #else > kd = math_narrow_eval (z + Shift); > + ki = asuint64 (kd); > kd -= Shift; > - ki = kd; > #endif > > /* r = x - k * log10(2), r in [-0.5, 0.5]. */
diff --git a/sysdeps/ieee754/dbl-64/e_exp10.c b/sysdeps/ieee754/dbl-64/e_exp10.c index 225fc74c4c..7ea8270063 100644 --- a/sysdeps/ieee754/dbl-64/e_exp10.c +++ b/sysdeps/ieee754/dbl-64/e_exp10.c @@ -38,7 +38,7 @@ special_case (uint64_t sbits, double_t tmp, uint64_t ki) { double_t scale, y; - if (ki - (1ull << 16) < 0x80000000) + if ((ki & 0x80000000) == 0) { /* The exponent of scale might have overflowed by 1. */ sbits -= 1ull << 52; @@ -100,14 +100,14 @@ __exp10 (double x) /* Reduce x: z = x * N / log10(2), k = round(z). */ double_t z = __exp_data.invlog10_2N * x; double_t kd; - int64_t ki; + uint64_t ki; #if TOINT_INTRINSICS kd = roundtoint (z); ki = converttoint (z); #else kd = math_narrow_eval (z + Shift); + ki = asuint64 (kd); kd -= Shift; - ki = kd; #endif /* r = x - k * log10(2), r in [-0.5, 0.5]. */