Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
d9abf017
Unverified
Commit
d9abf017
authored
Nov 03, 2020
by
Steven Wan
Committed by
GitHub
Nov 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename 'mftbl' to 'mftb' (#1069)
* Rename 'mftbl' to 'mftb' * Add my name to the contributor list
parent
a9704c26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CONTRIBUTORS
CONTRIBUTORS
+1
-0
cycleclock.h
src/cycleclock.h
+1
-1
No files found.
CONTRIBUTORS
View file @
d9abf017
...
@@ -74,6 +74,7 @@ Robert Guo <robert.guo@mongodb.com>
...
@@ -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>
...
...
src/cycleclock.h
View file @
d9abf017
...
@@ -92,7 +92,7 @@ inline BENCHMARK_ALWAYS_INLINE int64_t Now() {
...
@@ -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
"
"mftb
l
%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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment