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
d90321ff
Unverified
Commit
d90321ff
authored
Feb 14, 2021
by
SSE4
Committed by
GitHub
Feb 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- add support for Elbrus 2000 (e2k) (#1091)
Signed-off-by:
SSE4
<
tomskside@gmail.com
>
parent
ea5a5bbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
cycleclock.h
src/cycleclock.h
+4
-0
No files found.
src/cycleclock.h
View file @
d90321ff
...
...
@@ -204,6 +204,10 @@ inline BENCHMARK_ALWAYS_INLINE int64_t Now() {
asm
volatile
(
"rdcycle %0"
:
"=r"
(
cycles
));
return
cycles
;
#endif
#elif defined(__e2k__) || defined(__elbrus__)
struct
timeval
tv
;
gettimeofday
(
&
tv
,
nullptr
);
return
static_cast
<
int64_t
>
(
tv
.
tv_sec
)
*
1000000
+
tv
.
tv_usec
;
#else
// The soft failover to a generic implementation is automatic only for ARM.
// For other platforms the developer is expected to make an attempt to create
...
...
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