ref: a15ca3fc0a0d10bd24c5d8e0fdf5b1dc2e25d818
parent: e7b599f683a860867de716f640fc1577e4ab950c
parent: 9fb6f406773f86e3640c0d012a61f9f972ba8147
author: John Koleszar <[email protected]>
date: Tue Jun 18 04:26:54 EDT 2013
Merge "vpx_ports/x86.h: de-dup #elif block"
--- a/vpx_ports/x86.h
+++ b/vpx_ports/x86.h
@@ -186,36 +186,23 @@
#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