Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Add a C99 symbol to libm: nexttowardl



details:   https://anonhg.NetBSD.org/src/rev/ef388d6b436a
branches:  trunk
changeset: 456230:ef388d6b436a
user:      kamil <kamil%NetBSD.org@localhost>
date:      Sat Apr 27 23:04:31 2019 +0000

description:
Add a C99 symbol to libm: nexttowardl

It's an alias for an already existing symbol nextafterl.

Patch obtained from <mgorny>

Detected by the LLVM buildbot breakage in tests.

diffstat:

 distrib/sets/lists/comp/mi    |   5 ++++-
 lib/libm/Makefile             |   5 +++--
 lib/libm/man/nextafter.3      |  17 ++++++++---------
 lib/libm/src/s_nextafterl.c   |   6 ++++--
 usr.sbin/makemandb/nostem.txt |   1 +
 5 files changed, 20 insertions(+), 14 deletions(-)

diffs (136 lines):

diff -r d0860f796b04 -r ef388d6b436a distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi        Sat Apr 27 22:00:29 2019 +0000
+++ b/distrib/sets/lists/comp/mi        Sat Apr 27 23:04:31 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: mi,v 1.2271 2019/04/25 23:17:24 maya Exp $
+#      $NetBSD: mi,v 1.2272 2019/04/27 23:04:31 kamil Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 ./etc/mtree/set.comp                           comp-sys-root
@@ -8535,6 +8535,7 @@
 ./usr/share/man/cat3/nextafterl.0              comp-c-catman           .cat
 ./usr/share/man/cat3/nexttoward.0              comp-c-catman           .cat
 ./usr/share/man/cat3/nexttowardf.0             comp-c-catman           .cat
+./usr/share/man/cat3/nexttowardl.0             comp-c-catman           .cat
 ./usr/share/man/cat3/nftw.0                    comp-c-catman           .cat
 ./usr/share/man/cat3/ngettext.0                        comp-c-catman           .cat
 ./usr/share/man/cat3/nice.0                    comp-c-catman           .cat
@@ -16510,6 +16511,7 @@
 ./usr/share/man/html3/nextafterl.html          comp-c-htmlman          html
 ./usr/share/man/html3/nexttoward.html          comp-c-htmlman          html
 ./usr/share/man/html3/nexttowardf.html         comp-c-htmlman          html
+./usr/share/man/html3/nexttowardl.html         comp-c-htmlman          html
 ./usr/share/man/html3/nftw.html                        comp-c-htmlman          html
 ./usr/share/man/html3/ngettext.html            comp-c-htmlman          html
 ./usr/share/man/html3/nice.html                        comp-c-htmlman          html
@@ -24492,6 +24494,7 @@
 ./usr/share/man/man3/nextafterl.3              comp-c-man              .man
 ./usr/share/man/man3/nexttoward.3              comp-c-man              .man
 ./usr/share/man/man3/nexttowardf.3             comp-c-man              .man
+./usr/share/man/man3/nexttowardl.3             comp-c-man              .man
 ./usr/share/man/man3/nftw.3                    comp-c-man              .man
 ./usr/share/man/man3/ngettext.3                        comp-c-man              .man
 ./usr/share/man/man3/nice.3                    comp-c-man              .man
diff -r d0860f796b04 -r ef388d6b436a lib/libm/Makefile
--- a/lib/libm/Makefile Sat Apr 27 22:00:29 2019 +0000
+++ b/lib/libm/Makefile Sat Apr 27 23:04:31 2019 +0000
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.209 2019/04/25 23:17:24 maya Exp $
+#  $NetBSD: Makefile,v 1.210 2019/04/27 23:04:32 kamil Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -424,7 +424,8 @@
 MLINKS+=nextafter.3 nextafterf.3 \
        nextafter.3 nextafterl.3 \
        nextafter.3 nexttoward.3 \
-       nextafter.3 nexttowardf.3
+       nextafter.3 nexttowardf.3 \
+       nextafter.3 nexttowardl.3
 MLINKS+=lrint.3 lrintf.3 lrint.3 llrint.3 lrint.3 llrintf.3
 MLINKS+=remainder.3 remainderf.3 \
        remainder.3 remquo.3 \
diff -r d0860f796b04 -r ef388d6b436a lib/libm/man/nextafter.3
--- a/lib/libm/man/nextafter.3  Sat Apr 27 22:00:29 2019 +0000
+++ b/lib/libm/man/nextafter.3  Sat Apr 27 23:04:31 2019 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: nextafter.3,v 1.5 2015/09/13 10:58:30 he Exp $
+.\" $NetBSD: nextafter.3,v 1.6 2019/04/27 23:04:32 kamil Exp $
 .\"
 .\" Copyright (c) 2011 Jukka Ruohonen <jruohonen%iki.fi@localhost>
 .\" All rights reserved.
@@ -32,12 +32,8 @@
 .Nm nextafterf ,
 .Nm nextafterl ,
 .Nm nexttoward ,
-.Nm nexttowardf
-.\"
-.\" XXX: Not yet implemented.
-.\"
-.\" .Nm nexttowardl
-.\"
+.Nm nexttowardf ,
+.Nm nexttowardl
 .Nd next representable floating-point number
 .Sh LIBRARY
 .Lb libm
@@ -53,6 +49,8 @@
 .Fn nexttoward "double x" "long double y"
 .Ft float
 .Fn nexttowardf "float x" "long double y"
+.Ft long double
+.Fn nexttowardl "long double x" "long double y"
 .Sh DESCRIPTION
 The
 .Fn nextafter ,
@@ -80,9 +78,10 @@
 .Fa x .
 .Pp
 The
-.Fn nexttoward
+.Fn nexttoward ,
+.Fn nexttowardf
 and
-.Fn nexttowardf
+.Fn nexttowardl
 functions are equivalent to the
 .Fn nextafter
 family of functions with two exceptions:
diff -r d0860f796b04 -r ef388d6b436a lib/libm/src/s_nextafterl.c
--- a/lib/libm/src/s_nextafterl.c       Sat Apr 27 22:00:29 2019 +0000
+++ b/lib/libm/src/s_nextafterl.c       Sat Apr 27 23:04:31 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: s_nextafterl.c,v 1.5 2014/01/31 19:38:47 matt Exp $    */
+/*     $NetBSD: s_nextafterl.c,v 1.6 2019/04/27 23:04:32 kamil Exp $   */
 
 /* @(#)s_nextafter.c 5.1 93/09/24 */
 /*
@@ -13,7 +13,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: s_nextafterl.c,v 1.5 2014/01/31 19:38:47 matt Exp $");
+__RCSID("$NetBSD: s_nextafterl.c,v 1.6 2019/04/27 23:04:32 kamil Exp $");
 
 #include <float.h>
 #include <math.h>
@@ -30,6 +30,8 @@
 #define        LDBL_NBIT       0
 #endif
 
+__strong_alias(nexttowardl, nextafterl)
+
 /*
  * IEEE functions
  *      nextafterl(x,y)
diff -r d0860f796b04 -r ef388d6b436a usr.sbin/makemandb/nostem.txt
--- a/usr.sbin/makemandb/nostem.txt     Sat Apr 27 22:00:29 2019 +0000
+++ b/usr.sbin/makemandb/nostem.txt     Sat Apr 27 23:04:31 2019 +0000
@@ -2703,6 +2703,7 @@
 nextscn
 nexttoward
 nexttowardf
+nexttowardl
 nfe
 nfs
 nfsd



Home | Main Index | Thread Index | Old Index