public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* revised patch for hp-timing.h
@ 2023-01-31 17:19 Tang, Jun
  2023-01-31 22:38 ` Carlos O'Donell
  0 siblings, 1 reply; 5+ messages in thread
From: Tang, Jun @ 2023-01-31 17:19 UTC (permalink / raw)
  To: GNU libc development

[-- 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 */
```

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-31 23:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-31 17:19 revised patch for hp-timing.h Tang, Jun
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

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).