diff options
Diffstat (limited to 'lib/libm/arch/i387/s_signbitl_e.c')
-rw-r--r-- | lib/libm/arch/i387/s_signbitl_e.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/libm/arch/i387/s_signbitl_e.c b/lib/libm/arch/i387/s_signbitl_e.c new file mode 100644 index 00000000000..a21c45ec143 --- /dev/null +++ b/lib/libm/arch/i387/s_signbitl_e.c @@ -0,0 +1,19 @@ +/* $OpenBSD: s_signbitl_e.c,v 1.1 2007/06/01 05:52:42 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_extended_shape_type e; + e.value = l; + return (e.parts.msw & 0x8000); +} |