mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 12:28:58 +00:00
Change constraints to use "+" in inline asm instead of mapping input
to output parameters with "0". Reviewed by: jhb
This commit is contained in:
parent
7377f0d190
commit
a98556d61f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86307
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user