Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src remquo{,f} from FreeBSD via Stathis Kamperis
details: https://anonhg.NetBSD.org/src/rev/a2f9f29baee4
branches: trunk
changeset: 761712:a2f9f29baee4
user: christos <christos%NetBSD.org@localhost>
date: Sun Feb 06 00:44:08 2011 +0000
description:
remquo{,f} from FreeBSD via Stathis Kamperis
diffstat:
distrib/sets/lists/base/ad.mips64eb | 6 +++---
distrib/sets/lists/base/ad.mips64el | 6 +++---
distrib/sets/lists/base/md.amd64 | 4 ++--
distrib/sets/lists/base/md.sparc64 | 4 ++--
distrib/sets/lists/base/shl.mi | 6 +++---
distrib/sets/lists/comp/md.amd64 | 4 ++--
distrib/sets/lists/comp/md.sparc64 | 4 ++--
distrib/sets/lists/comp/mi | 8 +++++++-
distrib/sets/lists/comp/shl.mi | 4 ++--
include/math.h | 6 +++++-
lib/libm/Makefile | 5 +++--
lib/libm/man/ieee.3 | 22 +++++++++++++++++++++-
lib/libm/shlib_version | 4 ++--
13 files changed, 57 insertions(+), 26 deletions(-)
diffs (truncated from 310 to 300 lines):
diff -r a904f2d1251e -r a2f9f29baee4 distrib/sets/lists/base/ad.mips64eb
--- a/distrib/sets/lists/base/ad.mips64eb Sat Feb 05 23:22:16 2011 +0000
+++ b/distrib/sets/lists/base/ad.mips64eb Sun Feb 06 00:44:08 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ad.mips64eb,v 1.38 2011/02/04 22:09:17 christos Exp $
+# $NetBSD: ad.mips64eb,v 1.39 2011/02/06 00:44:08 christos Exp $
./libexec/ld.elf_so-64 base-compat-shlib compat,pic
./libexec/ld.elf_so-o32 base-sysutil-bin compat,pic
./usr/lib/64 base-compat-lib
@@ -142,7 +142,7 @@
./usr/lib/64/liblzma.so.1 base-compat-shlib compat,pic
./usr/lib/64/liblzma.so.1.0 base-compat-shlib compat,pic
./usr/lib/64/libm.so.0 base-compat-shlib compat,pic
-./usr/lib/64/libm.so.0.8 base-compat-shlib compat,pic
+./usr/lib/64/libm.so.0.9 base-compat-shlib compat,pic
./usr/lib/64/libmagic.so.3 base-compat-shlib compat,pic
./usr/lib/64/libmagic.so.3.0 base-compat-shlib compat,pic
./usr/lib/64/libmenu.so.6 base-compat-shlib compat,pic
@@ -401,7 +401,7 @@
./usr/lib/o32/liblzma.so.1 base-compat-shlib compat,pic
./usr/lib/o32/liblzma.so.1.0 base-compat-shlib compat,pic
./usr/lib/o32/libm.so.0 base-compat-shlib compat,pic
-./usr/lib/o32/libm.so.0.8 base-compat-shlib compat,pic
+./usr/lib/o32/libm.so.0.9 base-compat-shlib compat,pic
./usr/lib/o32/libmagic.so.3 base-compat-shlib compat,pic
./usr/lib/o32/libmagic.so.3.0 base-compat-shlib compat,pic
./usr/lib/o32/libmenu.so.6 base-compat-shlib compat,pic
diff -r a904f2d1251e -r a2f9f29baee4 distrib/sets/lists/base/ad.mips64el
--- a/distrib/sets/lists/base/ad.mips64el Sat Feb 05 23:22:16 2011 +0000
+++ b/distrib/sets/lists/base/ad.mips64el Sun Feb 06 00:44:08 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ad.mips64el,v 1.36 2011/02/04 22:09:17 christos Exp $
+# $NetBSD: ad.mips64el,v 1.37 2011/02/06 00:44:08 christos Exp $
./libexec/ld.elf_so-64 base-compat-shlib compat,pic
./libexec/ld.elf_so-o32 base-sysutil-bin compat,pic
./usr/lib/64 base-compat-lib
@@ -142,7 +142,7 @@
./usr/lib/64/liblzma.so.1 base-compat-shlib compat,pic
./usr/lib/64/liblzma.so.1.0 base-compat-shlib compat,pic
./usr/lib/64/libm.so.0 base-compat-shlib compat,pic
-./usr/lib/64/libm.so.0.8 base-compat-shlib compat,pic
+./usr/lib/64/libm.so.0.9 base-compat-shlib compat,pic
./usr/lib/64/libmagic.so.3 base-compat-shlib compat,pic
./usr/lib/64/libmagic.so.3.0 base-compat-shlib compat,pic
./usr/lib/64/libmenu.so.6 base-compat-shlib compat,pic
@@ -401,7 +401,7 @@
./usr/lib/o32/liblzma.so.1 base-compat-shlib compat,pic
./usr/lib/o32/liblzma.so.1.0 base-compat-shlib compat,pic
./usr/lib/o32/libm.so.0 base-compat-shlib compat,pic
-./usr/lib/o32/libm.so.0.8 base-compat-shlib compat,pic
+./usr/lib/o32/libm.so.0.9 base-compat-shlib compat,pic
./usr/lib/o32/libmagic.so.3 base-compat-shlib compat,pic
./usr/lib/o32/libmagic.so.3.0 base-compat-shlib compat,pic
./usr/lib/o32/libmenu.so.6 base-compat-shlib compat,pic
diff -r a904f2d1251e -r a2f9f29baee4 distrib/sets/lists/base/md.amd64
--- a/distrib/sets/lists/base/md.amd64 Sat Feb 05 23:22:16 2011 +0000
+++ b/distrib/sets/lists/base/md.amd64 Sun Feb 06 00:44:08 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.111 2011/02/04 22:09:17 christos Exp $
+# $NetBSD: md.amd64,v 1.112 2011/02/06 00:44:08 christos Exp $
./dev/lms0 base-obsolete obsolete
./dev/mms0 base-obsolete obsolete
./libexec/ld.elf_so-i386 base-sys-shlib compat,pic
@@ -148,7 +148,7 @@
./usr/lib/i386/liblzma.so.1 base-compat-shlib compat,pic
./usr/lib/i386/liblzma.so.1.0 base-compat-shlib compat,pic
./usr/lib/i386/libm.so.0 base-compat-shlib compat,pic
-./usr/lib/i386/libm.so.0.8 base-compat-shlib compat,pic
+./usr/lib/i386/libm.so.0.9 base-compat-shlib compat,pic
./usr/lib/i386/libmagic.so.3 base-compat-shlib compat,pic
./usr/lib/i386/libmagic.so.3.0 base-compat-shlib compat,pic
./usr/lib/i386/libmenu.so.6 base-compat-shlib compat,pic
diff -r a904f2d1251e -r a2f9f29baee4 distrib/sets/lists/base/md.sparc64
--- a/distrib/sets/lists/base/md.sparc64 Sat Feb 05 23:22:16 2011 +0000
+++ b/distrib/sets/lists/base/md.sparc64 Sun Feb 06 00:44:08 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.sparc64,v 1.104 2011/02/04 22:09:17 christos Exp $
+# $NetBSD: md.sparc64,v 1.105 2011/02/06 00:44:08 christos Exp $
./libexec/ld.elf_so-sparc base-sysutil-bin compat,pic
./sbin/edlabel base-sysutil-root obsolete
./usr/bin/fdformat base-util-bin
@@ -145,7 +145,7 @@
./usr/lib/sparc/liblzma.so.1 base-compat-shlib compat,pic
./usr/lib/sparc/liblzma.so.1.0 base-compat-shlib compat,pic
./usr/lib/sparc/libm.so.0 base-compat-shlib compat,pic
-./usr/lib/sparc/libm.so.0.8 base-compat-shlib compat,pic
+./usr/lib/sparc/libm.so.0.9 base-compat-shlib compat,pic
./usr/lib/sparc/libmagic.so.3 base-compat-shlib compat,pic
./usr/lib/sparc/libmagic.so.3.0 base-compat-shlib compat,pic
./usr/lib/sparc/libmenu.so.6 base-compat-shlib compat,pic
diff -r a904f2d1251e -r a2f9f29baee4 distrib/sets/lists/base/shl.mi
--- a/distrib/sets/lists/base/shl.mi Sat Feb 05 23:22:16 2011 +0000
+++ b/distrib/sets/lists/base/shl.mi Sun Feb 06 00:44:08 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.572 2011/02/04 22:09:17 christos Exp $
+# $NetBSD: shl.mi,v 1.573 2011/02/06 00:44:08 christos Exp $
#
# Note: Don't delete entries from here - mark them as "obsolete" instead,
# unless otherwise stated below.
@@ -48,7 +48,7 @@
./lib/liblzma.so.1.0 base-sys-shlib dynamicroot
./lib/libm.so base-sys-shlib dynamicroot
./lib/libm.so.0 base-sys-shlib dynamicroot
-./lib/libm.so.0.8 base-sys-shlib dynamicroot
+./lib/libm.so.0.9 base-sys-shlib dynamicroot
./lib/libprop.so base-sys-shlib dynamicroot
./lib/libprop.so.1 base-sys-shlib dynamicroot
./lib/libprop.so.1.1 base-sys-shlib dynamicroot
@@ -304,7 +304,7 @@
./usr/lib/liblzf.so.0.0 base-sys-shlib
./usr/lib/libm.so base-sys-shlib
./usr/lib/libm.so.0 base-sys-shlib
-./usr/lib/libm.so.0.8 base-sys-shlib
+./usr/lib/libm.so.0.9 base-sys-shlib
./usr/lib/libmagic.so base-sys-shlib
./usr/lib/libmagic.so.3 base-sys-shlib
./usr/lib/libmagic.so.3.0 base-sys-shlib
diff -r a904f2d1251e -r a2f9f29baee4 distrib/sets/lists/comp/md.amd64
--- a/distrib/sets/lists/comp/md.amd64 Sat Feb 05 23:22:16 2011 +0000
+++ b/distrib/sets/lists/comp/md.amd64 Sun Feb 06 00:44:08 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.amd64,v 1.95 2011/02/04 22:09:17 christos Exp $
+# $NetBSD: md.amd64,v 1.96 2011/02/06 00:44:09 christos Exp $
./usr/include/amd64 comp-c-include
./usr/include/amd64/ansi.h comp-c-include
./usr/include/amd64/aout_machdep.h comp-c-include
@@ -952,7 +952,7 @@
./usr/libdata/debug/usr/lib/i386/liblua.so.1.0.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/i386/liblwres.so.5.2.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/i386/liblzma.so.1.0.debug comp-compat-shlib compat,pic,debug
-./usr/libdata/debug/usr/lib/i386/libm.so.0.8.debug comp-compat-shlib compat,pic,debug
+./usr/libdata/debug/usr/lib/i386/libm.so.0.9.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/i386/libmagic.so.3.0.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/i386/libmenu.so.6.0.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/i386/libmj.so.0.0.debug comp-compat-shlib compat,pic,debug
diff -r a904f2d1251e -r a2f9f29baee4 distrib/sets/lists/comp/md.sparc64
--- a/distrib/sets/lists/comp/md.sparc64 Sat Feb 05 23:22:16 2011 +0000
+++ b/distrib/sets/lists/comp/md.sparc64 Sun Feb 06 00:44:08 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: md.sparc64,v 1.84 2011/02/04 22:09:17 christos Exp $
+# $NetBSD: md.sparc64,v 1.85 2011/02/06 00:44:09 christos Exp $
./usr/include/ieeefp.h comp-c-include
./usr/include/sparc comp-c-include
./usr/include/sparc/_G_config.h comp-obsolete obsolete
@@ -715,7 +715,7 @@
./usr/libdata/debug/usr/lib/sparc/liblua.so.1.0.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/sparc/liblwres.so.5.2.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/sparc/liblzma.so.1.0.debug comp-compat-shlib compat,pic,debug
-./usr/libdata/debug/usr/lib/sparc/libm.so.0.8.debug comp-compat-shlib compat,pic,debug
+./usr/libdata/debug/usr/lib/sparc/libm.so.0.9.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/sparc/libmagic.so.3.0.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/sparc/libmenu.so.6.0.debug comp-compat-shlib compat,pic,debug
./usr/libdata/debug/usr/lib/sparc/libmj.so.0.0.debug comp-compat-shlib compat,pic,debug
diff -r a904f2d1251e -r a2f9f29baee4 distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi Sat Feb 05 23:22:16 2011 +0000
+++ b/distrib/sets/lists/comp/mi Sun Feb 06 00:44:08 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1581 2011/02/04 19:42:13 pooka Exp $
+# $NetBSD: mi,v 1.1582 2011/02/06 00:44:09 christos Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@@ -7995,6 +7995,8 @@
./usr/share/man/cat3/remainderf.0 comp-c-catman .cat
./usr/share/man/cat3/remove.0 comp-c-catman .cat
./usr/share/man/cat3/remque.0 comp-c-catman .cat
+./usr/share/man/cat3/remquo.0 comp-c-catman .cat
+./usr/share/man/cat3/remquof.0 comp-c-catman .cat
./usr/share/man/cat3/request_init.0 comp-c-catman .cat
./usr/share/man/cat3/request_set.0 comp-c-catman .cat
./usr/share/man/cat3/res_close.0 comp-c-catman .cat
@@ -14001,6 +14003,8 @@
./usr/share/man/html3/remainderf.html comp-c-htmlman html
./usr/share/man/html3/remove.html comp-c-htmlman html
./usr/share/man/html3/remque.html comp-c-htmlman html
+./usr/share/man/html3/remquo.html comp-c-htmlman html
+./usr/share/man/html3/remquof.html comp-c-htmlman html
./usr/share/man/html3/request_init.html comp-c-htmlman html
./usr/share/man/html3/request_set.html comp-c-htmlman html
./usr/share/man/html3/res_close.html comp-c-htmlman html
@@ -20009,6 +20013,8 @@
./usr/share/man/man3/remainderf.3 comp-c-man .man
./usr/share/man/man3/remove.3 comp-c-man .man
./usr/share/man/man3/remque.3 comp-c-man .man
+./usr/share/man/man3/remquo.3 comp-c-man .man
+./usr/share/man/man3/remquof.3 comp-c-man .man
./usr/share/man/man3/request_init.3 comp-c-man .man
./usr/share/man/man3/request_set.3 comp-c-man .man
./usr/share/man/man3/res_close.3 comp-c-man .man
diff -r a904f2d1251e -r a2f9f29baee4 distrib/sets/lists/comp/shl.mi
--- a/distrib/sets/lists/comp/shl.mi Sat Feb 05 23:22:16 2011 +0000
+++ b/distrib/sets/lists/comp/shl.mi Sun Feb 06 00:44:08 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: shl.mi,v 1.157 2011/02/04 22:09:17 christos Exp $
+# $NetBSD: shl.mi,v 1.158 2011/02/06 00:44:09 christos Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@@ -265,7 +265,7 @@
./usr/libdata/debug/usr/lib/liblwres.so.5.2.debug comp-bind-debug debug
./usr/libdata/debug/usr/lib/liblzma.so.1.0.debug comp-sys-debug debug
./usr/libdata/debug/usr/lib/liblzf.so.0.0.debug comp-sys-debug debug
-./usr/libdata/debug/usr/lib/libm.so.0.8.debug comp-sys-debug debug
+./usr/libdata/debug/usr/lib/libm.so.0.9.debug comp-sys-debug debug
./usr/libdata/debug/usr/lib/libmagic.so.3.0.debug comp-sys-debug debug
./usr/libdata/debug/usr/lib/libmenu.so.6.0.debug comp-sys-debug debug
./usr/libdata/debug/usr/lib/libmj.so.0.0.debug comp-crypto-debug debug
diff -r a904f2d1251e -r a2f9f29baee4 include/math.h
--- a/include/math.h Sat Feb 05 23:22:16 2011 +0000
+++ b/include/math.h Sun Feb 06 00:44:08 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: math.h,v 1.53 2010/09/15 16:11:30 christos Exp $ */
+/* $NetBSD: math.h,v 1.54 2011/02/06 00:44:08 christos Exp $ */
/*
* ====================================================
@@ -349,6 +349,10 @@
float fmodf(float, float);
float remainderf(float, float);
+/* 7.12.10.3 The remquo functions */
+double remquo(double, double, int *);
+float remquof(float, float, int *);
+
/* 7.12.11 manipulation */
float copysignf(float, float);
diff -r a904f2d1251e -r a2f9f29baee4 lib/libm/Makefile
--- a/lib/libm/Makefile Sat Feb 05 23:22:16 2011 +0000
+++ b/lib/libm/Makefile Sun Feb 06 00:44:08 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.103 2011/01/31 15:06:01 christos Exp $
+# $NetBSD: Makefile,v 1.104 2011/02/06 00:44:09 christos Exp $
#
# @(#)Makefile 5.1beta 93/09/24
#
@@ -136,7 +136,7 @@
s_floor.c s_floorf.c s_frexpf.c s_ilogb.c s_ilogbf.c \
s_isinff.c s_isnanf.c s_ldexpf.c s_lib_version.c s_log1p.c \
s_log1pf.c s_logb.c s_logbf.c s_matherr.c s_modff.c s_nextafter.c \
- s_nextafterf.c s_rint.c s_rintf.c s_round.c s_roundf.c s_scalbn.c \
+ s_nextafterf.c s_remquo.c s_remquof.c s_rint.c s_rintf.c s_round.c s_roundf.c s_scalbn.c \
s_scalbnf.c s_signgam.c s_significand.c s_significandf.c s_sin.c \
s_sinf.c s_tan.c s_tanf.c s_tanh.c s_tanhf.c s_trunc.c s_truncf.c \
w_acos.c w_acosf.c w_acosh.c w_acoshf.c w_asin.c w_asinf.c w_atan2.c \
@@ -247,6 +247,7 @@
ieee.3 nextafter.3 ieee.3 nextafterf.3 ieee.3 nextafterl.3 \
ieee.3 nexttoward.3 \
ieee.3 remainder.3 ieee.3 remainderf.3 \
+ ieee.3 remquo.3 ieee.3 remquof.3 \
ieee.3 scalbn.3 ieee.3 scalbnf.3
MLINKS+=ieee_test.3 logb.3 ieee_test.3 logbf.3
MLINKS+=ieee_test.3 scalb.3 ieee_test.3 scalbf.3
diff -r a904f2d1251e -r a2f9f29baee4 lib/libm/man/ieee.3
--- a/lib/libm/man/ieee.3 Sat Feb 05 23:22:16 2011 +0000
+++ b/lib/libm/man/ieee.3 Sun Feb 06 00:44:08 2011 +0000
@@ -26,7 +26,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)ieee.3 6.4 (Berkeley) 5/6/91
-.\" $NetBSD: ieee.3,v 1.21 2010/09/15 16:11:30 christos Exp $
+.\" $NetBSD: ieee.3,v 1.22 2011/02/06 00:44:10 christos Exp $
.\"
.Dd February 25, 1994
.Dt IEEE 3
@@ -79,6 +79,10 @@
.Ft float
.Fn remainderf "float x" "float y"
.Ft double
+.Fn remquo "double x" "double y" "int *quo"
+.Ft float
+.Fn remquof "float x" "float y" "int *quo"
+.Ft double
.Fn scalbn "double x" "int n"
.Ft float
.Fn scalbnf "float x" "int n"
@@ -174,6 +178,22 @@
.Fn remainder \*(If 0
are invalid operations that produce a \*(Na.
.Pp
+.Fn remquo
+is the same as
+.Fn remainder
+but also stores the last
+.Va k
+bits of
+.Fa n
+in the location pointed to by
+.Fa quo ,
+provided that
+.Fa n
+exists.
+The number of bits
+.Va k
+is platform-specific, but is guaranteed to be at least 3.
+.Pp
.Fn scalbn
returns
.Fa x Ns \(**(2** Ns Fa n )
diff -r a904f2d1251e -r a2f9f29baee4 lib/libm/shlib_version
Home |
Main Index |
Thread Index |
Old Index