From d9abf017632be4a00b92cf4289539b353fcea5d2 Mon Sep 17 00:00:00 2001 From: Steven Wan Date: Tue, 3 Nov 2020 04:08:46 -0500 Subject: [PATCH] Rename 'mftbl' to 'mftb' (#1069) * Rename 'mftbl' to 'mftb' * Add my name to the contributor list --- CONTRIBUTORS | 1 + src/cycleclock.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 802ce0dc..b5e1aa4f 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -74,6 +74,7 @@ Robert Guo Roman Lebedev Sayan Bhattacharjee Shuo Chen +Steven Wan Tobias Ulvgård Tom Madams Yixuan Qiu diff --git a/src/cycleclock.h b/src/cycleclock.h index 77be7b92..89de86fa 100644 --- a/src/cycleclock.h +++ b/src/cycleclock.h @@ -92,7 +92,7 @@ inline BENCHMARK_ALWAYS_INLINE int64_t Now() { uint32_t tbl, tbu0, tbu1; asm volatile( "mftbu %0\n" - "mftbl %1\n" + "mftb %1\n" "mftbu %2" : "=r"(tbu0), "=r"(tbl), "=r"(tbu1)); tbl &= -static_cast(tbu0 == tbu1);