diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2007-06-01 05:56:51 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2007-06-01 05:56:51 +0000 |
commit | 345aee3bce68b6c6fd16ab5b361db8f748e7032e (patch) | |
tree | 6214251844650c71b4a1e6b57090d30f296ddad3 /lib | |
parent | db6f64fa9be9c7c6c3a3e14a0de6c33b59a27e6f (diff) |
amd64 version of __signbit() (pedro sized quad floats... really just IEEE
extended padded to 16 bytes)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libm/arch/amd64/s_signbitl_e.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/libm/arch/amd64/s_signbitl_e.c b/lib/libm/arch/amd64/s_signbitl_e.c new file mode 100644 index 00000000000..110377a2e0c --- /dev/null +++ b/lib/libm/arch/amd64/s_signbitl_e.c @@ -0,0 +1,19 @@ +/* $OpenBSD: s_signbitl_e.c,v 1.1 2007/06/01 05:56:50 jason Exp $ */ + +/* + * Written by Jason L. Wright (jason@thought.net) in 2007 and placed + * into the public domain. + */ + +#include "math.h" +#include "math_private.h" + +/* __signbitl for extended long double */ + +int +__signbitl(long double l) +{ + ieee_quad_shape_type e; + e.value = l; + return (e.parts.mswlo & 0x8000); +} |