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
798e3376
Commit
798e3376
authored
15 years ago
by
richard
Browse files
Options
Downloads
Patches
Plain Diff
fix for gcc build
parent
9e506e49
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
+18
-0
18 additions, 0 deletions
indra/llcommon/llfasttimer.h
with
18 additions
and
0 deletions
indra/llcommon/llfasttimer.h
+
18
−
0
View file @
798e3376
...
@@ -96,6 +96,24 @@ inline U64 get_cpu_clock_count_64()
...
@@ -96,6 +96,24 @@ inline U64 get_cpu_clock_count_64()
}
}
return
ret_val
;
return
ret_val
;
}
}
#else
#define LL_INLINE
#endif
#if (LL_LINUX || LL_SOLARIS || LL_DARWIN) && (defined(__i386__) || defined(__amd64__))
inline
U32
get_cpu_clock_count_32
()
{
U64
x
;
__asm__
volatile
(
".byte 0x0f, 0x31"
:
"=A"
(
x
));
return
(
U32
)
x
>>
8
;
}
inline
U32
get_cpu_clock_count_64
()
{
U64
x
;
__asm__
volatile
(
".byte 0x0f, 0x31"
:
"=A"
(
x
));
return
x
>>
8
;
}
#endif
#endif
#if ( LL_DARWIN && !(defined(__i386__) || defined(__amd64__))) || (LL_SOLARIS && defined(__sparc__))
#if ( LL_DARWIN && !(defined(__i386__) || defined(__amd64__))) || (LL_SOLARIS && defined(__sparc__))
...
...
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