Commit be0477de authored by Roman Zippel's avatar Roman Zippel Committed by Linus Torvalds

[PATCH] m68k: math-emu updates [13/20]

Compile fixes
parent c048ec22
...@@ -38,7 +38,9 @@ ...@@ -38,7 +38,9 @@
#ifndef _FP_EMU_H #ifndef _FP_EMU_H
#define _FP_EMU_H #define _FP_EMU_H
#ifdef __ASSEMBLY__
#include "../kernel/m68k_defs.h" #include "../kernel/m68k_defs.h"
#endif
#include <asm/math-emu.h> #include <asm/math-emu.h>
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
......
...@@ -376,7 +376,7 @@ extern inline void fp_submant(struct fp_ext *dest, struct fp_ext *src1, struct f ...@@ -376,7 +376,7 @@ extern inline void fp_submant(struct fp_ext *dest, struct fp_ext *src1, struct f
asm ("divu.l %2,%1:%0" : "=d" (quot), "=d" (rem) \ asm ("divu.l %2,%1:%0" : "=d" (quot), "=d" (rem) \
: "dm" (div), "1" (srch), "0" (srcl)) : "dm" (div), "1" (srch), "0" (srcl))
#define fp_add64(dest1, dest2, src1, src2) ({ \ #define fp_add64(dest1, dest2, src1, src2) ({ \
asm ("add.l %1,%0" : "=d,=dm" (dest2) \ asm ("add.l %1,%0" : "=d,dm" (dest2) \
: "dm,d" (src2), "0,0" (dest2)); \ : "dm,d" (src2), "0,0" (dest2)); \
asm ("addx.l %1,%0" : "=d" (dest1) \ asm ("addx.l %1,%0" : "=d" (dest1) \
: "d" (src1), "0" (dest1)); \ : "d" (src1), "0" (dest1)); \
...@@ -391,14 +391,14 @@ extern inline void fp_submant(struct fp_ext *dest, struct fp_ext *src1, struct f ...@@ -391,14 +391,14 @@ extern inline void fp_submant(struct fp_ext *dest, struct fp_ext *src1, struct f
: "d" (0), "0" (dest->m32[0])); \ : "d" (0), "0" (dest->m32[0])); \
}) })
#define fp_sub64(dest, src) ({ \ #define fp_sub64(dest, src) ({ \
asm ("sub.l %1,%0" : "=d,=dm" (dest.m32[1]) \ asm ("sub.l %1,%0" : "=d,dm" (dest.m32[1]) \
: "dm,d" (src.m32[1]), "0,0" (dest.m32[1])); \ : "dm,d" (src.m32[1]), "0,0" (dest.m32[1])); \
asm ("subx.l %1,%0" : "=d" (dest.m32[0]) \ asm ("subx.l %1,%0" : "=d" (dest.m32[0]) \
: "d" (src.m32[0]), "0" (dest.m32[0])); \ : "d" (src.m32[0]), "0" (dest.m32[0])); \
}) })
#define fp_sub96c(dest, srch, srcm, srcl) ({ \ #define fp_sub96c(dest, srch, srcm, srcl) ({ \
char carry; \ char carry; \
asm ("sub.l %1,%0" : "=d,=dm" (dest.m32[2]) \ asm ("sub.l %1,%0" : "=d,dm" (dest.m32[2]) \
: "dm,d" (srcl), "0,0" (dest.m32[2])); \ : "dm,d" (srcl), "0,0" (dest.m32[2])); \
asm ("subx.l %1,%0" : "=d" (dest.m32[1]) \ asm ("subx.l %1,%0" : "=d" (dest.m32[1]) \
: "d" (srcm), "0" (dest.m32[1])); \ : "d" (srcm), "0" (dest.m32[1])); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment