Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
a15ca3fc
Commit
a15ca3fc
authored
Jun 18, 2013
by
John Koleszar
Committed by
Gerrit Code Review
Jun 18, 2013
Browse files
Merge "vpx_ports/x86.h: de-dup #elif block"
parents
e7b599f6
9fb6f406
Changes
1
Hide whitespace changes
Inline
Side-by-side
vpx_ports/x86.h
View file @
a15ca3fc
...
...
@@ -186,36 +186,23 @@ x86_readtsc(void) {
#if defined(__GNUC__) && __GNUC__
static
void
x87_set_control_word
(
unsigned
short
mode
)
{
__asm__
__volatile__
(
"fldcw %0"
:
:
"m"
(
*&
mode
));
__asm__
__volatile__
(
"fldcw %0"
:
:
"m"
(
*&
mode
));
}
static
unsigned
short
x87_get_control_word
(
void
)
{
unsigned
short
mode
;
__asm__
__volatile__
(
"fstcw %0
\n\t
"
:
"=m"
(
*&
mode
)
:
);
__asm__
__volatile__
(
"fstcw %0
\n\t
"
:
"=m"
(
*&
mode
)
:
);
return
mode
;
}
#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
static
void
x87_set_control_word
(
unsigned
short
mode
)
{
asm
volatile
(
"fldcw %0"
:
:
"m"
(
*&
mode
));
}
static
unsigned
short
x87_get_control_word
(
void
)
{
unsigned
short
mode
;
asm
volatile
(
"fstcw %0
\n\t
"
:
"=m"
(
*&
mode
)
:
);
return
mode
;
}
#elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
static
void
x87_set_control_word
(
unsigned
short
mode
)
{
asm
volatile
(
"fldcw %0"
:
:
"m"
(
*&
mode
));
asm
volatile
(
"fldcw %0"
:
:
"m"
(
*&
mode
));
}
static
unsigned
short
x87_get_control_word
(
void
)
{
unsigned
short
mode
;
asm
volatile
(
"fstcw %0
\n\t
"
:
"=m"
(
*&
mode
)
:
);
asm
volatile
(
"fstcw %0
\n\t
"
:
"=m"
(
*&
mode
)
:
);
return
mode
;
}
#elif ARCH_X86_64
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment