From: "Tang, Jun" <juntangc@amazon.com>
To: GNU libc development <libc-alpha@sourceware.org>
Subject: revised patch for hp-timing.h
Date: Tue, 31 Jan 2023 17:19:16 +0000 [thread overview]
Message-ID: <5eaed0800f8741658abb9073693660dd@amazon.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 746 bytes --]
I have revised the patch to fix the hp-timing.h bug (bug 29329<https://sourceware.org/bugzilla/show_bug.cgi?id=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" : "=r" (freq)); \
- (Diff) = ((End) - (Start)) * (UINT64_C(1000000000) / freq); \
+ (Diff) = (((End) - (Start)) * UINT64_C(1000000000)) / freq; \
})
#endif /* hp-timing.h */
```
next reply other threads:[~2023-01-31 17:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-31 17:19 Tang, Jun [this message]
2023-01-31 22:38 ` Carlos O'Donell
2023-01-31 22:50 ` Tang, Jun
2023-01-31 23:14 ` DJ Delorie
2023-01-31 23:16 ` Tang, Jun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5eaed0800f8741658abb9073693660dd@amazon.com \
--to=juntangc@amazon.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).