<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-legacy-support.
</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/97c4d00d91d2abd8ff1c7ab2cee73eb57202fec2">https://github.com/macports/macports-legacy-support/commit/97c4d00d91d2abd8ff1c7ab2cee73eb57202fec2</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 97c4d00d91d2abd8ff1c7ab2cee73eb57202fec2
</span>Author: Ken Cunningham <ken.cunningham.webuse@gmail.com>
AuthorDate: Thu Jan 31 17:13:33 2019 -0800
<span style='display:block; white-space:pre;color:#404040;'> test_arc4random.c : use mach_absolute_time()
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> on PowerPC where the assembly register rdtsc is
</span><span style='display:block; white-space:pre;color:#404040;'> not easily available
</span>---
test/test_arc4random.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/test/test_arc4random.c b/test/test_arc4random.c
</span><span style='display:block; white-space:pre;color:#808080;'>index 1ce680a..262d1ea 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/test/test_arc4random.c
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/test/test_arc4random.c
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,7 +43,12 @@ static inline uint64_t sys_cpu_timestamp(void)
</span>
#else
<span style='display:block; white-space:pre;background:#ffe0e0;'>-#error "I don't know how to get CPU cycle counter for this machine!"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#include <mach/mach.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#include <mach/mach_time.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+static inline uint64_t sys_cpu_timestamp(void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+{
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return(mach_absolute_time());
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
#endif /* x86, x86_64 */
</pre><pre style='margin:0'>
</pre>