Change constraints to use "+" in inline asm instead of mapping input

to output parameters with "0".

Reviewed by:	jhb
This commit is contained in:
keramida 2001-11-12 21:58:27 +00:00
parent e2b354901d
commit b55f812925
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ FPU_REG *FPU_st0_ptr;
char emulating = 0;
#endif /* PARANOID */
#define bswapw(x) __asm__("xchgb %%al,%%ah":"=a" (x):"0" ((short)x))
#define bswapw(x) __asm__("xchgb %%al,%%ah":"+a" ((short)(x)))
#define math_abort(signo) \
FPU_EIP = FPU_ORIG_EIP;REENTRANT_CHECK(OFF);return(signo);

View File

@ -52,7 +52,7 @@
#define __ALIGNED_TEMP_REAL 1
#include <i386/i386/math_emu.h>
#define bswapw(x) __asm__("xchgb %%al,%%ah":"=a" (x):"0" ((short)x))
#define bswapw(x) __asm__("xchgb %%al,%%ah":"+a" ((short)(x)))
#define ST(x) (*__st((x)))
#define PST(x) ((const temp_real *) __st((x)))
#define math_abort(tfp, signo) tfp->tf_eip = oldeip; return (signo);