Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
056f0983
Commit
056f0983
authored
8 years ago
by
Nicky
Browse files
Options
Downloads
Patches
Plain Diff
Windows x64: Cannot use inline assembly.
(transplanted from ee32840fc591f5529a0b544243e7b4146eb8f531)
parent
d75a6ecb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llcommon/llfasttimer.h
+10
-0
10 additions, 0 deletions
indra/llcommon/llfasttimer.h
with
10 additions
and
0 deletions
indra/llcommon/llfasttimer.h
+
10
−
0
View file @
056f0983
...
@@ -91,6 +91,7 @@ class BlockTimer
...
@@ -91,6 +91,7 @@ class BlockTimer
static
U32
getCPUClockCount32
()
static
U32
getCPUClockCount32
()
{
{
U32
ret_val
;
U32
ret_val
;
#if !defined(_M_AMD64)
__asm
__asm
{
{
_emit
0x0f
_emit
0x0f
...
@@ -100,6 +101,11 @@ class BlockTimer
...
@@ -100,6 +101,11 @@ class BlockTimer
or
eax
,
edx
or
eax
,
edx
mov
dword
ptr
[
ret_val
],
eax
mov
dword
ptr
[
ret_val
],
eax
}
}
#else
unsigned
__int64
val
=
__rdtsc
();
val
=
val
>>
8
;
ret_val
=
static_cast
<
U32
>
(
val
);
#endif
return
ret_val
;
return
ret_val
;
}
}
...
@@ -107,6 +113,7 @@ class BlockTimer
...
@@ -107,6 +113,7 @@ class BlockTimer
static
U64
getCPUClockCount64
()
static
U64
getCPUClockCount64
()
{
{
U64
ret_val
;
U64
ret_val
;
#if !defined(_M_AMD64)
__asm
__asm
{
{
_emit
0x0f
_emit
0x0f
...
@@ -116,6 +123,9 @@ class BlockTimer
...
@@ -116,6 +123,9 @@ class BlockTimer
mov
dword
ptr
[
ret_val
+
4
],
edx
mov
dword
ptr
[
ret_val
+
4
],
edx
mov
dword
ptr
[
ret_val
],
eax
mov
dword
ptr
[
ret_val
],
eax
}
}
#else
ret_val
=
static_cast
<
U64
>
(
__rdtsc
()
);
#endif
return
ret_val
;
return
ret_val
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment