diff options
author | Mike Barcroft <mike@FreeBSD.org> | 2003-02-11 21:56:21 +0000 |
---|---|---|
committer | Mike Barcroft <mike@FreeBSD.org> | 2003-02-11 21:56:21 +0000 |
commit | 8e9b28311e57807c851dcd07de627708013cf9e7 (patch) | |
tree | b8970625bfd29f2ebf574f2547dab4599320a895 /lib/msun | |
parent | ee7785a7f868e5d75dd0d1e78414365f652bb600 (diff) | |
download | src-8e9b28311e57807c851dcd07de627708013cf9e7.tar.gz src-8e9b28311e57807c851dcd07de627708013cf9e7.zip |
Implement C99's signbit() macro.
Notes
Notes:
svn path=/head/; revision=110734
Diffstat (limited to 'lib/msun')
-rw-r--r-- | lib/msun/src/math.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h index abeca6e8f21b..b902df15c878 100644 --- a/lib/msun/src/math.h +++ b/lib/msun/src/math.h @@ -50,6 +50,7 @@ extern const union __nan_un { ((sizeof (x) == sizeof (float)) ? __fpclassifyf(x) \ : (sizeof (x) == sizeof (double)) ? __fpclassifyd(x) \ : __fpclassifyl(x)) +#define signbit(x) __signbit(x) typedef __double_t double_t; typedef __float_t float_t; @@ -147,6 +148,7 @@ __BEGIN_DECLS int __fpclassifyd(double); int __fpclassifyf(float); int __fpclassifyl(long double); +int __signbit(double); double acos(double); double asin(double); |