Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
ea5e033b
Commit
ea5e033b
authored
Jun 02, 2009
by
Michael Beck
Browse files
- fixed Win32 build after r26081
[r26087]
parent
a0e6bed6
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/stat/stat_timing.h
View file @
ea5e033b
...
...
@@ -26,21 +26,18 @@
#ifndef FIRM_STAT_TIMING_H
#define FIRM_STAT_TIMING_H
#ifdef __i386__
#ifdef __GNUC__
#if defined(__i386__) || defined(_M_IX86)
#if defined(__GNUC__)
typedef
unsigned
long
long
timing_ticks_t
;
static
inline
timing_ticks_t
__timing_ticks
(
void
)
{
timing_ticks_t
result
;
__asm__
__volatile__
(
"rdtsc"
:
"=A"
(
result
));
return
result
;
}
#else
#if define _MSC_VER
#elif defined(_MSC_VER)
/* win32 implementation using rdtsc */
typedef
unsigned
__int64
timing_ticks_t
;
static
__inline
timing_ticks_t
__timing_ticks
(
void
)
{
__asm
{
rdtsc
}
}
#else
#error need a 64bit int type
#endif
#endif
#define timing_ticks(t) ((t) = __timing_ticks())
#define timing_ticks_init(t) ((t) = 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