diff options
author | wollman <wollman@FreeBSD.org> | 1993-11-07 17:43:17 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1993-11-07 17:43:17 +0000 |
commit | 371ee40cea1e168ed119bcd1cde2809629c4ac68 (patch) | |
tree | 7642d79d397e1c876673a91bfe70b030e5bcb793 /sys/amd64/include/floatingpoint.h | |
parent | c1b92d6bad47f8c2ca5bd5d68fdad201868e0126 (diff) | |
download | FreeBSD-src-371ee40cea1e168ed119bcd1cde2809629c4ac68.zip FreeBSD-src-371ee40cea1e168ed119bcd1cde2809629c4ac68.tar.gz |
Made all header files idempotent and moved incorrect common data from
headers into a related source file. Added cons.h as first step towards
moving i386/i386/cons.h to machine/cons.h where it belongs.
Diffstat (limited to 'sys/amd64/include/floatingpoint.h')
-rw-r--r-- | sys/amd64/include/floatingpoint.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/amd64/include/floatingpoint.h b/sys/amd64/include/floatingpoint.h index c17bd2c..ed47cf6 100644 --- a/sys/amd64/include/floatingpoint.h +++ b/sys/amd64/include/floatingpoint.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#) floatingpoint.h 1.0 (Berkeley) 9/23/93 - * $Id$ + * $Id: floatingpoint.h,v 1.3 1993/10/16 14:39:18 rgrimes Exp $ */ /* @@ -46,12 +46,13 @@ #ifdef __GNUC__ +#ifdef __i386__ + #define fnstcw(addr) __asm("fnstcw %0" : "=m" (*addr) : "0" (*addr)) #define fnstsw(addr) __asm("fnstsw %0" : "=m" (*addr) : "0" (*addr)) #define fnstenv(addr) __asm("fnstenv %0" : "=m" (*addr) : "0" (*addr)) #define fldenv(addr) __asm("fldenv %0" : : "m" (*addr)) -#ifdef __i386__ /* * return the contents of a FP register |