Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
f55a3ef1
Commit
f55a3ef1
authored
May 07, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workaround for __rdtscp for now
parent
71e29790
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/core/util.cpp
src/core/util.cpp
+9
-2
No files found.
src/core/util.cpp
View file @
f55a3ef1
...
@@ -29,9 +29,16 @@
...
@@ -29,9 +29,16 @@
namespace
pyston
{
namespace
pyston
{
static
inline
uint64_t
rdtsc
()
{
unsigned
long
lo
,
hi
;
asm
(
"rdtsc"
:
"=a"
(
lo
),
"=d"
(
hi
));
return
(
lo
|
(
hi
<<
32
));
}
uint64_t
getCPUTicks
()
{
uint64_t
getCPUTicks
()
{
unsigned
int
_unused
;
// unsigned int _unused;
return
__rdtscp
(
&
_unused
);
// return __rdtscp(&_unused);
return
rdtsc
();
}
}
int
Timer
::
level
=
0
;
int
Timer
::
level
=
0
;
...
...
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