diff options
author | marcel <marcel@FreeBSD.org> | 2003-01-19 06:01:33 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-01-19 06:01:33 +0000 |
commit | b2cf4b9bc050c2dc60962f9eccf13ce480fa8aee (patch) | |
tree | 8166c756e10c0bb505e7352042246b630b69280d /include | |
parent | e03de9709309a4f23e08f65f30d18b14df152919 (diff) | |
download | FreeBSD-src-b2cf4b9bc050c2dc60962f9eccf13ce480fa8aee.zip FreeBSD-src-b2cf4b9bc050c2dc60962f9eccf13ce480fa8aee.tar.gz |
o Move the contents of <machine/floatingpoint.h> over to
<machine/ieeefp.h> where it belongs.
o Remove the i386 specific inclusion of <machine/floatingpoint.h>
from <ieeefp.h>, now that including <machine/ieeefp.h> is enough
for all architectures.
o Allow <machine/ieeefp.h> to inline the functions exposed by the
headers by checking for _IEEEFP_INLINED_ in the MI header. When
defined, prototypes are not given and it is assumed that the MD
headers, when inlining only a subset of the functions provide
prototypes for the functions not being inlined.
Based on patch from: Terry Lambert <tlambert2@mindspring.com>
Tested with: make release.
Diffstat (limited to 'include')
-rw-r--r-- | include/ieeefp.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/ieeefp.h b/include/ieeefp.h index 24ebdf4..e4f943d 100644 --- a/include/ieeefp.h +++ b/include/ieeefp.h @@ -12,9 +12,7 @@ #include <sys/cdefs.h> #include <machine/ieeefp.h> -#ifdef __i386__ -#include <machine/floatingpoint.h> -#else /* !__i386__ */ +#if !defined(_IEEEFP_INLINED_) __BEGIN_DECLS extern fp_rnd_t fpgetround(void); extern fp_rnd_t fpsetround(fp_rnd_t); @@ -23,6 +21,6 @@ extern fp_except_t fpsetmask(fp_except_t); extern fp_except_t fpgetsticky(void); extern fp_except_t fpsetsticky(fp_except_t); __END_DECLS -#endif /* __i386__ */ +#endif /* !_IEEEFP_INLINED_ */ #endif /* _IEEEFP_H_ */ |