From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-fw-9103.amazon.com (smtp-fw-9103.amazon.com [207.171.188.200]) by sourceware.org (Postfix) with ESMTPS id 67F723858418 for ; Tue, 31 Jan 2023 17:49:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 67F723858418 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=amazon.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1675187394; x=1706723394; h=from:to:subject:date:message-id:mime-version; bh=DJpTpgOji2KJp4v+3KsDMrmpISY5ea199RKzO3A33zA=; b=OxwVQ9aIegTRew6L65QXB26kAXvGKh1d6iX6KhyUdf9zw2E//jl7KVRQ tejeNsRKN/Vdc9dkbzc+e77icBAOwwGhxVJne516bBm1nfxVSNC4H9oIm KfKT11JHeME00WGMb+S9+rWdIjxo7TXzllNnUroL8Wupoa749zkzS9djA g=; X-IronPort-AV: E=Sophos;i="5.97,261,1669075200"; d="scan'208,217";a="1097937170" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-pdx-2c-m6i4x-e7094f15.us-west-2.amazon.com) ([10.25.36.214]) by smtp-border-fw-9103.sea19.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2023 17:19:17 +0000 Received: from EX13MTAUWA001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-pdx-2c-m6i4x-e7094f15.us-west-2.amazon.com (Postfix) with ESMTPS id 7E18040E0E for ; Tue, 31 Jan 2023 17:19:17 +0000 (UTC) Received: from EX19D044UWA002.ant.amazon.com (10.13.139.11) by EX13MTAUWA001.ant.amazon.com (10.43.160.58) with Microsoft SMTP Server (TLS) id 15.0.1497.45; Tue, 31 Jan 2023 17:19:17 +0000 Received: from EX19D044UWA004.ant.amazon.com (10.13.139.7) by EX19D044UWA002.ant.amazon.com (10.13.139.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.24; Tue, 31 Jan 2023 17:19:16 +0000 Received: from EX19D044UWA004.ant.amazon.com ([fe80::781f:7190:c095:c260]) by EX19D044UWA004.ant.amazon.com ([fe80::781f:7190:c095:c260%5]) with mapi id 15.02.1118.024; Tue, 31 Jan 2023 17:19:16 +0000 From: "Tang, Jun" To: GNU libc development Subject: revised patch for hp-timing.h Thread-Topic: revised patch for hp-timing.h Thread-Index: Adk1l76O45ItXjvQQGKgmldoXIX1hg== Date: Tue, 31 Jan 2023 17:19:16 +0000 Message-ID: <5eaed0800f8741658abb9073693660dd@amazon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.13.138.181] Content-Type: multipart/alternative; boundary="_000_5eaed0800f8741658abb9073693660ddamazoncom_" MIME-Version: 1.0 X-Spam-Status: No, score=-18.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --_000_5eaed0800f8741658abb9073693660ddamazoncom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have revised the patch to fix the hp-timing.h bug (bug 29329). Regards, Jun ``` diff --git a/sysdeps/aarch64/hp-timing.h b/sysdeps/aarch64/hp-timing.h index f7f7ac7cae..c699effe6a 100644 --- a/sysdeps/aarch64/hp-timing.h +++ b/sysdeps/aarch64/hp-timing.h @@ -41,7 +41,7 @@ typedef uint64_t hp_timing_t; #define HP_TIMING_DIFF(Diff, Start, End) \ ({ hp_timing_t freq; \ __asm__ __volatile__ ("mrs %0, cntfrq_el0" : "=3Dr" (freq)); \ - (Diff) =3D ((End) - (Start)) * (UINT64_C(1000000000) / freq); \ + (Diff) =3D (((End) - (Start)) * UINT64_C(1000000000)) / freq; \ }) #endif /* hp-timing.h */ ``` --_000_5eaed0800f8741658abb9073693660ddamazoncom_--