mirror of https://github.com/google/benchmark.git
Rename 'mftbl' to 'mftb' (#1069)
* Rename 'mftbl' to 'mftb' * Add my name to the contributor list
This commit is contained in:
parent
a9704c268d
commit
d9abf01763
|
@ -74,6 +74,7 @@ Robert Guo <robert.guo@mongodb.com>
|
||||||
Roman Lebedev <lebedev.ri@gmail.com>
|
Roman Lebedev <lebedev.ri@gmail.com>
|
||||||
Sayan Bhattacharjee <aero.sayan@gmail.com>
|
Sayan Bhattacharjee <aero.sayan@gmail.com>
|
||||||
Shuo Chen <chenshuo@chenshuo.com>
|
Shuo Chen <chenshuo@chenshuo.com>
|
||||||
|
Steven Wan <wan.yu@ibm.com>
|
||||||
Tobias Ulvgård <tobias.ulvgard@dirac.se>
|
Tobias Ulvgård <tobias.ulvgard@dirac.se>
|
||||||
Tom Madams <tom.ej.madams@gmail.com> <tmadams@google.com>
|
Tom Madams <tom.ej.madams@gmail.com> <tmadams@google.com>
|
||||||
Yixuan Qiu <yixuanq@gmail.com>
|
Yixuan Qiu <yixuanq@gmail.com>
|
||||||
|
|
|
@ -92,7 +92,7 @@ inline BENCHMARK_ALWAYS_INLINE int64_t Now() {
|
||||||
uint32_t tbl, tbu0, tbu1;
|
uint32_t tbl, tbu0, tbu1;
|
||||||
asm volatile(
|
asm volatile(
|
||||||
"mftbu %0\n"
|
"mftbu %0\n"
|
||||||
"mftbl %1\n"
|
"mftb %1\n"
|
||||||
"mftbu %2"
|
"mftbu %2"
|
||||||
: "=r"(tbu0), "=r"(tbl), "=r"(tbu1));
|
: "=r"(tbu0), "=r"(tbl), "=r"(tbu1));
|
||||||
tbl &= -static_cast<int32_t>(tbu0 == tbu1);
|
tbl &= -static_cast<int32_t>(tbu0 == tbu1);
|
||||||
|
|
Loading…
Reference in New Issue