diff options
author | 2008-07-24 09:40:16 +0000 | |
---|---|---|
committer | 2008-07-24 09:40:16 +0000 | |
commit | eac90eaa1ed342e1c46cdff47d1897d7ff33fc7c (patch) | |
tree | b59d3c9de683e7a4391c9780b050af1ca5715202 /lib/libm/arch | |
parent | - add NAN definition (except on VAX) (diff) | |
download | wireguard-openbsd-eac90eaa1ed342e1c46cdff47d1897d7ff33fc7c.tar.xz wireguard-openbsd-eac90eaa1ed342e1c46cdff47d1897d7ff33fc7c.zip |
- remove isinff, isnanf. this has been moved to libc
- remove never-enabled signbit. libc has is now
- add C99 implementations, from freebsd, for nan(), nanf() (needed
to write _digittoint for it), exp2(), exp2f(), remquo(), remquof(),
needed STRICT_ASSIGN macro for math_private.h
- bump major
man pages will follow
exp2{,f} has been requested by chl@
ok millert@
Diffstat (limited to 'lib/libm/arch')
-rw-r--r-- | lib/libm/arch/amd64/s_signbitl_e.c | 19 | ||||
-rw-r--r-- | lib/libm/arch/i387/s_signbitl_e.c | 19 | ||||
-rw-r--r-- | lib/libm/arch/mc68881/s_signbitl_e.c | 19 | ||||
-rw-r--r-- | lib/libm/arch/vax/n_support.S | 35 |
4 files changed, 1 insertions, 91 deletions
diff --git a/lib/libm/arch/amd64/s_signbitl_e.c b/lib/libm/arch/amd64/s_signbitl_e.c deleted file mode 100644 index 110377a2e0c..00000000000 --- a/lib/libm/arch/amd64/s_signbitl_e.c +++ /dev/null @@ -1,19 +0,0 @@ -/* $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); -} diff --git a/lib/libm/arch/i387/s_signbitl_e.c b/lib/libm/arch/i387/s_signbitl_e.c deleted file mode 100644 index a21c45ec143..00000000000 --- a/lib/libm/arch/i387/s_signbitl_e.c +++ /dev/null @@ -1,19 +0,0 @@ -/* $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); -} diff --git a/lib/libm/arch/mc68881/s_signbitl_e.c b/lib/libm/arch/mc68881/s_signbitl_e.c deleted file mode 100644 index 2824f4ec835..00000000000 --- a/lib/libm/arch/mc68881/s_signbitl_e.c +++ /dev/null @@ -1,19 +0,0 @@ -/* $OpenBSD: s_signbitl_e.c,v 1.1 2007/06/01 05:53:27 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 & 0x80000000); -} diff --git a/lib/libm/arch/vax/n_support.S b/lib/libm/arch/vax/n_support.S index 7b1ef8446e6..7c3dcda1620 100644 --- a/lib/libm/arch/vax/n_support.S +++ b/lib/libm/arch/vax/n_support.S @@ -1,4 +1,4 @@ -/* $OpenBSD: n_support.S,v 1.11 2008/06/21 08:26:19 martynas Exp $ */ +/* $OpenBSD: n_support.S,v 1.12 2008/07/24 09:40:16 martynas Exp $ */ /* $NetBSD: n_support.S,v 1.1 1995/10/10 23:40:30 ragge Exp $ */ /* * Copyright (c) 1985, 1993 @@ -40,8 +40,6 @@ * scalbn(x,N), * finite(x), * remainder(x,y), - * isinff(x), - * isnanf(x), * Coded in vax assembly language by K.C. Ng, 3/14/85. * Revised by K.C. Ng on 4/9/85. */ @@ -209,34 +207,3 @@ Rop: #Reserved operand Ret: movq $0x8000,r0 #propagate reserved op ret - -/* - * int - * isinff(float x) - */ - -ENTRY(isinff, 0) - clrl r0 - ret - -/* - * int - * isnanf(float x) - */ - -ENTRY(isnanf, 0) - clrl r0 - ret - -/* - * signbit(x), signbitl(x), signbitf(x) -- returns zero if x is - * non-negative. - */ - _ALIGN_TEXT -ALTENTRY(__signbitf) -ALTENTRY(__signbitl) -ENTRY(__signbit, 0) - movw 4(ap), r0 - bicl2 $-32769,r0 - ret - |