summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-11-28 01:42:16 +0000
committerjhb <jhb@FreeBSD.org>2001-11-28 01:42:16 +0000
commit7a696f8fcb3241b19cf29b67f51e75be559fb8b7 (patch)
tree62a55d94683b65370331a987d3bc1aff18958474 /sys/i386
parent58de837716d20ed27b9f16304daec90fa7465047 (diff)
downloadFreeBSD-src-7a696f8fcb3241b19cf29b67f51e75be559fb8b7.zip
FreeBSD-src-7a696f8fcb3241b19cf29b67f51e75be559fb8b7.tar.gz
Clean up some of the gross macros whitespace wise before I fix the asm
constraints.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/math_emulate.c42
1 files changed, 22 insertions, 20 deletions
diff --git a/sys/i386/i386/math_emulate.c b/sys/i386/i386/math_emulate.c
index f15246a..296598a 100644
--- a/sys/i386/i386/math_emulate.c
+++ b/sys/i386/i386/math_emulate.c
@@ -765,18 +765,20 @@ get_longlong_int(temp_real * tmp, struct trapframe * info, unsigned short code)
int_to_real(&ti,tmp);
}
-#define MUL10(low,high) \
-__asm__("addl %0,%0 ; adcl %1,%1\n\t" \
-"movl %0,%%ecx ; movl %1,%%ebx\n\t" \
-"addl %0,%0 ; adcl %1,%1\n\t" \
-"addl %0,%0 ; adcl %1,%1\n\t" \
-"addl %%ecx,%0 ; adcl %%ebx,%1" \
-:"=a" (low),"=d" (high) \
-:"0" (low),"1" (high):"cx","bx")
-
-#define ADD64(val,low,high) \
-__asm__("addl %4,%0 ; adcl $0,%1":"=r" (low),"=r" (high) \
-:"0" (low),"1" (high),"r" ((u_int32_t) (val)))
+#define MUL10(low, high) \
+ __asm__("addl %0,%0 ; adcl %1,%1\n\t" \
+ "movl %0,%%ecx ; movl %1,%%ebx\n\t" \
+ "addl %0,%0 ; adcl %1,%1\n\t" \
+ "addl %0,%0 ; adcl %1,%1\n\t" \
+ "addl %%ecx,%0 ; adcl %%ebx,%1" \
+ : "=a" (low), "=d" (high) \
+ : "0" (low), "1" (high) \
+ : "cx", "bx")
+
+#define ADD64(val, low, high) \
+ __asm__("addl %4,%0 ; adcl $0,%1" \
+ :"=r" (low),"=r" (high) \
+ :"0" (low),"1" (high),"r" ((u_int32_t) (val)))
static void
get_BCD(temp_real * tmp, struct trapframe * info, unsigned short code)
@@ -889,10 +891,10 @@ put_longlong_int(const temp_real * tmp,
put_fs_long(ti.b,1 + (u_int32_t *) addr);
}
-#define DIV10(low,high,rem) \
-__asm__("divl %6 ; xchgl %1,%2 ; divl %6" \
- :"=d" (rem),"=a" (low),"=r" (high) \
- :"0" (0),"1" (high),"2" (low),"c" (10))
+#define DIV10(low,high,rem) \
+ __asm__("divl %6 ; xchgl %1,%2 ; divl %6" \
+ :"=d" (rem),"=a" (low),"=r" (high) \
+ :"0" (0),"1" (high),"2" (low),"c" (10))
static void
put_BCD(const temp_real * tmp,struct trapframe * info, unsigned short code)
@@ -1126,10 +1128,10 @@ fdiv(const temp_real * src1, const temp_real * src2, temp_real * result)
* 61-bit accuracy never shows at all.
*/
-#define NEGINT(a) \
-__asm__("notl %0 ; notl %1 ; addl $1,%0 ; adcl $0,%1" \
- :"=r" (a->a),"=r" (a->b) \
- :"0" (a->a),"1" (a->b))
+#define NEGINT(a) \
+ __asm__("notl %0 ; notl %1 ; addl $1,%0 ; adcl $0,%1" \
+ : "=r" (a->a), "=r" (a->b) \
+ : "0" (a->a), "1" (a->b))
static void signify(temp_real * a)
{
OpenPOWER on IntegriCloud