CVS commit: src/lib/libc/arch/riscv/gen

2024-05-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May 16 01:02:35 UTC 2024

Modified Files:
src/lib/libc/arch/riscv/gen: fpgetsticky.c fpsetsticky.c

Log Message:
riscv: More shiftiness reduction around FCSR in libc.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/gen/fpgetsticky.c \
src/lib/libc/arch/riscv/gen/fpsetsticky.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/arch/riscv/gen

2024-05-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May 16 01:02:35 UTC 2024

Modified Files:
src/lib/libc/arch/riscv/gen: fpgetsticky.c fpsetsticky.c

Log Message:
riscv: More shiftiness reduction around FCSR in libc.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/gen/fpgetsticky.c \
src/lib/libc/arch/riscv/gen/fpsetsticky.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/arch/riscv/gen/fpgetsticky.c
diff -u src/lib/libc/arch/riscv/gen/fpgetsticky.c:1.3 src/lib/libc/arch/riscv/gen/fpgetsticky.c:1.4
--- src/lib/libc/arch/riscv/gen/fpgetsticky.c:1.3	Sun May  7 12:41:47 2023
+++ src/lib/libc/arch/riscv/gen/fpgetsticky.c	Thu May 16 01:02:35 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: fpgetsticky.c,v 1.3 2023/05/07 12:41:47 skrll Exp $	*/
+/*	$NetBSD: fpgetsticky.c,v 1.4 2024/05/16 01:02:35 riastradh Exp $	*/
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpgetsticky.c,v 1.3 2023/05/07 12:41:47 skrll Exp $");
+__RCSID("$NetBSD: fpgetsticky.c,v 1.4 2024/05/16 01:02:35 riastradh Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -47,5 +47,5 @@ __weak_alias(fpgetsticky,_fpgetsticky)
 fp_except
 fpgetsticky(void)
 {
-	return __SHIFTOUT(fcsr_read(), FCSR_FFLAGS);
+	return fcsr_fflags_read();
 }
Index: src/lib/libc/arch/riscv/gen/fpsetsticky.c
diff -u src/lib/libc/arch/riscv/gen/fpsetsticky.c:1.3 src/lib/libc/arch/riscv/gen/fpsetsticky.c:1.4
--- src/lib/libc/arch/riscv/gen/fpsetsticky.c:1.3	Sun May  7 12:41:47 2023
+++ src/lib/libc/arch/riscv/gen/fpsetsticky.c	Thu May 16 01:02:35 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: fpsetsticky.c,v 1.3 2023/05/07 12:41:47 skrll Exp $	*/
+/*	$NetBSD: fpsetsticky.c,v 1.4 2024/05/16 01:02:35 riastradh Exp $	*/
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetsticky.c,v 1.3 2023/05/07 12:41:47 skrll Exp $");
+__RCSID("$NetBSD: fpsetsticky.c,v 1.4 2024/05/16 01:02:35 riastradh Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -48,5 +48,5 @@ __weak_alias(fpsetsticky,_fpsetsticky)
 fp_except
 fpsetsticky(fp_except mask)
 {
-	return __SHIFTOUT(fcsr_fflags_write(__SHIFTIN(mask, FCSR_FFLAGS)), FCSR_FFLAGS);
+	return fcsr_fflags_write(mask);
 }



CVS commit: src/lib/libc/arch/riscv/gen

2024-05-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May 16 00:56:11 UTC 2024

Modified Files:
src/lib/libc/arch/riscv/gen: fpgetround.c fpsetround.c

Log Message:
riscv: Nix shifting around FRRM and FSRM in libc too.

These read and write the floating-point rounding mode directly, not
the whole floating-point control and status register.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/gen/fpgetround.c \
src/lib/libc/arch/riscv/gen/fpsetround.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/arch/riscv/gen/fpgetround.c
diff -u src/lib/libc/arch/riscv/gen/fpgetround.c:1.3 src/lib/libc/arch/riscv/gen/fpgetround.c:1.4
--- src/lib/libc/arch/riscv/gen/fpgetround.c:1.3	Sun May  7 12:41:47 2023
+++ src/lib/libc/arch/riscv/gen/fpgetround.c	Thu May 16 00:56:11 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: fpgetround.c,v 1.3 2023/05/07 12:41:47 skrll Exp $	*/
+/*	$NetBSD: fpgetround.c,v 1.4 2024/05/16 00:56:11 riastradh Exp $	*/
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpgetround.c,v 1.3 2023/05/07 12:41:47 skrll Exp $");
+__RCSID("$NetBSD: fpgetround.c,v 1.4 2024/05/16 00:56:11 riastradh Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -47,5 +47,5 @@ __weak_alias(fpgetround,_fpgetround)
 fp_rnd
 fpgetround(void)
 {
-	return __SHIFTOUT(fcsr_read(), FCSR_FRM);
+	return fcsr_frm_read();
 }
Index: src/lib/libc/arch/riscv/gen/fpsetround.c
diff -u src/lib/libc/arch/riscv/gen/fpsetround.c:1.3 src/lib/libc/arch/riscv/gen/fpsetround.c:1.4
--- src/lib/libc/arch/riscv/gen/fpsetround.c:1.3	Sun May  7 12:41:47 2023
+++ src/lib/libc/arch/riscv/gen/fpsetround.c	Thu May 16 00:56:11 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: fpsetround.c,v 1.3 2023/05/07 12:41:47 skrll Exp $	*/
+/*	$NetBSD: fpsetround.c,v 1.4 2024/05/16 00:56:11 riastradh Exp $	*/
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetround.c,v 1.3 2023/05/07 12:41:47 skrll Exp $");
+__RCSID("$NetBSD: fpsetround.c,v 1.4 2024/05/16 00:56:11 riastradh Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -47,5 +47,5 @@ __weak_alias(fpsetround,_fpsetround)
 fp_rnd
 fpsetround(fp_rnd rnd_dir)
 {
-	return __SHIFTOUT(fcsr_frm_write(__SHIFTIN(rnd_dir, FCSR_FRM)), FCSR_FRM);
+	return fcsr_frm_write(rnd_dir);
 }



CVS commit: src/lib/libc/arch/riscv/gen

2024-05-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May 16 00:56:11 UTC 2024

Modified Files:
src/lib/libc/arch/riscv/gen: fpgetround.c fpsetround.c

Log Message:
riscv: Nix shifting around FRRM and FSRM in libc too.

These read and write the floating-point rounding mode directly, not
the whole floating-point control and status register.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/gen/fpgetround.c \
src/lib/libc/arch/riscv/gen/fpsetround.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/gen

2024-05-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May 15 13:12:04 UTC 2024

Modified Files:
src/lib/libc/gen: usleep.3

Log Message:
usleep(3): Note the historical rake that was stepped upon.

PR 58184


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/gen/usleep.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gen/usleep.3
diff -u src/lib/libc/gen/usleep.3:1.21 src/lib/libc/gen/usleep.3:1.22
--- src/lib/libc/gen/usleep.3:1.21	Mon Apr 22 21:25:29 2024
+++ src/lib/libc/gen/usleep.3	Wed May 15 13:12:04 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: usleep.3,v 1.21 2024/04/22 21:25:29 jdolecek Exp $
+.\"	$NetBSD: usleep.3,v 1.22 2024/05/15 13:12:04 riastradh Exp $
 .\"
 .\" Copyright (c) 1986, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -99,3 +99,17 @@ The
 .Fn usleep
 function appeared in
 .Bx 4.3 .
+.Sh CAVEATS
+In
+.St -p1003.1-2004 ,
+.Nm
+was limited to values of
+.Fa microseconds
+less than one million.
+Some implementations, including
+.Nx
+before 10.1, fail immediately with
+.Er EINVAL
+\(em and don't sleep at all \(em if
+.Fa microseconds
+is one million or greater.



CVS commit: src/lib/libc/gen

2024-05-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May 15 13:12:04 UTC 2024

Modified Files:
src/lib/libc/gen: usleep.3

Log Message:
usleep(3): Note the historical rake that was stepped upon.

PR 58184


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/gen/usleep.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm

2024-05-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May 14 14:34:35 UTC 2024

Modified Files:
src/lib/libm: Makefile
Added Files:
src/lib/libm: m.powerpc64.expsym

Log Message:
libm: Fix powerpc64 build.

- Include fenv.c and fma(3) symbols (which just use the FMADD
  instruction).
- Note the .FN symbols in libm for the asm functions.  The FN symbols
  point at the function _descriptors_; the .FN symbols point at the
  first instruction of the function.

XXX Unclear why we have the .FN symbols for asm functions but not for
C functions.  I'm not sure we should be exporting them.


To generate a diff of this commit:
cvs rdiff -u -r1.234 -r1.235 src/lib/libm/Makefile
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.powerpc64.expsym

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/Makefile
diff -u src/lib/libm/Makefile:1.234 src/lib/libm/Makefile:1.235
--- src/lib/libm/Makefile:1.234	Thu May  9 14:42:09 2024
+++ src/lib/libm/Makefile	Tue May 14 14:34:35 2024
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.234 2024/05/09 14:42:09 riastradh Exp $
+#  $NetBSD: Makefile,v 1.235 2024/05/14 14:34:35 riastradh Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -194,7 +194,7 @@ ARCH_SRCS += s_fmax.S s_fmaxf.S
 ARCH_SRCS += s_fmin.S s_fminf.S
 .endif
 
-.elif (${LIBC_MACHINE_ARCH} == "powerpc")
+.elif (${LIBC_MACHINE_CPU} == "powerpc")
 .PATH:	${.CURDIR}/arch/powerpc
 .if ${MKSOFTFLOAT} == "no"
 COMMON_SRCS += fenv.c

Added files:

Index: src/lib/libm/m.powerpc64.expsym
diff -u /dev/null src/lib/libm/m.powerpc64.expsym:1.1
--- /dev/null	Tue May 14 14:34:35 2024
+++ src/lib/libm/m.powerpc64.expsym	Tue May 14 14:34:35 2024
@@ -0,0 +1,479 @@
+._fini
+._init
+.fma
+.fmaf
+__c99_cabs
+__c99_cabsf
+__c99_cabsl
+__divdc3
+__divsc3
+__divtc3
+__exp__D
+__fe_dfl_env
+__ieee754_acos
+__ieee754_acosf
+__ieee754_acosh
+__ieee754_acoshf
+__ieee754_asin
+__ieee754_asinf
+__ieee754_atan2
+__ieee754_atan2f
+__ieee754_atanh
+__ieee754_atanhf
+__ieee754_cosh
+__ieee754_coshf
+__ieee754_exp
+__ieee754_expf
+__ieee754_fmod
+__ieee754_fmodf
+__ieee754_fmodl
+__ieee754_hypot
+__ieee754_hypotf
+__ieee754_j0
+__ieee754_j0f
+__ieee754_j1
+__ieee754_j1f
+__ieee754_jn
+__ieee754_jnf
+__ieee754_lgamma_r
+__ieee754_lgammaf_r
+__ieee754_log
+__ieee754_log10
+__ieee754_log10f
+__ieee754_log2
+__ieee754_log2f
+__ieee754_logf
+__ieee754_pow
+__ieee754_powf
+__ieee754_rem_pio2
+__ieee754_rem_pio2f
+__ieee754_remainder
+__ieee754_remainderf
+__ieee754_scalb
+__ieee754_scalbf
+__ieee754_sinh
+__ieee754_sinhf
+__ieee754_sqrt
+__ieee754_sqrtf
+__ieee754_y0
+__ieee754_y0f
+__ieee754_y1
+__ieee754_y1f
+__ieee754_yn
+__ieee754_ynf
+__kernel_cos
+__kernel_cosf
+__kernel_rem_pio2
+__kernel_rem_pio2f
+__kernel_sin
+__kernel_sinf
+__kernel_standard
+__kernel_tan
+__kernel_tanf
+__log__D
+__muldc3
+__mulsc3
+__multc3
+_acoshl
+_acosl
+_asin
+_asinf
+_asinhl
+_asinl
+_atan2
+_atan2f
+_atan2l
+_atanhl
+_atanl
+_casin
+_casinf
+_casinl
+_catan
+_catanf
+_catanl
+_cbrtl
+_cchsh
+_cchshf
+_cchshl
+_ceill
+_copysignl
+_cos
+_cosf
+_cosh
+_coshf
+_coshl
+_cosl
+_cospi
+_cospif
+_cospil
+_ctans
+_ctansf
+_ctansl
+_end
+_erfcl
+_erfl
+_exp
+_exp2l
+_expf
+_expl
+_expm1l
+_fdlib_version
+_feclearexcept
+_fedisableexcept
+_feenableexcept
+_fegetenv
+_fegetexcept
+_fegetexceptflag
+_fegetround
+_feholdexcept
+_feraiseexcept
+_fesetenv
+_fesetexceptflag
+_fesetround
+_fetestexcept
+_feupdateenv
+_fini
+_finite
+_finitef
+_floorl
+_fmodl
+_hypot
+_hypotf
+_hypotl
+_init
+_lgammal
+_lgammal_r
+_log
+_log10l
+_log1pl
+_log2l
+_logf
+_logl
+_modfl
+_powl
+_redupi
+_redupif
+_redupil
+_remquo
+_remquof
+_remquol
+_roundl
+_scalbln
+_scalblnf
+_scalblnl
+_scalbn
+_scalbnf
+_scalbnl
+_sin
+_sincos
+_sincosf
+_sincosl
+_sinf
+_sinh
+_sinhf
+_sinhl
+_sinl
+_sinpi
+_sinpif
+_sinpil
+_sqrtl
+_tan
+_tanf
+_tanhl
+_tanl
+_tanpi
+_tanpif
+_tanpil
+_tgammal
+_truncl
+acos
+acosf
+acosh
+acoshf
+acoshl
+acosl
+asin
+asinf
+asinh
+asinhf
+asinhl
+asinl
+atan
+atan2
+atan2f
+atan2l
+atanf
+atanh
+atanhf
+atanhl
+atanl
+cabs
+cabsf
+cacos
+cacosf
+cacosh
+cacoshf
+cacoshl
+cacosl
+carg
+cargf
+cargl
+casin
+casinf
+casinh
+casinhf
+casinhl
+casinl
+catan
+catanf
+catanh
+catanhf
+catanhl
+catanl
+cbrt
+cbrtf
+cbrtl
+ccos
+ccosf
+ccosh
+ccoshf
+ccoshl
+ccosl
+ceil
+ceilf
+ceill
+cexp
+cexpf
+cexpl
+cimag
+cimagf
+cimagl
+clog
+clogf
+clogl
+conj
+conjf
+conjl
+copysign
+copysignf
+copysignl
+cos
+cosf
+cosh
+coshf
+coshl
+cosl
+cospi
+cospif
+cospil
+cpow
+cpowf
+cpowl
+cproj
+cprojf
+cprojl
+creal
+crealf
+creall
+csin
+csinf
+csinh
+csinhf
+csinhl
+csinl
+csqrt
+csqrtf
+csqrtl
+ctan
+ctanf
+ctanh
+ctanhf
+ctanhl
+ctanl
+drem
+dremf
+erf
+erfc
+erfcf
+erfcl
+erff
+erfl
+exp
+exp2
+exp2f
+exp2l
+expf
+expl
+expm1
+expm1f
+expm1l
+fabsf
+fdim
+fdimf
+fdiml
+feclearexcept
+fedisableexcept
+feenableexcept
+fegetenv
+fegetexcept
+fegetexceptflag
+fegetround
+feholdexcept
+feraiseexcept

CVS commit: src/lib/libm

2024-05-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May 14 14:34:35 UTC 2024

Modified Files:
src/lib/libm: Makefile
Added Files:
src/lib/libm: m.powerpc64.expsym

Log Message:
libm: Fix powerpc64 build.

- Include fenv.c and fma(3) symbols (which just use the FMADD
  instruction).
- Note the .FN symbols in libm for the asm functions.  The FN symbols
  point at the function _descriptors_; the .FN symbols point at the
  first instruction of the function.

XXX Unclear why we have the .FN symbols for asm functions but not for
C functions.  I'm not sure we should be exporting them.


To generate a diff of this commit:
cvs rdiff -u -r1.234 -r1.235 src/lib/libm/Makefile
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.powerpc64.expsym

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2024-05-14 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue May 14 10:40:41 UTC 2024

Modified Files:
src/lib/libcurses: curses_input.3

Log Message:
curses_input(3): bump date for define_key() change


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/lib/libcurses/curses_input.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libcurses/curses_input.3
diff -u src/lib/libcurses/curses_input.3:1.31 src/lib/libcurses/curses_input.3:1.32
--- src/lib/libcurses/curses_input.3:1.31	Tue May 14 10:22:48 2024
+++ src/lib/libcurses/curses_input.3	Tue May 14 10:40:41 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: curses_input.3,v 1.31 2024/05/14 10:22:48 uwe Exp $
+.\"	$NetBSD: curses_input.3,v 1.32 2024/05/14 10:40:41 uwe Exp $
 .\"
 .\" Copyright (c) 2002
 .\"	Brett Lymn (bl...@netbsd.org, brett_l...@yahoo.com.au)
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"
-.Dd May 16, 2022
+.Dd May 14, 2024
 .Dt CURSES_INPUT 3
 .Os
 .Sh NAME



CVS commit: src/lib/libcurses

2024-05-14 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue May 14 10:40:41 UTC 2024

Modified Files:
src/lib/libcurses: curses_input.3

Log Message:
curses_input(3): bump date for define_key() change


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/lib/libcurses/curses_input.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2024-05-14 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue May 14 10:38:16 UTC 2024

Modified Files:
src/lib/libcurses: curses_termcap.3

Log Message:
curses_termcap(3): fullname() termbuf argument is const


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libcurses/curses_termcap.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libcurses/curses_termcap.3
diff -u src/lib/libcurses/curses_termcap.3:1.6 src/lib/libcurses/curses_termcap.3:1.7
--- src/lib/libcurses/curses_termcap.3:1.6	Sat Apr 21 12:27:28 2012
+++ src/lib/libcurses/curses_termcap.3	Tue May 14 10:38:16 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: curses_termcap.3,v 1.6 2012/04/21 12:27:28 roy Exp $
+.\"	$NetBSD: curses_termcap.3,v 1.7 2024/05/14 10:38:16 uwe Exp $
 .\"
 .\" Copyright (c) 2002
 .\"	Brett Lymn (bl...@netbsd.org, brett_l...@yahoo.com.au)
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"
-.Dd October 4, 2011
+.Dd May 14, 2024
 .Dt CURSES_TERMCAP 3
 .Os
 .Sh NAME
@@ -42,7 +42,7 @@
 .Sh SYNOPSIS
 .In curses.h
 .Ft char *
-.Fn fullname "char *termbuf" "char *name"
+.Fn fullname "const char *termbuf" "char *name"
 .Sh DESCRIPTION
 The
 .Fn fullname



CVS commit: src/lib/libcurses

2024-05-14 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue May 14 10:38:16 UTC 2024

Modified Files:
src/lib/libcurses: curses_termcap.3

Log Message:
curses_termcap(3): fullname() termbuf argument is const


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libcurses/curses_termcap.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2024-05-14 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue May 14 10:22:48 UTC 2024

Modified Files:
src/lib/libcurses: curses.h curses_input.3 getch.c

Log Message:
curse: constify define_key() argument

define_key() is ncurses extension and ncurses defines its first
argument as "const char *".  Follow suit.

PR lib/58254


To generate a diff of this commit:
cvs rdiff -u -r1.130 -r1.131 src/lib/libcurses/curses.h
cvs rdiff -u -r1.30 -r1.31 src/lib/libcurses/curses_input.3
cvs rdiff -u -r1.78 -r1.79 src/lib/libcurses/getch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libcurses/curses.h
diff -u src/lib/libcurses/curses.h:1.130 src/lib/libcurses/curses.h:1.131
--- src/lib/libcurses/curses.h:1.130	Sat Feb 13 10:37:00 2021
+++ src/lib/libcurses/curses.h	Tue May 14 10:22:48 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: curses.h,v 1.130 2021/02/13 10:37:00 rillig Exp $	*/
+/*	$NetBSD: curses.h,v 1.131 2024/05/14 10:22:48 uwe Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -652,7 +652,7 @@ int	 copywin(const WINDOW *, WINDOW *, i
 int	 curs_set(int);
 int	 def_prog_mode(void);
 int	 def_shell_mode(void);
-int  define_key(char *, int);
+int  define_key(const char *, int);
 int	 delay_output(int);
 void delscreen(SCREEN *);
 int	 delwin(WINDOW *);

Index: src/lib/libcurses/curses_input.3
diff -u src/lib/libcurses/curses_input.3:1.30 src/lib/libcurses/curses_input.3:1.31
--- src/lib/libcurses/curses_input.3:1.30	Sat May 21 12:34:44 2022
+++ src/lib/libcurses/curses_input.3	Tue May 14 10:22:48 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: curses_input.3,v 1.30 2022/05/21 12:34:44 uwe Exp $
+.\"	$NetBSD: curses_input.3,v 1.31 2024/05/14 10:22:48 uwe Exp $
 .\"
 .\" Copyright (c) 2002
 .\"	Brett Lymn (bl...@netbsd.org, brett_l...@yahoo.com.au)
@@ -76,7 +76,7 @@
 .Ft int
 .Fn has_key "int key_symbol"
 .Ft int
-.Fn define_key "char *sequence" "int key_symbol"
+.Fn define_key "const char *sequence" "int key_symbol"
 .Ft int
 .Fn getnstr "char *str" "int limit"
 .Ft int

Index: src/lib/libcurses/getch.c
diff -u src/lib/libcurses/getch.c:1.78 src/lib/libcurses/getch.c:1.79
--- src/lib/libcurses/getch.c:1.78	Tue Oct 19 06:37:29 2021
+++ src/lib/libcurses/getch.c	Tue May 14 10:22:48 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: getch.c,v 1.78 2021/10/19 06:37:29 blymn Exp $	*/
+/*	$NetBSD: getch.c,v 1.79 2024/05/14 10:22:48 uwe Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)getch.c	8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: getch.c,v 1.78 2021/10/19 06:37:29 blymn Exp $");
+__RCSID("$NetBSD: getch.c,v 1.79 2024/05/14 10:22:48 uwe Exp $");
 #endif
 #endif	/* not lint */
 
@@ -211,7 +211,7 @@ static wchar_t	inbuf[INBUF_SZ];
 static int	start, end, working; /* pointers for manipulating inbuf data */
 
 /* prototypes for private functions */
-static void add_key_sequence(SCREEN *screen, char *sequence, int key_type);
+static void add_key_sequence(SCREEN *screen, const char *sequence, int key_type);
 static key_entry_t *add_new_key(keymap_t *current, char ch, int key_type,
 int symbol);
 static void delete_key_sequence(keymap_t *current, int key_type);
@@ -370,7 +370,7 @@ delete_key_sequence(keymap_t *current, i
  * for the given key symbol.
  */
 static void
-add_key_sequence(SCREEN *screen, char *sequence, int key_type)
+add_key_sequence(SCREEN *screen, const char *sequence, int key_type)
 {
 	key_entry_t *tmp_key;
 	keymap_t *current;
@@ -762,7 +762,7 @@ do_keyok(keymap_t *current, int key_type
  *
  */
 int
-define_key(char *sequence, int symbol)
+define_key(const char *sequence, int symbol)
 {
 
 	if (symbol <= 0 || _cursesi_screen == NULL)



CVS commit: src/lib/libcurses

2024-05-14 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue May 14 10:22:48 UTC 2024

Modified Files:
src/lib/libcurses: curses.h curses_input.3 getch.c

Log Message:
curse: constify define_key() argument

define_key() is ncurses extension and ncurses defines its first
argument as "const char *".  Follow suit.

PR lib/58254


To generate a diff of this commit:
cvs rdiff -u -r1.130 -r1.131 src/lib/libcurses/curses.h
cvs rdiff -u -r1.30 -r1.31 src/lib/libcurses/curses_input.3
cvs rdiff -u -r1.78 -r1.79 src/lib/libcurses/getch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/gdtoa

2024-05-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon May 13 21:17:24 UTC 2024

Modified Files:
src/lib/libc/gdtoa: Makefile.inc

Log Message:
libc/hdtoa: suppress lint warning about possible accuracy loss

on sparc64: hdtoa.c(340): warning: conversion from 'unsigned long'
to 'char' may lose accuracy [132]


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/gdtoa/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gdtoa/Makefile.inc
diff -u src/lib/libc/gdtoa/Makefile.inc:1.13 src/lib/libc/gdtoa/Makefile.inc:1.14
--- src/lib/libc/gdtoa/Makefile.inc:1.13	Sat Oct  7 12:15:53 2023
+++ src/lib/libc/gdtoa/Makefile.inc	Mon May 13 21:17:24 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.13 2023/10/07 12:15:53 rin Exp $
+#	$NetBSD: Makefile.inc,v 1.14 2024/05/13 21:17:24 rillig Exp $
 
 # gdtoa sources
 .PATH: ${.CURDIR}/gdtoa
@@ -44,3 +44,5 @@ SRCS+=	dmisc.c \
 .if ${MACHINE_ARCH} != "vax"
 SRCS+=	strtord.c
 .endif
+
+LINTFLAGS.hdtoa.c+=	-X 132	# conversion may lose accuracy



CVS commit: src/lib/libc/gdtoa

2024-05-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon May 13 21:17:24 UTC 2024

Modified Files:
src/lib/libc/gdtoa: Makefile.inc

Log Message:
libc/hdtoa: suppress lint warning about possible accuracy loss

on sparc64: hdtoa.c(340): warning: conversion from 'unsigned long'
to 'char' may lose accuracy [132]


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/gdtoa/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/inet

2024-05-12 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Sun May 12 23:58:18 UTC 2024

Modified Files:
src/lib/libc/inet: inet_net_pton.c

Log Message:
s/Firey/Fiery/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/inet/inet_net_pton.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/inet/inet_net_pton.c
diff -u src/lib/libc/inet/inet_net_pton.c:1.6 src/lib/libc/inet/inet_net_pton.c:1.7
--- src/lib/libc/inet/inet_net_pton.c:1.6	Mon Feb  5 21:46:05 2024
+++ src/lib/libc/inet/inet_net_pton.c	Sun May 12 23:58:18 2024
@@ -20,7 +20,7 @@
 #if 0
 static const char rcsid[] = "Id: inet_net_pton.c,v 1.4.2.1 2002/08/02 02:17:21 marka Exp ";
 #else
-__RCSID("$NetBSD: inet_net_pton.c,v 1.6 2024/02/05 21:46:05 andvar Exp $");
+__RCSID("$NetBSD: inet_net_pton.c,v 1.7 2024/05/12 23:58:18 msaitoh Exp $");
 #endif
 #endif
 
@@ -150,7 +150,7 @@ inet_net_pton_ipv4(const char *src, u_ch
 			goto enoent;
 	}
 
-	/* Firey death and destruction unless we prefetched EOS. */
+	/* Fiery death and destruction unless we prefetched EOS. */
 	if (ch != '\0')
 		goto enoent;
 



CVS commit: src/lib/libc/inet

2024-05-12 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Sun May 12 23:58:18 UTC 2024

Modified Files:
src/lib/libc/inet: inet_net_pton.c

Log Message:
s/Firey/Fiery/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/inet/inet_net_pton.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/gen

2024-05-12 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun May 12 10:58:58 UTC 2024

Modified Files:
src/lib/libc/gen: pwcache.c

Log Message:
libc/pwcache.c: remove stray semicolon from do-while-0 macro


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/lib/libc/gen/pwcache.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/gen

2024-05-12 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun May 12 10:58:58 UTC 2024

Modified Files:
src/lib/libc/gen: pwcache.c

Log Message:
libc/pwcache.c: remove stray semicolon from do-while-0 macro


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/lib/libc/gen/pwcache.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gen/pwcache.c
diff -u src/lib/libc/gen/pwcache.c:1.34 src/lib/libc/gen/pwcache.c:1.35
--- src/lib/libc/gen/pwcache.c:1.34	Tue Apr 19 20:32:15 2022
+++ src/lib/libc/gen/pwcache.c	Sun May 12 10:58:58 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: pwcache.c,v 1.34 2022/04/19 20:32:15 rillig Exp $	*/
+/*	$NetBSD: pwcache.c,v 1.35 2024/05/12 10:58:58 rillig Exp $	*/
 
 /*-
  * Copyright (c) 1992 Keith Muller.
@@ -74,7 +74,7 @@
 #if 0
 static char sccsid[] = "@(#)cache.c	8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: pwcache.c,v 1.34 2022/04/19 20:32:15 rillig Exp $");
+__RCSID("$NetBSD: pwcache.c,v 1.35 2024/05/12 10:58:58 rillig Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -524,7 +524,7 @@ gid_from_group(const char *name, gid_t *
 			arr = NULL;			\
 		}	\
 		fail = 0;\
-	} while (0);
+	} while (0)
 
 int
 pwcache_userdb(



CVS commit: src/lib/libc/arch/riscv/gen

2024-05-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sat May 11 07:40:18 UTC 2024

Modified Files:
src/lib/libc/arch/riscv/gen: fpsetmask.c

Log Message:
Do the '#if FCSR_FMASK == 0' thing that fpgetmask.c does for consistency.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/gen/fpsetmask.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/arch/riscv/gen

2024-05-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sat May 11 07:40:18 UTC 2024

Modified Files:
src/lib/libc/arch/riscv/gen: fpsetmask.c

Log Message:
Do the '#if FCSR_FMASK == 0' thing that fpgetmask.c does for consistency.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/gen/fpsetmask.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/arch/riscv/gen/fpsetmask.c
diff -u src/lib/libc/arch/riscv/gen/fpsetmask.c:1.3 src/lib/libc/arch/riscv/gen/fpsetmask.c:1.4
--- src/lib/libc/arch/riscv/gen/fpsetmask.c:1.3	Sun May  7 12:41:47 2023
+++ src/lib/libc/arch/riscv/gen/fpsetmask.c	Sat May 11 07:40:18 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: fpsetmask.c,v 1.3 2023/05/07 12:41:47 skrll Exp $	*/
+/*	$NetBSD: fpsetmask.c,v 1.4 2024/05/11 07:40:18 skrll Exp $	*/
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetmask.c,v 1.3 2023/05/07 12:41:47 skrll Exp $");
+__RCSID("$NetBSD: fpsetmask.c,v 1.4 2024/05/11 07:40:18 skrll Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -47,9 +47,9 @@ __weak_alias(fpsetmask,_fpsetmask)
 fp_except
 fpsetmask(fp_except mask)
 {
-#if 0
-	return __SHIFTOUT(fcsr_fmask_write(__SHIFTIN(mask, FCSR_MASK)), FCSR_FMASK);
-#else
+#if FCSR_FMASK == 0
 	return 0;
+#else
+	return __SHIFTOUT(fcsr_fmask_write(__SHIFTIN(mask, FCSR_MASK)), FCSR_FMASK);
 #endif
 }



CVS commit: src/lib/libc/net

2024-05-09 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu May  9 21:28:00 UTC 2024

Modified Files:
src/lib/libc/net: getaddrinfo.3

Log Message:
Document that freeaddrinfo(NULL) dumps core.

A source code comment already said this, but it's easier to
find in a man page.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/lib/libc/net/getaddrinfo.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/compiler_rt

2024-05-09 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 19:54:38 UTC 2024

Modified Files:
src/lib/libm/compiler_rt: Makefile.inc

Log Message:
libm: No divtc3.c or multc3.c in sparc64's compat sparc library.

compat/sparc64/sparc/bsd.sparc.mk doesn't define LIBC_MACHINE_CPU,
only LIBC_MACHINE_ARCH, so when the compat build gets to this
conditional, LIBC_MACHINE_CPU is just MACHINE_CPU, i.e., sparc64.

Since there's no `sparc64el' or `sparc64hf-el' that we need to
canonicalize by MACHINE_ARCH -> MACHINE_CPU, just use
LIBC_MACHINE_ARCH here.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/compiler_rt/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/compiler_rt/Makefile.inc
diff -u src/lib/libm/compiler_rt/Makefile.inc:1.11 src/lib/libm/compiler_rt/Makefile.inc:1.12
--- src/lib/libm/compiler_rt/Makefile.inc:1.11	Wed Jun 16 05:21:08 2021
+++ src/lib/libm/compiler_rt/Makefile.inc	Thu May  9 19:54:38 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.11 2021/06/16 05:21:08 rin Exp $
+# $NetBSD: Makefile.inc,v 1.12 2024/05/09 19:54:38 riastradh Exp $
 
 COMPILER_RT_DIR=	${NETBSDSRCDIR}/sys/external/bsd/compiler_rt
 COMPILER_RT_SRCDIR=	${COMPILER_RT_DIR}/dist
@@ -24,7 +24,7 @@ GENERIC_SRCS+= \
 	divsc3.c \
 	divxc3.c
 
-.if ${MACHINE_CPU} == "powerpc" || ${LIBC_MACHINE_CPU:U} == "sparc64" || ${LIBC_MACHINE_CPU:U} == "aarch64"
+.if ${MACHINE_CPU} == "powerpc" || ${LIBC_MACHINE_ARCH:U} == "sparc64" || ${LIBC_MACHINE_CPU:U} == "aarch64"
 GENERIC_SRCS+= \
 	divtc3.c \
 	multc3.c



CVS commit: src/lib/libm/compiler_rt

2024-05-09 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 19:54:38 UTC 2024

Modified Files:
src/lib/libm/compiler_rt: Makefile.inc

Log Message:
libm: No divtc3.c or multc3.c in sparc64's compat sparc library.

compat/sparc64/sparc/bsd.sparc.mk doesn't define LIBC_MACHINE_CPU,
only LIBC_MACHINE_ARCH, so when the compat build gets to this
conditional, LIBC_MACHINE_CPU is just MACHINE_CPU, i.e., sparc64.

Since there's no `sparc64el' or `sparc64hf-el' that we need to
canonicalize by MACHINE_ARCH -> MACHINE_CPU, just use
LIBC_MACHINE_ARCH here.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/compiler_rt/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm

2024-05-09 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 14:42:10 UTC 2024

Modified Files:
src/lib/libm: Makefile m.vax.expsym
Added Files:
src/lib/libm/noieee_src: n_frexpf.c n_frexpl.c

Log Message:
libm: Add frexpf and frexpl on VAX.

These are trivial subroutines, not symbol aliases, for separate
reasons:

- frexpf has a different ABI from frexp (float vs double argument)

- frexp is defined in libc, not libm, so although long double is the
  same as double, frexpl can't be an alias in libm of a symbol
  defined in libc


To generate a diff of this commit:
cvs rdiff -u -r1.233 -r1.234 src/lib/libm/Makefile
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/m.vax.expsym
cvs rdiff -u -r0 -r1.1 src/lib/libm/noieee_src/n_frexpf.c \
src/lib/libm/noieee_src/n_frexpl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/Makefile
diff -u src/lib/libm/Makefile:1.233 src/lib/libm/Makefile:1.234
--- src/lib/libm/Makefile:1.233	Thu May  9 00:04:23 2024
+++ src/lib/libm/Makefile	Thu May  9 14:42:09 2024
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.233 2024/05/09 00:04:23 riastradh Exp $
+#  $NetBSD: Makefile,v 1.234 2024/05/09 14:42:09 riastradh Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -359,8 +359,9 @@ COPTS.compat_cabsf.c=	${${ACTIVE_CC} == 
 # math routines for non-IEEE architectures.
 NOIEEE_SRCS = n_asincos.c n_acosh.c n_asinh.c n_atan.c n_atanh.c n_atanhf.c \
 	n_cosh.c \
-	n_erf.c n_exp.c n_exp2.c n_exp2f.c n_exp__E.c n_expm1.c n_floor.c \
-	n_fmod.c n_gamma.c n_ilogb.c \
+	n_erf.c n_exp.c n_exp2.c n_exp2f.c n_exp__E.c n_expm1.c \
+	n_floor.c n_fmod.c n_frexpf.c n_frexpl.c \
+	n_gamma.c n_ilogb.c \
 	n_lgamma.c n_j0.c n_j1.c n_jn.c n_log.c n_log10.c n_log1p.c \
 	n_log2.c n_log__L.c n_pow.c n_sinh.c n_tanh.c \
 	n_sincos.c n_sincos1.c n_tan.c \

Index: src/lib/libm/m.vax.expsym
diff -u src/lib/libm/m.vax.expsym:1.3 src/lib/libm/m.vax.expsym:1.4
--- src/lib/libm/m.vax.expsym:1.3	Wed May  8 02:08:11 2024
+++ src/lib/libm/m.vax.expsym	Thu May  9 14:42:09 2024
@@ -188,6 +188,8 @@ fminf
 fmod
 fmodf
 fmodl
+frexpf
+frexpl
 gamma
 hypot
 hypotf

Added files:

Index: src/lib/libm/noieee_src/n_frexpf.c
diff -u /dev/null src/lib/libm/noieee_src/n_frexpf.c:1.1
--- /dev/null	Thu May  9 14:42:10 2024
+++ src/lib/libm/noieee_src/n_frexpf.c	Thu May  9 14:42:10 2024
@@ -0,0 +1,52 @@
+/*	$NetBSD: n_frexpf.c,v 1.1 2024/05/09 14:42:10 riastradh Exp $	*/
+
+/*-
+ * Copyright (c) 2024 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include 
+__RCSID("$NetBSD: n_frexpf.c,v 1.1 2024/05/09 14:42:10 riastradh Exp $");
+
+#include "namespace.h"
+
+#include 
+
+float
+frexpf(float x, int *e)
+{
+
+	/*
+	 * We assume every value representable by float is also
+	 * representable by double.  The normalized result of frexp
+	 * differs only by the exponent, which is set to -1 (result
+	 * lies in [1/2, 1) or is zero), so it is also still
+	 * representable by float.
+	 *
+	 * This can't simply be a symbol alias, however, because the
+	 * ABI of float frexpf(float, int *) is different from the ABI
+	 * of double frexp(double, int *).
+	 */
+	return frexp(x, e);
+}
Index: src/lib/libm/noieee_src/n_frexpl.c
diff -u /dev/null src/lib/libm/noieee_src/n_frexpl.c:1.1
--- /dev/null	Thu May  9 14:42:10 2024
+++ src/lib/libm/noieee_src/n_frexpl.c	Thu May  9 14:42:10 2024
@@ -0,0 +1,50 @@
+/*	$NetBSD: n_frexpl.c,v 1.1 2024/05/09 14:42:10 riastradh Exp $	*/
+
+/*-
+ * Copyright (c) 2024 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or 

CVS commit: src/lib/libm

2024-05-09 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 14:42:10 UTC 2024

Modified Files:
src/lib/libm: Makefile m.vax.expsym
Added Files:
src/lib/libm/noieee_src: n_frexpf.c n_frexpl.c

Log Message:
libm: Add frexpf and frexpl on VAX.

These are trivial subroutines, not symbol aliases, for separate
reasons:

- frexpf has a different ABI from frexp (float vs double argument)

- frexp is defined in libc, not libm, so although long double is the
  same as double, frexpl can't be an alias in libm of a symbol
  defined in libc


To generate a diff of this commit:
cvs rdiff -u -r1.233 -r1.234 src/lib/libm/Makefile
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/m.vax.expsym
cvs rdiff -u -r0 -r1.1 src/lib/libm/noieee_src/n_frexpf.c \
src/lib/libm/noieee_src/n_frexpl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/noieee_src

2024-05-09 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 12:18:48 UTC 2024

Modified Files:
src/lib/libm/noieee_src: n_ilogb.c

Log Message:
libm: Define ilogbl as alias for ilogb on vax.

PR 57881


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/noieee_src/n_ilogb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/noieee_src

2024-05-09 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 12:18:48 UTC 2024

Modified Files:
src/lib/libm/noieee_src: n_ilogb.c

Log Message:
libm: Define ilogbl as alias for ilogb on vax.

PR 57881


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/noieee_src/n_ilogb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/noieee_src/n_ilogb.c
diff -u src/lib/libm/noieee_src/n_ilogb.c:1.1 src/lib/libm/noieee_src/n_ilogb.c:1.2
--- src/lib/libm/noieee_src/n_ilogb.c:1.1	Wed Aug 24 09:08:50 2016
+++ src/lib/libm/noieee_src/n_ilogb.c	Thu May  9 12:18:48 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: n_ilogb.c,v 1.1 2016/08/24 09:08:50 christos Exp $	*/
+/*	$NetBSD: n_ilogb.c,v 1.2 2024/05/09 12:18:48 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -30,11 +30,15 @@
  */
 #include 
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: n_ilogb.c,v 1.1 2016/08/24 09:08:50 christos Exp $");
+__RCSID("$NetBSD: n_ilogb.c,v 1.2 2024/05/09 12:18:48 riastradh Exp $");
 #endif
 
 #include "math.h"
 
+#ifndef __HAVE_LONG_DOUBLE
+__strong_alias(ilogbl,ilogb)
+#endif
+
 int
 ilogb(double x)
 {



CVS commit: src/lib/libm

2024-05-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 00:04:23 UTC 2024

Modified Files:
src/lib/libm: Makefile m.mips.expsym
Added Files:
src/lib/libm: m.mips64.expsym

Log Message:
libm: Split expected symbols in mips further by 32-bit vs 64-bit.

32-bit has binary64 long double, same as double; 64-bit has binary128
long double, which is implemented with a few more symbols in libm
(which should maybe be hidden internal symbols, but let's get this
diagnostic measure in the build working before we think about
possibly deleting private symbols).


To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.233 src/lib/libm/Makefile
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/m.mips.expsym
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.mips64.expsym

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm

2024-05-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 00:04:23 UTC 2024

Modified Files:
src/lib/libm: Makefile m.mips.expsym
Added Files:
src/lib/libm: m.mips64.expsym

Log Message:
libm: Split expected symbols in mips further by 32-bit vs 64-bit.

32-bit has binary64 long double, same as double; 64-bit has binary128
long double, which is implemented with a few more symbols in libm
(which should maybe be hidden internal symbols, but let's get this
diagnostic measure in the build working before we think about
possibly deleting private symbols).


To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.233 src/lib/libm/Makefile
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/m.mips.expsym
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.mips64.expsym

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/Makefile
diff -u src/lib/libm/Makefile:1.232 src/lib/libm/Makefile:1.233
--- src/lib/libm/Makefile:1.232	Wed May  8 23:28:07 2024
+++ src/lib/libm/Makefile	Thu May  9 00:04:23 2024
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.232 2024/05/08 23:28:07 riastradh Exp $
+#  $NetBSD: Makefile,v 1.233 2024/05/09 00:04:23 riastradh Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -206,7 +206,6 @@ ARCH_SRCS += s_fma.S s_fmaf.S
 .PATH:	${.CURDIR}/arch/mips
 .if ${MKSOFTFLOAT} == "no"
 COMMON_SRCS += fenv.c
-LIB_EXPSYM=	${LIB}.mipshf.expsym
 .endif
 .if ${MACHINE_MIPS64} && (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32))
 COMMON_SRCS+= s_nexttoward.c
@@ -214,6 +213,20 @@ COMMON_SRCS+= s_rintl.c
 .endif
 COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
 
+.  if ${MKSOFTFLOAT} == "no"
+.if ${MACHINE_MIPS64} && (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32))
+LIB_EXPSYM=	m.mips64hf.expsym
+.else
+LIB_EXPSYM=	m.mipshf.expsym
+.endif
+.  else
+.if ${MACHINE_MIPS64} && (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32))
+LIB_EXPSYM=	m.mips64.expsym
+.else
+LIB_EXPSYM=	m.mips.expsym
+.endif
+.  endif
+
 .elif (${LIBC_MACHINE_CPU} == "sh3")
 .PATH:	${.CURDIR}/arch/sh3
 .if ${MKSOFTFLOAT} == "no"

Index: src/lib/libm/m.mips.expsym
diff -u src/lib/libm/m.mips.expsym:1.3 src/lib/libm/m.mips.expsym:1.4
--- src/lib/libm/m.mips.expsym:1.3	Wed May  8 23:28:07 2024
+++ src/lib/libm/m.mips.expsym	Thu May  9 00:04:23 2024
@@ -1,26 +1,3 @@
-_ItL_aT
-_ItL_atanhi
-_ItL_atanlo
-_ItL_pS0
-_ItL_pS1
-_ItL_pS2
-_ItL_pS3
-_ItL_pS4
-_ItL_pS5
-_ItL_pS6
-_ItL_pS7
-_ItL_pS8
-_ItL_pS9
-_ItL_pi_lo
-_ItL_qS1
-_ItL_qS2
-_ItL_qS3
-_ItL_qS4
-_ItL_qS5
-_ItL_qS6
-_ItL_qS7
-_ItL_qS8
-_ItL_qS9
 __c99_cabs
 __c99_cabsf
 __c99_cabsl
@@ -73,7 +50,6 @@ __ieee754_sinh
 __ieee754_sinhf
 __ieee754_sqrt
 __ieee754_sqrtf
-__ieee754_sqrtl
 __ieee754_y0
 __ieee754_y0f
 __ieee754_y1
@@ -82,16 +58,13 @@ __ieee754_yn
 __ieee754_ynf
 __kernel_cos
 __kernel_cosf
-__kernel_cosl
 __kernel_rem_pio2
 __kernel_rem_pio2f
 __kernel_sin
 __kernel_sinf
-__kernel_sinl
 __kernel_standard
 __kernel_tan
 __kernel_tanf
-__kernel_tanl
 __log__D
 __muldc3
 __mulsc3
@@ -330,7 +303,6 @@ expm1
 expm1f
 expm1l
 fabsf
-fabsl
 fdim
 fdimf
 fdiml
@@ -378,7 +350,6 @@ hypotl
 ilogb
 ilogbf
 ilogbl
-imprecise_tgammal
 isinff
 isnanf
 j0

Added files:

Index: src/lib/libm/m.mips64.expsym
diff -u /dev/null src/lib/libm/m.mips64.expsym:1.1
--- /dev/null	Thu May  9 00:04:23 2024
+++ src/lib/libm/m.mips64.expsym	Thu May  9 00:04:23 2024
@@ -0,0 +1,503 @@
+_ItL_aT
+_ItL_atanhi
+_ItL_atanlo
+_ItL_pS0
+_ItL_pS1
+_ItL_pS2
+_ItL_pS3
+_ItL_pS4
+_ItL_pS5
+_ItL_pS6
+_ItL_pS7
+_ItL_pS8
+_ItL_pS9
+_ItL_pi_lo
+_ItL_qS1
+_ItL_qS2
+_ItL_qS3
+_ItL_qS4
+_ItL_qS5
+_ItL_qS6
+_ItL_qS7
+_ItL_qS8
+_ItL_qS9
+__c99_cabs
+__c99_cabsf
+__c99_cabsl
+__divdc3
+__divsc3
+__divxc3
+__exp__D
+__ieee754_acos
+__ieee754_acosf
+__ieee754_acosh
+__ieee754_acoshf
+__ieee754_asin
+__ieee754_asinf
+__ieee754_atan2
+__ieee754_atan2f
+__ieee754_atanh
+__ieee754_atanhf
+__ieee754_cosh
+__ieee754_coshf
+__ieee754_exp
+__ieee754_expf
+__ieee754_fmod
+__ieee754_fmodf
+__ieee754_fmodl
+__ieee754_hypot
+__ieee754_hypotf
+__ieee754_j0
+__ieee754_j0f
+__ieee754_j1
+__ieee754_j1f
+__ieee754_jn
+__ieee754_jnf
+__ieee754_lgamma_r
+__ieee754_lgammaf_r
+__ieee754_log
+__ieee754_log10
+__ieee754_log10f
+__ieee754_log2
+__ieee754_log2f
+__ieee754_logf
+__ieee754_pow
+__ieee754_powf
+__ieee754_rem_pio2
+__ieee754_rem_pio2f
+__ieee754_remainder
+__ieee754_remainderf
+__ieee754_scalb
+__ieee754_scalbf
+__ieee754_sinh
+__ieee754_sinhf
+__ieee754_sqrt
+__ieee754_sqrtf
+__ieee754_sqrtl
+__ieee754_y0
+__ieee754_y0f
+__ieee754_y1
+__ieee754_y1f
+__ieee754_yn
+__ieee754_ynf
+__kernel_cos
+__kernel_cosf
+__kernel_cosl
+__kernel_rem_pio2
+__kernel_rem_pio2f
+__kernel_sin
+__kernel_sinf
+__kernel_sinl
+__kernel_standard
+__kernel_tan
+__kernel_tanf
+__kernel_tanl
+__log__D
+__muldc3
+__mulsc3
+__mulxc3
+_acoshl
+_acosl
+_asin
+_asinf
+_asinhl
+_asinl
+_atan2
+_atan2f
+_atan2l
+_atanhl
+_atanl
+_casin
+_casinf
+_casinl
+_catan
+_catanf

CVS commit: src/lib/libm

2024-05-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 23:28:31 UTC 2024

Added Files:
src/lib/libm: m.sh3.expsym

Log Message:
libm: Record expected symbols for sh3.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.sh3.expsym

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/lib/libm/m.sh3.expsym
diff -u /dev/null src/lib/libm/m.sh3.expsym:1.1
--- /dev/null	Wed May  8 23:28:31 2024
+++ src/lib/libm/m.sh3.expsym	Wed May  8 23:28:31 2024
@@ -0,0 +1,478 @@
+___ctors
+___ctors_end
+___dtors
+___dtors_end
+__c99_cabs
+__c99_cabsf
+__c99_cabsl
+__divdc3
+__divsc3
+__divxc3
+__exp__D
+__ieee754_acos
+__ieee754_acosf
+__ieee754_acosh
+__ieee754_acoshf
+__ieee754_asin
+__ieee754_asinf
+__ieee754_atan2
+__ieee754_atan2f
+__ieee754_atanh
+__ieee754_atanhf
+__ieee754_cosh
+__ieee754_coshf
+__ieee754_exp
+__ieee754_expf
+__ieee754_fmod
+__ieee754_fmodf
+__ieee754_fmodl
+__ieee754_hypot
+__ieee754_hypotf
+__ieee754_j0
+__ieee754_j0f
+__ieee754_j1
+__ieee754_j1f
+__ieee754_jn
+__ieee754_jnf
+__ieee754_lgamma_r
+__ieee754_lgammaf_r
+__ieee754_log
+__ieee754_log10
+__ieee754_log10f
+__ieee754_log2
+__ieee754_log2f
+__ieee754_logf
+__ieee754_pow
+__ieee754_powf
+__ieee754_rem_pio2
+__ieee754_rem_pio2f
+__ieee754_remainder
+__ieee754_remainderf
+__ieee754_scalb
+__ieee754_scalbf
+__ieee754_sinh
+__ieee754_sinhf
+__ieee754_sqrt
+__ieee754_sqrtf
+__ieee754_y0
+__ieee754_y0f
+__ieee754_y1
+__ieee754_y1f
+__ieee754_yn
+__ieee754_ynf
+__kernel_cos
+__kernel_cosf
+__kernel_rem_pio2
+__kernel_rem_pio2f
+__kernel_sin
+__kernel_sinf
+__kernel_standard
+__kernel_tan
+__kernel_tanf
+__log__D
+__muldc3
+__mulsc3
+__mulxc3
+_acoshl
+_acosl
+_asin
+_asinf
+_asinhl
+_asinl
+_atan2
+_atan2f
+_atan2l
+_atanhl
+_atanl
+_casin
+_casinf
+_casinl
+_catan
+_catanf
+_catanl
+_cbrtl
+_cchsh
+_cchshf
+_cchshl
+_ceill
+_copysignl
+_cos
+_cosf
+_cosh
+_coshf
+_coshl
+_cosl
+_cospi
+_cospif
+_cospil
+_ctans
+_ctansf
+_ctansl
+_end
+_erfcl
+_erfl
+_exp
+_exp2l
+_expf
+_expl
+_expm1l
+_fdlib_version
+_feclearexcept
+_fedisableexcept
+_feenableexcept
+_fegetenv
+_fegetexcept
+_fegetexceptflag
+_fegetround
+_feholdexcept
+_feraiseexcept
+_fesetenv
+_fesetexceptflag
+_fesetround
+_fetestexcept
+_feupdateenv
+_fini
+_finite
+_finitef
+_floorl
+_fmodl
+_hypot
+_hypotf
+_hypotl
+_init
+_lgammal
+_lgammal_r
+_log
+_log10l
+_log1pl
+_log2l
+_logf
+_logl
+_modfl
+_powl
+_redupi
+_redupif
+_redupil
+_remquo
+_remquof
+_remquol
+_roundl
+_scalbln
+_scalblnf
+_scalblnl
+_scalbn
+_scalbnf
+_scalbnl
+_sin
+_sincos
+_sincosf
+_sincosl
+_sinf
+_sinh
+_sinhf
+_sinhl
+_sinl
+_sinpi
+_sinpif
+_sinpil
+_sqrtl
+_tan
+_tanf
+_tanhl
+_tanl
+_tanpi
+_tanpif
+_tanpil
+_tgammal
+_truncl
+acos
+acosf
+acosh
+acoshf
+acoshl
+acosl
+asin
+asinf
+asinh
+asinhf
+asinhl
+asinl
+atan
+atan2
+atan2f
+atan2l
+atanf
+atanh
+atanhf
+atanhl
+atanl
+cabs
+cabsf
+cacos
+cacosf
+cacosh
+cacoshf
+cacoshl
+cacosl
+carg
+cargf
+cargl
+casin
+casinf
+casinh
+casinhf
+casinhl
+casinl
+catan
+catanf
+catanh
+catanhf
+catanhl
+catanl
+cbrt
+cbrtf
+cbrtl
+ccos
+ccosf
+ccosh
+ccoshf
+ccoshl
+ccosl
+ceil
+ceilf
+ceill
+cexp
+cexpf
+cexpl
+cimag
+cimagf
+cimagl
+clog
+clogf
+clogl
+conj
+conjf
+conjl
+copysign
+copysignf
+copysignl
+cos
+cosf
+cosh
+coshf
+coshl
+cosl
+cospi
+cospif
+cospil
+cpow
+cpowf
+cpowl
+cproj
+cprojf
+cprojl
+creal
+crealf
+creall
+csin
+csinf
+csinh
+csinhf
+csinhl
+csinl
+csqrt
+csqrtf
+csqrtl
+ctan
+ctanf
+ctanh
+ctanhf
+ctanhl
+ctanl
+drem
+dremf
+erf
+erfc
+erfcf
+erfcl
+erff
+erfl
+exp
+exp2
+exp2f
+exp2l
+expf
+expl
+expm1
+expm1f
+expm1l
+fabsf
+fdim
+fdimf
+fdiml
+feclearexcept
+fedisableexcept
+feenableexcept
+fegetenv
+fegetexcept
+fegetexceptflag
+fegetround
+feholdexcept
+feraiseexcept
+fesetenv
+fesetexceptflag
+fesetround
+fetestexcept
+feupdateenv
+finite
+finitef
+floor
+floorf
+floorl
+fma
+fmaf
+fmal
+fmax
+fmaxf
+fmaxl
+fmin
+fminf
+fminl
+fmod
+fmodf
+fmodl
+frexp
+frexpf
+frexpl
+gamma
+gamma_r
+gammaf
+gammaf_r
+hypot
+hypotf
+hypotl
+ilogb
+ilogbf
+ilogbl
+isinff
+isnanf
+j0
+j0f
+j1
+j1f
+jn
+jnf
+ldexp
+ldexpf
+ldexpl
+lgamma
+lgamma_r
+lgammaf
+lgammaf_r
+lgammal
+lgammal_r
+llrint
+llrintf
+llrintl
+llround
+llroundf
+llroundl
+log
+log10
+log10f
+log10l
+log1p
+log1pf
+log1pl
+log2
+log2f
+log2l
+logb
+logbf
+logbl
+logf
+logl
+lrint
+lrintf
+lrintl
+lround
+lroundf
+lroundl
+matherr
+modf
+modff
+modfl
+nan
+nanf
+nanl
+nearbyint
+nearbyintf
+nearbyintl
+nextafter
+nextafterf
+nextafterl
+nexttoward
+nexttowardf
+nexttowardl
+pow
+powf
+powl
+remainder
+remainderf
+remainderl
+remquo
+remquof
+remquol
+rint
+rintf
+rintl
+round
+roundf
+roundl
+scalb
+scalbf
+scalbln
+scalblnf
+scalblnl
+scalbn
+scalbnf
+scalbnl
+signgam
+significand
+significandf
+sin
+sincos
+sincosf
+sincosl
+sinf
+sinh
+sinhf
+sinhl
+sinl
+sinpi
+sinpif
+sinpil
+sqrt
+sqrtf
+sqrtl
+tan
+tanf
+tanh
+tanhf
+tanhl
+tanl
+tanpi
+tanpif
+tanpil

CVS commit: src/lib/libm

2024-05-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 23:28:31 UTC 2024

Added Files:
src/lib/libm: m.sh3.expsym

Log Message:
libm: Record expected symbols for sh3.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.sh3.expsym

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm

2024-05-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 23:28:07 UTC 2024

Modified Files:
src/lib/libm: Makefile m.arm.expsym m.mips.expsym
Added Files:
src/lib/libm: m.armhf.expsym m.mipshf.expsym

Log Message:
libm: Split expected symbols on arm and mips by hard/soft float.


To generate a diff of this commit:
cvs rdiff -u -r1.231 -r1.232 src/lib/libm/Makefile
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.arm.expsym src/lib/libm/m.mips.expsym
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.armhf.expsym \
src/lib/libm/m.mipshf.expsym

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm

2024-05-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 23:28:07 UTC 2024

Modified Files:
src/lib/libm: Makefile m.arm.expsym m.mips.expsym
Added Files:
src/lib/libm: m.armhf.expsym m.mipshf.expsym

Log Message:
libm: Split expected symbols on arm and mips by hard/soft float.


To generate a diff of this commit:
cvs rdiff -u -r1.231 -r1.232 src/lib/libm/Makefile
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.arm.expsym src/lib/libm/m.mips.expsym
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.armhf.expsym \
src/lib/libm/m.mipshf.expsym

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/Makefile
diff -u src/lib/libm/Makefile:1.231 src/lib/libm/Makefile:1.232
--- src/lib/libm/Makefile:1.231	Sun May  5 22:52:19 2024
+++ src/lib/libm/Makefile	Wed May  8 23:28:07 2024
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.231 2024/05/05 22:52:19 riastradh Exp $
+#  $NetBSD: Makefile,v 1.232 2024/05/08 23:28:07 riastradh Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -81,6 +81,7 @@ COPTS+=	-mfloat-ieee -mieee-with-inexact
 .PATH.c: ${.CURDIR}/arch/arm
 .if ${MKSOFTFLOAT} == "no"
 COMMON_SRCS+= fenv.c
+LIB_EXPSYM=	${LIB}.armhf.expsym
 .endif
 .for f in fenv.c lrint.S lrintf.S s_fabsf.S s_fma.S s_fmaf.S
 COPTS.$f +=	-mfpu=vfp
@@ -205,6 +206,7 @@ ARCH_SRCS += s_fma.S s_fmaf.S
 .PATH:	${.CURDIR}/arch/mips
 .if ${MKSOFTFLOAT} == "no"
 COMMON_SRCS += fenv.c
+LIB_EXPSYM=	${LIB}.mipshf.expsym
 .endif
 .if ${MACHINE_MIPS64} && (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32))
 COMMON_SRCS+= s_nexttoward.c

Index: src/lib/libm/m.arm.expsym
diff -u src/lib/libm/m.arm.expsym:1.2 src/lib/libm/m.arm.expsym:1.3
--- src/lib/libm/m.arm.expsym:1.2	Wed May  8 01:40:26 2024
+++ src/lib/libm/m.arm.expsym	Wed May  8 23:28:07 2024
@@ -5,7 +5,6 @@ __divdc3
 __divsc3
 __divxc3
 __exp__D
-__fe_dfl_env
 __ieee754_acos
 __ieee754_acosf
 __ieee754_acosh
@@ -131,9 +130,6 @@ _feupdateenv
 _finite
 _finitef
 _floorl
-_fma
-_fmaf
-_fmal
 _fmodl
 _hypot
 _hypotf
Index: src/lib/libm/m.mips.expsym
diff -u src/lib/libm/m.mips.expsym:1.2 src/lib/libm/m.mips.expsym:1.3
--- src/lib/libm/m.mips.expsym:1.2	Wed May  8 01:40:26 2024
+++ src/lib/libm/m.mips.expsym	Wed May  8 23:28:07 2024
@@ -1,3 +1,26 @@
+_ItL_aT
+_ItL_atanhi
+_ItL_atanlo
+_ItL_pS0
+_ItL_pS1
+_ItL_pS2
+_ItL_pS3
+_ItL_pS4
+_ItL_pS5
+_ItL_pS6
+_ItL_pS7
+_ItL_pS8
+_ItL_pS9
+_ItL_pi_lo
+_ItL_qS1
+_ItL_qS2
+_ItL_qS3
+_ItL_qS4
+_ItL_qS5
+_ItL_qS6
+_ItL_qS7
+_ItL_qS8
+_ItL_qS9
 __c99_cabs
 __c99_cabsf
 __c99_cabsl
@@ -5,7 +28,6 @@ __divdc3
 __divsc3
 __divxc3
 __exp__D
-__fe_dfl_env
 __ieee754_acos
 __ieee754_acosf
 __ieee754_acosh
@@ -51,6 +73,7 @@ __ieee754_sinh
 __ieee754_sinhf
 __ieee754_sqrt
 __ieee754_sqrtf
+__ieee754_sqrtl
 __ieee754_y0
 __ieee754_y0f
 __ieee754_y1
@@ -59,13 +82,16 @@ __ieee754_yn
 __ieee754_ynf
 __kernel_cos
 __kernel_cosf
+__kernel_cosl
 __kernel_rem_pio2
 __kernel_rem_pio2f
 __kernel_sin
 __kernel_sinf
+__kernel_sinl
 __kernel_standard
 __kernel_tan
 __kernel_tanf
+__kernel_tanl
 __log__D
 __muldc3
 __mulsc3
@@ -304,6 +330,7 @@ expm1
 expm1f
 expm1l
 fabsf
+fabsl
 fdim
 fdimf
 fdiml
@@ -351,6 +378,7 @@ hypotl
 ilogb
 ilogbf
 ilogbl
+imprecise_tgammal
 isinff
 isnanf
 j0

Added files:

Index: src/lib/libm/m.armhf.expsym
diff -u /dev/null src/lib/libm/m.armhf.expsym:1.1
--- /dev/null	Wed May  8 23:28:07 2024
+++ src/lib/libm/m.armhf.expsym	Wed May  8 23:28:07 2024
@@ -0,0 +1,476 @@
+__c99_cabs
+__c99_cabsf
+__c99_cabsl
+__divdc3
+__divsc3
+__divxc3
+__exp__D
+__fe_dfl_env
+__ieee754_acos
+__ieee754_acosf
+__ieee754_acosh
+__ieee754_acoshf
+__ieee754_asin
+__ieee754_asinf
+__ieee754_atan2
+__ieee754_atan2f
+__ieee754_atanh
+__ieee754_atanhf
+__ieee754_cosh
+__ieee754_coshf
+__ieee754_exp
+__ieee754_expf
+__ieee754_fmod
+__ieee754_fmodf
+__ieee754_fmodl
+__ieee754_hypot
+__ieee754_hypotf
+__ieee754_j0
+__ieee754_j0f
+__ieee754_j1
+__ieee754_j1f
+__ieee754_jn
+__ieee754_jnf
+__ieee754_lgamma_r
+__ieee754_lgammaf_r
+__ieee754_log
+__ieee754_log10
+__ieee754_log10f
+__ieee754_log2
+__ieee754_log2f
+__ieee754_logf
+__ieee754_pow
+__ieee754_powf
+__ieee754_rem_pio2
+__ieee754_rem_pio2f
+__ieee754_remainder
+__ieee754_remainderf
+__ieee754_scalb
+__ieee754_scalbf
+__ieee754_sinh
+__ieee754_sinhf
+__ieee754_sqrt
+__ieee754_sqrtf
+__ieee754_y0
+__ieee754_y0f
+__ieee754_y1
+__ieee754_y1f
+__ieee754_yn
+__ieee754_ynf
+__kernel_cos
+__kernel_cosf
+__kernel_rem_pio2
+__kernel_rem_pio2f
+__kernel_sin
+__kernel_sinf
+__kernel_standard
+__kernel_tan
+__kernel_tanf
+__log__D
+__muldc3
+__mulsc3
+__mulxc3
+_acoshl
+_acosl
+_asin
+_asinf
+_asinhl
+_asinl
+_atan2
+_atan2f
+_atan2l
+_atanhl
+_atanl
+_casin
+_casinf
+_casinl
+_catan
+_catanf
+_catanl
+_cbrtl
+_cchsh
+_cchshf
+_cchshl
+_ceill
+_copysignl
+_cos
+_cosf
+_cosh
+_coshf
+_coshl
+_cosl
+_cospi
+_cospif
+_cospil
+_ctans
+_ctansf
+_ctansl
+_end
+_erfcl
+_erfl
+_exp
+_exp2l
+_expf
+_expl
+_expm1l
+_fdlib_version
+_feclearexcept

CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 02:08:11 UTC 2024

Modified Files:
src/lib/libm: m.vax.expsym
src/lib/libm/noieee_src: n_floor.c

Log Message:
libm: Add rintl, rintf to non-IEEE754 architectures.

While here, delete #ifdef to handle ns32k -- I don't think that's
gonna be relevant any time soon; in case you hadn't noticed, the
world has moved on from ns32k to vax by now.

PR 57881


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.vax.expsym
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/noieee_src/n_floor.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/m.vax.expsym
diff -u src/lib/libm/m.vax.expsym:1.2 src/lib/libm/m.vax.expsym:1.3
--- src/lib/libm/m.vax.expsym:1.2	Wed May  8 01:04:24 2024
+++ src/lib/libm/m.vax.expsym	Wed May  8 02:08:11 2024
@@ -229,6 +229,8 @@ pow
 powf
 powl
 rint
+rintf
+rintl
 round
 roundf
 roundl

Index: src/lib/libm/noieee_src/n_floor.c
diff -u src/lib/libm/noieee_src/n_floor.c:1.8 src/lib/libm/noieee_src/n_floor.c:1.9
--- src/lib/libm/noieee_src/n_floor.c:1.8	Sun Mar 16 09:51:39 2014
+++ src/lib/libm/noieee_src/n_floor.c	Wed May  8 02:08:11 2024
@@ -1,4 +1,4 @@
-/*  $NetBSD: n_floor.c,v 1.8 2014/03/16 09:51:39 martin Exp $ */
+/*  $NetBSD: n_floor.c,v 1.9 2024/05/08 02:08:11 riastradh Exp $ */
 /*
  * Copyright (c) 1985, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -45,11 +45,10 @@ ic(L, 4503599627370496.0E0, 52, 1.0)			 
 #define	L	vccast(L)
 #endif
 
-#ifdef __weak_alias
-__weak_alias(ceill, ceil);
-__weak_alias(floorl, floor);
-__weak_alias(truncl, trunc);
-#endif
+__weak_alias(ceill, ceil)
+__weak_alias(floorl, floor)
+__weak_alias(truncl, trunc)
+__weak_alias(rintl, rint)
 
 /*
  * floor(x) := the largest integer no larger than x;
@@ -110,7 +109,6 @@ ceilf(float x)
 	return ceil((double)x);
 }
 
-#ifndef ns32000			/* rint() is in ./NATIONAL/support.s */
 /*
  * algorithm for rint(x) in pseudo-pascal form ...
  *
@@ -149,7 +147,12 @@ rint(double x)
 	t = x + s;/* x+s rounded to integer */
 	return (t - s);
 }
-#endif	/* not national */
+
+float
+rintf(float x)
+{
+	return rint((double)x);
+}
 
 long
 lrint(double x)



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 02:08:11 UTC 2024

Modified Files:
src/lib/libm: m.vax.expsym
src/lib/libm/noieee_src: n_floor.c

Log Message:
libm: Add rintl, rintf to non-IEEE754 architectures.

While here, delete #ifdef to handle ns32k -- I don't think that's
gonna be relevant any time soon; in case you hadn't noticed, the
world has moved on from ns32k to vax by now.

PR 57881


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.vax.expsym
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/noieee_src/n_floor.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:58:52 UTC 2024

Removed Files:
src/lib/libm/src: ldbl_dummy.c

Log Message:
libm: ldbl_dummy.c is no longer needed -- nix it.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r0 src/lib/libm/src/ldbl_dummy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:58:52 UTC 2024

Removed Files:
src/lib/libm/src: ldbl_dummy.c

Log Message:
libm: ldbl_dummy.c is no longer needed -- nix it.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r0 src/lib/libm/src/ldbl_dummy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:42:23 UTC 2024

Modified Files:
src/lib/libm: m.aarch64.expsym m.riscv.expsym m.sparc64.expsym
src/lib/libm/src: s_cosl.c

Log Message:
libm: Don't export symbol `pio4' from s_cosl.c.

This appears to have been added unintentionally in the recent FreeBSD
long double update, and never went out in a release.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.aarch64.expsym \
src/lib/libm/m.riscv.expsym src/lib/libm/m.sparc64.expsym
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_cosl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/m.aarch64.expsym
diff -u src/lib/libm/m.aarch64.expsym:1.2 src/lib/libm/m.aarch64.expsym:1.3
--- src/lib/libm/m.aarch64.expsym:1.2	Wed May  8 01:40:26 2024
+++ src/lib/libm/m.aarch64.expsym	Wed May  8 01:42:23 2024
@@ -450,7 +450,6 @@ nextafterl
 nexttoward
 nexttowardf
 nexttowardl
-pio4
 pow
 powf
 powl
Index: src/lib/libm/m.riscv.expsym
diff -u src/lib/libm/m.riscv.expsym:1.2 src/lib/libm/m.riscv.expsym:1.3
--- src/lib/libm/m.riscv.expsym:1.2	Wed May  8 01:40:27 2024
+++ src/lib/libm/m.riscv.expsym	Wed May  8 01:42:23 2024
@@ -435,7 +435,6 @@ nextafterl
 nexttoward
 nexttowardf
 nexttowardl
-pio4
 pow
 powf
 powl
Index: src/lib/libm/m.sparc64.expsym
diff -u src/lib/libm/m.sparc64.expsym:1.2 src/lib/libm/m.sparc64.expsym:1.3
--- src/lib/libm/m.sparc64.expsym:1.2	Wed May  8 01:40:27 2024
+++ src/lib/libm/m.sparc64.expsym	Wed May  8 01:42:23 2024
@@ -441,7 +441,6 @@ nextafterl
 nexttoward
 nexttowardf
 nexttowardl
-pio4
 pow
 powf
 powl

Index: src/lib/libm/src/s_cosl.c
diff -u src/lib/libm/src/s_cosl.c:1.2 src/lib/libm/src/s_cosl.c:1.3
--- src/lib/libm/src/s_cosl.c:1.2	Wed Apr  3 18:53:42 2024
+++ src/lib/libm/src/s_cosl.c	Wed May  8 01:42:23 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: s_cosl.c,v 1.2 2024/04/03 18:53:42 christos Exp $	*/
+/*	$NetBSD: s_cosl.c,v 1.3 2024/05/08 01:42:23 riastradh Exp $	*/
 
 /*-
  * SPDX-License-Identifier: BSD-2-Clause
@@ -29,7 +29,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: s_cosl.c,v 1.2 2024/04/03 18:53:42 christos Exp $");
+__RCSID("$NetBSD: s_cosl.c,v 1.3 2024/05/08 01:42:23 riastradh Exp $");
 
 /*
  * Limited testing on pseudorandom numbers drawn within [-2e8:4e8] shows
@@ -62,7 +62,7 @@ pio4u = LD80C(0xc90fdaa22168c235, -1
 #elif LDBL_MANT_DIG == 113
 #include "../ld128/e_rem_pio2l.h"
 #include "../ld128/k_cosl.c"
-long double pio4 =  7.85398163397448309615660845819875721e-1L;
+static long double pio4 =  7.85398163397448309615660845819875721e-1L;
 #else
 #error "Unsupported long double format"
 #endif



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:42:23 UTC 2024

Modified Files:
src/lib/libm: m.aarch64.expsym m.riscv.expsym m.sparc64.expsym
src/lib/libm/src: s_cosl.c

Log Message:
libm: Don't export symbol `pio4' from s_cosl.c.

This appears to have been added unintentionally in the recent FreeBSD
long double update, and never went out in a release.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.aarch64.expsym \
src/lib/libm/m.riscv.expsym src/lib/libm/m.sparc64.expsym
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_cosl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:40:27 UTC 2024

Modified Files:
src/lib/libm: m.aarch64.expsym m.alpha.expsym m.arm.expsym
m.hppa.expsym m.i386.expsym m.ia64.expsym m.m68k.expsym
m.mips.expsym m.powerpc.expsym m.riscv.expsym m.sparc.expsym
m.sparc64.expsym m.x86_64.expsym
src/lib/libm/noieee_src: n_sincos.c
src/lib/libm/src: namespace.h s_cos.c s_cosf.c s_finite.c s_finitef.c
s_sin.c s_sinf.c s_tan.c s_tanf.c

Log Message:
libm: Do the weak alias dance for sin/cos/tan/finite{,f}.

tan isn't used internally, but it's confusing for it to be treated
differently from sin and cos, and there's no harm in doing the dance
unnecessarily.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.aarch64.expsym \
src/lib/libm/m.alpha.expsym src/lib/libm/m.arm.expsym \
src/lib/libm/m.hppa.expsym src/lib/libm/m.ia64.expsym \
src/lib/libm/m.mips.expsym src/lib/libm/m.powerpc.expsym \
src/lib/libm/m.riscv.expsym src/lib/libm/m.sparc.expsym \
src/lib/libm/m.sparc64.expsym
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.i386.expsym \
src/lib/libm/m.x86_64.expsym
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/m.m68k.expsym
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/noieee_src/n_sincos.c
cvs rdiff -u -r1.19 -r1.20 src/lib/libm/src/namespace.h
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/src/s_cos.c src/lib/libm/src/s_sin.c
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/src/s_cosf.c
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/src/s_finite.c
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/src/s_finitef.c \
src/lib/libm/src/s_sinf.c
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/src/s_tan.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/src/s_tanf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/m.aarch64.expsym
diff -u src/lib/libm/m.aarch64.expsym:1.1 src/lib/libm/m.aarch64.expsym:1.2
--- src/lib/libm/m.aarch64.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.aarch64.expsym	Wed May  8 01:40:26 2024
@@ -126,6 +126,8 @@ _cchshf
 _cchshl
 _ceill
 _copysignl
+_cos
+_cosf
 _cosh
 _coshf
 _coshl
@@ -159,6 +161,8 @@ _fesetexceptflag
 _fesetround
 _fetestexcept
 _feupdateenv
+_finite
+_finitef
 _floorl
 _fma
 _fmaf
@@ -193,9 +197,11 @@ _scalblnl
 _scalbn
 _scalbnf
 _scalbnl
+_sin
 _sincos
 _sincosf
 _sincosl
+_sinf
 _sinh
 _sinhf
 _sinhl
@@ -204,6 +210,8 @@ _sinpi
 _sinpif
 _sinpil
 _sqrtl
+_tan
+_tanf
 _tanhl
 _tanl
 _tanpi
Index: src/lib/libm/m.alpha.expsym
diff -u src/lib/libm/m.alpha.expsym:1.1 src/lib/libm/m.alpha.expsym:1.2
--- src/lib/libm/m.alpha.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.alpha.expsym	Wed May  8 01:40:26 2024
@@ -93,6 +93,8 @@ _cchshf
 _cchshl
 _ceill
 _copysignl
+_cos
+_cosf
 _cosh
 _coshf
 _coshl
@@ -120,6 +122,8 @@ _feholdexcept
 _fesetenv
 _feupdateenv
 _fini
+_finite
+_finitef
 _floorl
 _fmodl
 _hypot
@@ -149,9 +153,11 @@ _scalblnl
 _scalbn
 _scalbnf
 _scalbnl
+_sin
 _sincos
 _sincosf
 _sincosl
+_sinf
 _sinh
 _sinhf
 _sinhl
@@ -160,6 +166,8 @@ _sinpi
 _sinpif
 _sinpil
 _sqrtl
+_tan
+_tanf
 _tanhl
 _tanl
 _tanpi
Index: src/lib/libm/m.arm.expsym
diff -u src/lib/libm/m.arm.expsym:1.1 src/lib/libm/m.arm.expsym:1.2
--- src/lib/libm/m.arm.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.arm.expsym	Wed May  8 01:40:26 2024
@@ -93,6 +93,8 @@ _cchshf
 _cchshl
 _ceill
 _copysignl
+_cos
+_cosf
 _cosh
 _coshf
 _coshl
@@ -126,6 +128,8 @@ _fesetexceptflag
 _fesetround
 _fetestexcept
 _feupdateenv
+_finite
+_finitef
 _floorl
 _fma
 _fmaf
@@ -157,9 +161,11 @@ _scalblnl
 _scalbn
 _scalbnf
 _scalbnl
+_sin
 _sincos
 _sincosf
 _sincosl
+_sinf
 _sinh
 _sinhf
 _sinhl
@@ -168,6 +174,8 @@ _sinpi
 _sinpif
 _sinpil
 _sqrtl
+_tan
+_tanf
 _tanhl
 _tanl
 _tanpi
Index: src/lib/libm/m.hppa.expsym
diff -u src/lib/libm/m.hppa.expsym:1.1 src/lib/libm/m.hppa.expsym:1.2
--- src/lib/libm/m.hppa.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.hppa.expsym	Wed May  8 01:40:26 2024
@@ -93,6 +93,8 @@ _cchshf
 _cchshl
 _ceill
 _copysignl
+_cos
+_cosf
 _cosh
 _coshf
 _coshl
@@ -127,6 +129,8 @@ _fesetround
 _fetestexcept
 _feupdateenv
 _fini
+_finite
+_finitef
 _floorl
 _fmodl
 _hypot
@@ -156,9 +160,11 @@ _scalblnl
 _scalbn
 _scalbnf
 _scalbnl
+_sin
 _sincos
 _sincosf
 _sincosl
+_sinf
 _sinh
 _sinhf
 _sinhl
@@ -167,6 +173,8 @@ _sinpi
 _sinpif
 _sinpil
 _sqrtl
+_tan
+_tanf
 _tanhl
 _tanl
 _tanpi
Index: src/lib/libm/m.ia64.expsym
diff -u src/lib/libm/m.ia64.expsym:1.1 src/lib/libm/m.ia64.expsym:1.2
--- src/lib/libm/m.ia64.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.ia64.expsym	Wed May  8 01:40:26 2024
@@ -93,6 +93,8 @@ _cchshf
 _cchshl
 _ceill
 _copysignl
+_cos
+_cosf
 _cosh
 _coshf
 _coshl
@@ -127,6 +129,8 @@ _fesetround
 _fetestexcept
 _feupdateenv
 _fini
+_finite
+_finitef
 _floorl
 _fmodl
 _hypot
@@ -156,9 +160,11 @@ _scalblnl
 _scalbn
 _scalbnf
 _scalbnl
+_sin
 _sincos
 _sincosf
 _sincosl
+_sinf
 _sinh
 

CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:40:27 UTC 2024

Modified Files:
src/lib/libm: m.aarch64.expsym m.alpha.expsym m.arm.expsym
m.hppa.expsym m.i386.expsym m.ia64.expsym m.m68k.expsym
m.mips.expsym m.powerpc.expsym m.riscv.expsym m.sparc.expsym
m.sparc64.expsym m.x86_64.expsym
src/lib/libm/noieee_src: n_sincos.c
src/lib/libm/src: namespace.h s_cos.c s_cosf.c s_finite.c s_finitef.c
s_sin.c s_sinf.c s_tan.c s_tanf.c

Log Message:
libm: Do the weak alias dance for sin/cos/tan/finite{,f}.

tan isn't used internally, but it's confusing for it to be treated
differently from sin and cos, and there's no harm in doing the dance
unnecessarily.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.aarch64.expsym \
src/lib/libm/m.alpha.expsym src/lib/libm/m.arm.expsym \
src/lib/libm/m.hppa.expsym src/lib/libm/m.ia64.expsym \
src/lib/libm/m.mips.expsym src/lib/libm/m.powerpc.expsym \
src/lib/libm/m.riscv.expsym src/lib/libm/m.sparc.expsym \
src/lib/libm/m.sparc64.expsym
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.i386.expsym \
src/lib/libm/m.x86_64.expsym
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/m.m68k.expsym
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/noieee_src/n_sincos.c
cvs rdiff -u -r1.19 -r1.20 src/lib/libm/src/namespace.h
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/src/s_cos.c src/lib/libm/src/s_sin.c
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/src/s_cosf.c
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/src/s_finite.c
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/src/s_finitef.c \
src/lib/libm/src/s_sinf.c
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/src/s_tan.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/src/s_tanf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:05:25 UTC 2024

Modified Files:
src/lib/libm: m.m68k.expsym
src/lib/libm/arch/m68k: s_finite.S

Log Message:
libm/arch/m68k: Do the weak alias dance for finite.

This is used internally.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.m68k.expsym
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/m68k/s_finite.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/m.m68k.expsym
diff -u src/lib/libm/m.m68k.expsym:1.2 src/lib/libm/m.m68k.expsym:1.3
--- src/lib/libm/m.m68k.expsym:1.2	Wed May  8 01:04:40 2024
+++ src/lib/libm/m.m68k.expsym	Wed May  8 01:05:25 2024
@@ -147,6 +147,7 @@ _fesetround
 _fetestexcept
 _feupdateenv
 _fini
+_finite
 _floorl
 _fmodl
 _hypot

Index: src/lib/libm/arch/m68k/s_finite.S
diff -u src/lib/libm/arch/m68k/s_finite.S:1.7 src/lib/libm/arch/m68k/s_finite.S:1.8
--- src/lib/libm/arch/m68k/s_finite.S:1.7	Thu Aug  7 16:44:41 2003
+++ src/lib/libm/arch/m68k/s_finite.S	Wed May  8 01:05:25 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: s_finite.S,v 1.7 2003/08/07 16:44:41 agc Exp $	*/
+/*	$NetBSD: s_finite.S,v 1.8 2024/05/08 01:05:25 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -38,11 +38,12 @@
 ;_sccsid:
 ;.asciz	"from: @(#)support.s	5.2 (Berkeley) 5/17/90"
 
-RCSID("$NetBSD: s_finite.S,v 1.7 2003/08/07 16:44:41 agc Exp $")
+RCSID("$NetBSD: s_finite.S,v 1.8 2024/05/08 01:05:25 riastradh Exp $")
 
 | finite(x)
 | returns the value TRUE if -INF < x < +INF and returns FALSE otherwise.
-ENTRY(finite)
+WEAK_ALIAS(finite, _finite)
+ENTRY(_finite)
 	movw	%sp@(4),%d0
 	movw	#0x7FF0,%d1
 	andw	%d1,%d0
@@ -51,3 +52,4 @@ ENTRY(finite)
 	extbl	%d0
 	negl	%d0
 	rts
+END(_finite)



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:05:25 UTC 2024

Modified Files:
src/lib/libm: m.m68k.expsym
src/lib/libm/arch/m68k: s_finite.S

Log Message:
libm/arch/m68k: Do the weak alias dance for finite.

This is used internally.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.m68k.expsym
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/m68k/s_finite.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:04:41 UTC 2024

Modified Files:
src/lib/libm: m.m68k.expsym
src/lib/libm/arch/mc68881: s_cos.S s_sin.S s_tan.S

Log Message:
libm/arch/mc68881: Do the weak alias dance for sin, cos, tan.

These are used internally.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.m68k.expsym
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/mc68881/s_cos.S \
src/lib/libm/arch/mc68881/s_sin.S src/lib/libm/arch/mc68881/s_tan.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/m.m68k.expsym
diff -u src/lib/libm/m.m68k.expsym:1.1 src/lib/libm/m.m68k.expsym:1.2
--- src/lib/libm/m.m68k.expsym:1.1	Tue May  7 23:13:32 2024
+++ src/lib/libm/m.m68k.expsym	Wed May  8 01:04:40 2024
@@ -112,6 +112,7 @@ _cchshf
 _cchshl
 _ceill
 _copysignl
+_cos
 _cosh
 _coshf
 _coshl
@@ -175,6 +176,7 @@ _scalblnl
 _scalbn
 _scalbnf
 _scalbnl
+_sin
 _sincos
 _sincosf
 _sincosl
@@ -186,6 +188,7 @@ _sinpi
 _sinpif
 _sinpil
 _sqrtl
+_tan
 _tanhl
 _tanl
 _tanpi

Index: src/lib/libm/arch/mc68881/s_cos.S
diff -u src/lib/libm/arch/mc68881/s_cos.S:1.6 src/lib/libm/arch/mc68881/s_cos.S:1.7
--- src/lib/libm/arch/mc68881/s_cos.S:1.6	Thu Aug  7 16:44:43 2003
+++ src/lib/libm/arch/mc68881/s_cos.S	Wed May  8 01:04:40 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: s_cos.S,v 1.6 2003/08/07 16:44:43 agc Exp $	*/
+/*	$NetBSD: s_cos.S,v 1.7 2024/05/08 01:04:40 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -38,9 +38,11 @@
 ;_sccsid:
 ;.asciz	"from: @(#)sincos.s	5.1 (Berkeley) 5/17/90"
 
-RCSID("$NetBSD: s_cos.S,v 1.6 2003/08/07 16:44:43 agc Exp $")
+RCSID("$NetBSD: s_cos.S,v 1.7 2024/05/08 01:04:40 riastradh Exp $")
 
-ENTRY(cos)
+WEAK_ALIAS(cos, _cos)
+
+ENTRY(_cos)
 	fcosd	%sp@(4),%fp0
 #ifndef __SVR4_ABI__
 	fmoved	%fp0,%sp@-
@@ -48,3 +50,4 @@ ENTRY(cos)
 	movel	%sp@+,%d1
 #endif
 	rts
+END(_cos)
Index: src/lib/libm/arch/mc68881/s_sin.S
diff -u src/lib/libm/arch/mc68881/s_sin.S:1.6 src/lib/libm/arch/mc68881/s_sin.S:1.7
--- src/lib/libm/arch/mc68881/s_sin.S:1.6	Thu Aug  7 16:44:43 2003
+++ src/lib/libm/arch/mc68881/s_sin.S	Wed May  8 01:04:40 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: s_sin.S,v 1.6 2003/08/07 16:44:43 agc Exp $	*/
+/*	$NetBSD: s_sin.S,v 1.7 2024/05/08 01:04:40 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -38,9 +38,11 @@
 ;_sccsid:
 ;.asciz	"from: @(#)sincos.s	5.1 (Berkeley) 5/17/90"
 
-RCSID("$NetBSD: s_sin.S,v 1.6 2003/08/07 16:44:43 agc Exp $")
+RCSID("$NetBSD: s_sin.S,v 1.7 2024/05/08 01:04:40 riastradh Exp $")
 
-ENTRY(sin)
+WEAK_ALIAS(sin, _sin)
+
+ENTRY(_sin)
 	fsind	%sp@(4),%fp0
 #ifndef __SVR4_ABI__
 	fmoved	%fp0,%sp@-
@@ -48,3 +50,4 @@ ENTRY(sin)
 	movel	%sp@+,%d1
 #endif
 	rts
+END(_sin)
Index: src/lib/libm/arch/mc68881/s_tan.S
diff -u src/lib/libm/arch/mc68881/s_tan.S:1.6 src/lib/libm/arch/mc68881/s_tan.S:1.7
--- src/lib/libm/arch/mc68881/s_tan.S:1.6	Thu Aug  7 16:44:44 2003
+++ src/lib/libm/arch/mc68881/s_tan.S	Wed May  8 01:04:40 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: s_tan.S,v 1.6 2003/08/07 16:44:44 agc Exp $	*/
+/*	$NetBSD: s_tan.S,v 1.7 2024/05/08 01:04:40 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -38,9 +38,11 @@
 ;_sccsid:
 ;.asciz	"from: @(#)tan.s	5.1 (Berkeley) 5/17/90"
 
-RCSID("$NetBSD: s_tan.S,v 1.6 2003/08/07 16:44:44 agc Exp $")
+RCSID("$NetBSD: s_tan.S,v 1.7 2024/05/08 01:04:40 riastradh Exp $")
 
-ENTRY(tan)
+WEAK_ALIAS(tan, _tan)
+
+ENTRY(_tan)
 	ftand	%sp@(4),%fp0
 #ifndef __SVR4_ABI__
 	fmoved	%fp0,%sp@-
@@ -48,3 +50,4 @@ ENTRY(tan)
 	movel	%sp@+,%d1
 #endif
 	rts
+END(_tan)



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:04:41 UTC 2024

Modified Files:
src/lib/libm: m.m68k.expsym
src/lib/libm/arch/mc68881: s_cos.S s_sin.S s_tan.S

Log Message:
libm/arch/mc68881: Do the weak alias dance for sin, cos, tan.

These are used internally.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.m68k.expsym
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/mc68881/s_cos.S \
src/lib/libm/arch/mc68881/s_sin.S src/lib/libm/arch/mc68881/s_tan.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:04:24 UTC 2024

Modified Files:
src/lib/libm: m.vax.expsym
src/lib/libm/arch/vax: n_support.S

Log Message:
libm/arch/vax: Do the weak alias dance for finite, finitef.

These are used internally.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.vax.expsym
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/arch/vax/n_support.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/m.vax.expsym
diff -u src/lib/libm/m.vax.expsym:1.1 src/lib/libm/m.vax.expsym:1.2
--- src/lib/libm/m.vax.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.vax.expsym	Wed May  8 01:04:24 2024
@@ -42,6 +42,8 @@ _exp
 _expf
 _expl
 _fini
+_finite
+_finitef
 _hypot
 _hypotf
 _hypotl

Index: src/lib/libm/arch/vax/n_support.S
diff -u src/lib/libm/arch/vax/n_support.S:1.11 src/lib/libm/arch/vax/n_support.S:1.12
--- src/lib/libm/arch/vax/n_support.S:1.11	Tue May  7 15:15:10 2024
+++ src/lib/libm/arch/vax/n_support.S	Wed May  8 01:04:24 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: n_support.S,v 1.11 2024/05/07 15:15:10 riastradh Exp $	*/
+/*	$NetBSD: n_support.S,v 1.12 2024/05/08 01:04:24 riastradh Exp $	*/
 /*
  * Copyright (c) 1985, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -103,10 +103,11 @@ END(logb)
  * long finite(double x);
  */
 #ifndef __GFLOAT__
-	.globl finitef
-finitef = finite
+WEAK_ALIAS(finitef, _finitef)
+STRONG_ALIAS(_finitef, _finite)
 #endif
-ENTRY(finite, 0)
+WEAK_ALIAS(finite, _finite)
+ENTRY(_finite, 0)
 	bicw3	$0x7f,4(%ap),%r0	# mask off the mantissa
 	cmpw	%r0,$0x8000		# to see if x is the reserved op
 	beql	1f			# if so, return FALSE (0)
@@ -114,7 +115,7 @@ ENTRY(finite, 0)
 	ret
 1:	clrl	%r0
 	ret
-END(finite)
+END(_finite)
 
 /* int isnan(double x);
  */



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:04:24 UTC 2024

Modified Files:
src/lib/libm: m.vax.expsym
src/lib/libm/arch/vax: n_support.S

Log Message:
libm/arch/vax: Do the weak alias dance for finite, finitef.

These are used internally.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.vax.expsym
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/arch/vax/n_support.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:04:03 UTC 2024

Modified Files:
src/lib/libm: m.i386.expsym m.x86_64.expsym
src/lib/libm/arch/i387: s_finite.S s_finitef.S

Log Message:
libm/arch/i387: Do the weak alias dance for finite and finitef.

These are used internally by some things.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.i386.expsym \
src/lib/libm/m.x86_64.expsym
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/i387/s_finite.S
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/i387/s_finitef.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/m.i386.expsym
diff -u src/lib/libm/m.i386.expsym:1.1 src/lib/libm/m.i386.expsym:1.2
--- src/lib/libm/m.i386.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.i386.expsym	Wed May  8 01:04:03 2024
@@ -147,6 +147,8 @@ _fesetround
 _fetestexcept
 _feupdateenv
 _fini
+_finite
+_finitef
 _floorl
 _fmodl
 _hypot
Index: src/lib/libm/m.x86_64.expsym
diff -u src/lib/libm/m.x86_64.expsym:1.1 src/lib/libm/m.x86_64.expsym:1.2
--- src/lib/libm/m.x86_64.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.x86_64.expsym	Wed May  8 01:04:03 2024
@@ -147,6 +147,8 @@ _fesetround
 _fetestexcept
 _feupdateenv
 _fini
+_finite
+_finitef
 _floorl
 _fmodl
 _hypot

Index: src/lib/libm/arch/i387/s_finite.S
diff -u src/lib/libm/arch/i387/s_finite.S:1.7 src/lib/libm/arch/i387/s_finite.S:1.8
--- src/lib/libm/arch/i387/s_finite.S:1.7	Sat Jul 26 19:25:01 2003
+++ src/lib/libm/arch/i387/s_finite.S	Wed May  8 01:04:03 2024
@@ -5,9 +5,11 @@
 
 #include 
 
-RCSID("$NetBSD: s_finite.S,v 1.7 2003/07/26 19:25:01 salo Exp $")
+RCSID("$NetBSD: s_finite.S,v 1.8 2024/05/08 01:04:03 riastradh Exp $")
 
-ENTRY(finite)
+WEAK_ALIAS(finite, _finite)
+
+ENTRY(_finite)
 #ifdef __i386__
 	movl	8(%esp),%eax
 	andl	$0x7ff0, %eax
@@ -24,3 +26,4 @@ ENTRY(finite)
 	setne	%al
 #endif
 	ret
+END(_finite)

Index: src/lib/libm/arch/i387/s_finitef.S
diff -u src/lib/libm/arch/i387/s_finitef.S:1.6 src/lib/libm/arch/i387/s_finitef.S:1.7
--- src/lib/libm/arch/i387/s_finitef.S:1.6	Sat Jul 26 19:25:01 2003
+++ src/lib/libm/arch/i387/s_finitef.S	Wed May  8 01:04:03 2024
@@ -5,9 +5,11 @@
 
 #include 
 
-RCSID("$NetBSD: s_finitef.S,v 1.6 2003/07/26 19:25:01 salo Exp $")
+RCSID("$NetBSD: s_finitef.S,v 1.7 2024/05/08 01:04:03 riastradh Exp $")
 
-ENTRY(finitef)
+WEAK_ALIAS(finitef, _finitef)
+
+ENTRY(_finitef)
 #ifdef __i386__
 	movl	4(%esp),%eax
 	andl	$0x7f80, %eax
@@ -23,3 +25,4 @@ ENTRY(finitef)
 	setne	%al
 #endif
 	ret
+END(_finitef)



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:04:03 UTC 2024

Modified Files:
src/lib/libm: m.i386.expsym m.x86_64.expsym
src/lib/libm/arch/i387: s_finite.S s_finitef.S

Log Message:
libm/arch/i387: Do the weak alias dance for finite and finitef.

These are used internally by some things.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.i386.expsym \
src/lib/libm/m.x86_64.expsym
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/i387/s_finite.S
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/i387/s_finitef.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 23:13:33 UTC 2024

Added Files:
src/lib/libm: m.m68k.expsym

Log Message:
libm: Add expected symbols for m68k.

Not sure if this'll work for all ports -- we might need to split it
up finer-grained by different m68k flavours -- but let's give it a
try and see what breaks.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.m68k.expsym

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/lib/libm/m.m68k.expsym
diff -u /dev/null src/lib/libm/m.m68k.expsym:1.1
--- /dev/null	Tue May  7 23:13:33 2024
+++ src/lib/libm/m.m68k.expsym	Tue May  7 23:13:32 2024
@@ -0,0 +1,487 @@
+_ItL_aT
+_ItL_atanhi
+_ItL_atanlo
+_ItL_pS0
+_ItL_pS1
+_ItL_pS2
+_ItL_pS3
+_ItL_pS4
+_ItL_pS5
+_ItL_pS6
+_ItL_pi_lo
+_ItL_qS1
+_ItL_qS2
+_ItL_qS3
+_ItL_qS4
+_ItL_qS5
+__c99_cabs
+__c99_cabsf
+__c99_cabsl
+__divdc3
+__divsc3
+__divxc3
+__exp__D
+__ieee754_acos
+__ieee754_acosf
+__ieee754_acosh
+__ieee754_acoshf
+__ieee754_asin
+__ieee754_asinf
+__ieee754_atan2
+__ieee754_atan2f
+__ieee754_atanh
+__ieee754_atanhf
+__ieee754_cosh
+__ieee754_coshf
+__ieee754_exp
+__ieee754_expf
+__ieee754_fmod
+__ieee754_fmodf
+__ieee754_fmodl
+__ieee754_hypot
+__ieee754_hypotf
+__ieee754_j0
+__ieee754_j0f
+__ieee754_j1
+__ieee754_j1f
+__ieee754_jn
+__ieee754_jnf
+__ieee754_lgamma_r
+__ieee754_lgammaf_r
+__ieee754_log
+__ieee754_log10
+__ieee754_log10f
+__ieee754_log2
+__ieee754_log2f
+__ieee754_logf
+__ieee754_pow
+__ieee754_powf
+__ieee754_rem_pio2
+__ieee754_rem_pio2f
+__ieee754_remainder
+__ieee754_remainderf
+__ieee754_scalb
+__ieee754_scalbf
+__ieee754_sinh
+__ieee754_sinhf
+__ieee754_sqrt
+__ieee754_sqrtf
+__ieee754_sqrtl
+__ieee754_y0
+__ieee754_y0f
+__ieee754_y1
+__ieee754_y1f
+__ieee754_yn
+__ieee754_ynf
+__kernel_cos
+__kernel_cosf
+__kernel_cosl
+__kernel_rem_pio2
+__kernel_rem_pio2f
+__kernel_sin
+__kernel_sinf
+__kernel_sinl
+__kernel_standard
+__kernel_tan
+__kernel_tanf
+__kernel_tanl
+__log__D
+__muldc3
+__mulsc3
+__mulxc3
+_acoshl
+_acosl
+_asin
+_asinf
+_asinhl
+_asinl
+_atan2
+_atan2f
+_atan2l
+_atanhl
+_atanl
+_casin
+_casinf
+_casinl
+_catan
+_catanf
+_catanl
+_cbrtl
+_cchsh
+_cchshf
+_cchshl
+_ceill
+_copysignl
+_cosh
+_coshf
+_coshl
+_cosl
+_cospi
+_cospif
+_cospil
+_ctans
+_ctansf
+_ctansl
+_end
+_erfcl
+_erfl
+_exp
+_exp2l
+_expf
+_expl
+_expm1l
+_fdlib_version
+_feclearexcept
+_fedisableexcept
+_feenableexcept
+_fegetenv
+_fegetexcept
+_fegetexceptflag
+_fegetround
+_feholdexcept
+_feraiseexcept
+_fesetenv
+_fesetexceptflag
+_fesetround
+_fetestexcept
+_feupdateenv
+_fini
+_floorl
+_fmodl
+_hypot
+_hypotf
+_hypotl
+_init
+_lgammal
+_lgammal_r
+_log
+_log10l
+_log1pl
+_log2l
+_logf
+_logl
+_modfl
+_powl
+_redupi
+_redupif
+_redupil
+_remquo
+_remquof
+_remquol
+_roundl
+_scalbln
+_scalblnf
+_scalblnl
+_scalbn
+_scalbnf
+_scalbnl
+_sincos
+_sincosf
+_sincosl
+_sinh
+_sinhf
+_sinhl
+_sinl
+_sinpi
+_sinpif
+_sinpil
+_sqrtl
+_tanhl
+_tanl
+_tanpi
+_tanpif
+_tanpil
+_tgammal
+_truncl
+acos
+acosf
+acosh
+acoshf
+acoshl
+acosl
+asin
+asinf
+asinh
+asinhf
+asinhl
+asinl
+atan
+atan2
+atan2f
+atan2l
+atanf
+atanh
+atanhf
+atanhl
+atanl
+cabs
+cabsf
+cacos
+cacosf
+cacosh
+cacoshf
+cacoshl
+cacosl
+carg
+cargf
+cargl
+casin
+casinf
+casinh
+casinhf
+casinhl
+casinl
+catan
+catanf
+catanh
+catanhf
+catanhl
+catanl
+cbrt
+cbrtf
+cbrtl
+ccos
+ccosf
+ccosh
+ccoshf
+ccoshl
+ccosl
+ceil
+ceilf
+ceill
+cexp
+cexpf
+cexpl
+cimag
+cimagf
+cimagl
+clog
+clogf
+clogl
+conj
+conjf
+conjl
+copysign
+copysignf
+copysignl
+cos
+cosf
+cosh
+coshf
+coshl
+cosl
+cospi
+cospif
+cospil
+cpow
+cpowf
+cpowl
+cproj
+cprojf
+cprojl
+creal
+crealf
+creall
+csin
+csinf
+csinh
+csinhf
+csinhl
+csinl
+csqrt
+csqrtf
+csqrtl
+ctan
+ctanf
+ctanh
+ctanhf
+ctanhl
+ctanl
+drem
+dremf
+erf
+erfc
+erfcf
+erfcl
+erff
+erfl
+exp
+exp2
+exp2f
+exp2l
+expf
+expl
+expm1
+expm1f
+expm1l
+fabsf
+fabsl
+fdim
+fdimf
+fdiml
+feclearexcept
+fedisableexcept
+feenableexcept
+fegetenv
+fegetexcept
+fegetexceptflag
+fegetround
+feholdexcept
+feraiseexcept
+fesetenv
+fesetexceptflag
+fesetround
+fetestexcept
+feupdateenv
+finite
+finitef
+floor
+floorf
+floorl
+fma
+fmaf
+fmal
+fmax
+fmaxf
+fmaxl
+fmin
+fminf
+fminl
+fmod
+fmodf
+fmodl
+frexp
+frexpf
+frexpl
+gamma
+gamma_r
+gammaf
+gammaf_r
+hypot
+hypotf
+hypotl
+ilogb
+ilogbf
+ilogbl
+isinff
+isnanf
+j0
+j0f
+j1
+j1f
+jn
+jnf
+ldexp
+ldexpf
+ldexpl
+lgamma
+lgamma_r
+lgammaf
+lgammaf_r
+lgammal
+lgammal_r
+llrint
+llrintf
+llrintl
+llround
+llroundf
+llroundl
+log
+log10
+log10f
+log10l
+log1p
+log1pf
+log1pl
+log2
+log2f
+log2l
+logb
+logbf
+logbl
+logf
+logl
+lrint
+lrintf
+lrintl
+lround
+lroundf
+lroundl
+matherr
+modf
+modff
+modfl
+nan
+nanf
+nanl
+nearbyint
+nearbyintf
+nearbyintl
+nextafter
+nextafterf
+nextafterl
+nexttoward
+nexttowardf
+nexttowardl
+pow
+powf
+powl
+remainder
+remainderf
+remainderl
+remquo
+remquof
+remquol
+rint
+rintf
+rintl

CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 23:13:33 UTC 2024

Added Files:
src/lib/libm: m.m68k.expsym

Log Message:
libm: Add expected symbols for m68k.

Not sure if this'll work for all ports -- we might need to split it
up finer-grained by different m68k flavours -- but let's give it a
try and see what breaks.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.m68k.expsym

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:51:20 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: Makefile.list e_acos.S e_acosf.S e_asin.S
e_asinf.S e_atanh.S e_atanhf.S e_cosh.S e_coshf.S e_exp.S e_expf.S
e_log.S e_log10.S e_log10f.S e_logf.S e_sinh.S e_sinhf.S e_sqrt.S
e_sqrtf.S fplsp_wrap.S k_tan.S k_tanf.S s_atan.S s_atanf.S s_cos.S
s_cosf.S s_expm1.S s_expm1f.S s_log1p.S s_log1pf.S s_logb.S
s_logbf.S s_sin.S s_sinf.S s_tan.S s_tanf.S s_tanh.S s_tanhf.S

Log Message:
lib/libm/arch/m68060: regen


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/m68060/Makefile.list \
src/lib/libm/arch/m68060/e_acos.S src/lib/libm/arch/m68060/e_acosf.S \
src/lib/libm/arch/m68060/e_asin.S src/lib/libm/arch/m68060/e_asinf.S \
src/lib/libm/arch/m68060/e_atanh.S src/lib/libm/arch/m68060/e_atanhf.S \
src/lib/libm/arch/m68060/e_cosh.S src/lib/libm/arch/m68060/e_coshf.S \
src/lib/libm/arch/m68060/e_exp.S src/lib/libm/arch/m68060/e_expf.S \
src/lib/libm/arch/m68060/e_log.S src/lib/libm/arch/m68060/e_log10.S \
src/lib/libm/arch/m68060/e_log10f.S src/lib/libm/arch/m68060/e_logf.S \
src/lib/libm/arch/m68060/e_sinh.S src/lib/libm/arch/m68060/e_sinhf.S \
src/lib/libm/arch/m68060/e_sqrt.S src/lib/libm/arch/m68060/e_sqrtf.S \
src/lib/libm/arch/m68060/k_tan.S src/lib/libm/arch/m68060/k_tanf.S \
src/lib/libm/arch/m68060/s_atan.S src/lib/libm/arch/m68060/s_atanf.S \
src/lib/libm/arch/m68060/s_cos.S src/lib/libm/arch/m68060/s_cosf.S \
src/lib/libm/arch/m68060/s_expm1.S src/lib/libm/arch/m68060/s_expm1f.S \
src/lib/libm/arch/m68060/s_log1p.S src/lib/libm/arch/m68060/s_log1pf.S \
src/lib/libm/arch/m68060/s_logb.S src/lib/libm/arch/m68060/s_logbf.S \
src/lib/libm/arch/m68060/s_sin.S src/lib/libm/arch/m68060/s_sinf.S \
src/lib/libm/arch/m68060/s_tan.S src/lib/libm/arch/m68060/s_tanf.S \
src/lib/libm/arch/m68060/s_tanh.S src/lib/libm/arch/m68060/s_tanhf.S
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/arch/m68060/fplsp_wrap.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/m68060/Makefile.list
diff -u src/lib/libm/arch/m68060/Makefile.list:1.7 src/lib/libm/arch/m68060/Makefile.list:1.8
--- src/lib/libm/arch/m68060/Makefile.list:1.7	Tue May  7 21:18:47 2024
+++ src/lib/libm/arch/m68060/Makefile.list	Tue May  7 22:51:19 2024
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile.list,v 1.7 2024/05/07 21:18:47 riastradh Exp $
+# $NetBSD: Makefile.list,v 1.8 2024/05/07 22:51:19 riastradh Exp $
 
 #
 # list of M68060 architecture dependent files for libm.
 #
 # Created by:
 #
-#	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp
+#	NetBSD: makeas.sh,v 1.16 2024/05/07 22:30:16 riastradh Exp
 #
 # Do not edit manually!
 #
Index: src/lib/libm/arch/m68060/e_acos.S
diff -u src/lib/libm/arch/m68060/e_acos.S:1.7 src/lib/libm/arch/m68060/e_acos.S:1.8
--- src/lib/libm/arch/m68060/e_acos.S:1.7	Tue May  7 21:18:47 2024
+++ src/lib/libm/arch/m68060/e_acos.S	Tue May  7 22:51:19 2024
@@ -1,10 +1,10 @@
-/* $NetBSD: e_acos.S,v 1.7 2024/05/07 21:18:47 riastradh Exp $ */
+/* $NetBSD: e_acos.S,v 1.8 2024/05/07 22:51:19 riastradh Exp $ */
 
 /*
  * FPLSP wrapper for __ieee754_acos
  * DO NOT EDIT - this file is automatically generated by:
  *
- *	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp
+ *	NetBSD: makeas.sh,v 1.16 2024/05/07 22:30:16 riastradh Exp
  */
 
 #include 
@@ -21,3 +21,4 @@ ENTRY(__ieee754_acos)
 	movel %sp@+,%d1
 	rts
 #endif
+END(__ieee754_acos)
Index: src/lib/libm/arch/m68060/e_acosf.S
diff -u src/lib/libm/arch/m68060/e_acosf.S:1.7 src/lib/libm/arch/m68060/e_acosf.S:1.8
--- src/lib/libm/arch/m68060/e_acosf.S:1.7	Tue May  7 21:18:47 2024
+++ src/lib/libm/arch/m68060/e_acosf.S	Tue May  7 22:51:19 2024
@@ -1,10 +1,10 @@
-/* $NetBSD: e_acosf.S,v 1.7 2024/05/07 21:18:47 riastradh Exp $ */
+/* $NetBSD: e_acosf.S,v 1.8 2024/05/07 22:51:19 riastradh Exp $ */
 
 /*
  * FPLSP wrapper for __ieee754_acosf
  * DO NOT EDIT - this file is automatically generated by:
  *
- *	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp
+ *	NetBSD: makeas.sh,v 1.16 2024/05/07 22:30:16 riastradh Exp
  */
 
 #include 
@@ -19,3 +19,4 @@ ENTRY(__ieee754_acosf)
 	movel %sp@+,%d0
 	rts
 #endif
+END(__ieee754_acosf)
Index: src/lib/libm/arch/m68060/e_asin.S
diff -u src/lib/libm/arch/m68060/e_asin.S:1.7 src/lib/libm/arch/m68060/e_asin.S:1.8
--- src/lib/libm/arch/m68060/e_asin.S:1.7	Tue May  7 21:18:47 2024
+++ src/lib/libm/arch/m68060/e_asin.S	Tue May  7 22:51:19 2024
@@ -1,10 +1,10 @@
-/* $NetBSD: e_asin.S,v 1.7 2024/05/07 21:18:47 riastradh Exp $ */
+/* $NetBSD: e_asin.S,v 1.8 2024/05/07 22:51:19 riastradh Exp $ */
 
 /*
  * FPLSP wrapper for __ieee754_asin
  * DO NOT EDIT - this file is automatically generated by:
  *
- *	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 

CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:51:20 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: Makefile.list e_acos.S e_acosf.S e_asin.S
e_asinf.S e_atanh.S e_atanhf.S e_cosh.S e_coshf.S e_exp.S e_expf.S
e_log.S e_log10.S e_log10f.S e_logf.S e_sinh.S e_sinhf.S e_sqrt.S
e_sqrtf.S fplsp_wrap.S k_tan.S k_tanf.S s_atan.S s_atanf.S s_cos.S
s_cosf.S s_expm1.S s_expm1f.S s_log1p.S s_log1pf.S s_logb.S
s_logbf.S s_sin.S s_sinf.S s_tan.S s_tanf.S s_tanh.S s_tanhf.S

Log Message:
lib/libm/arch/m68060: regen


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/m68060/Makefile.list \
src/lib/libm/arch/m68060/e_acos.S src/lib/libm/arch/m68060/e_acosf.S \
src/lib/libm/arch/m68060/e_asin.S src/lib/libm/arch/m68060/e_asinf.S \
src/lib/libm/arch/m68060/e_atanh.S src/lib/libm/arch/m68060/e_atanhf.S \
src/lib/libm/arch/m68060/e_cosh.S src/lib/libm/arch/m68060/e_coshf.S \
src/lib/libm/arch/m68060/e_exp.S src/lib/libm/arch/m68060/e_expf.S \
src/lib/libm/arch/m68060/e_log.S src/lib/libm/arch/m68060/e_log10.S \
src/lib/libm/arch/m68060/e_log10f.S src/lib/libm/arch/m68060/e_logf.S \
src/lib/libm/arch/m68060/e_sinh.S src/lib/libm/arch/m68060/e_sinhf.S \
src/lib/libm/arch/m68060/e_sqrt.S src/lib/libm/arch/m68060/e_sqrtf.S \
src/lib/libm/arch/m68060/k_tan.S src/lib/libm/arch/m68060/k_tanf.S \
src/lib/libm/arch/m68060/s_atan.S src/lib/libm/arch/m68060/s_atanf.S \
src/lib/libm/arch/m68060/s_cos.S src/lib/libm/arch/m68060/s_cosf.S \
src/lib/libm/arch/m68060/s_expm1.S src/lib/libm/arch/m68060/s_expm1f.S \
src/lib/libm/arch/m68060/s_log1p.S src/lib/libm/arch/m68060/s_log1pf.S \
src/lib/libm/arch/m68060/s_logb.S src/lib/libm/arch/m68060/s_logbf.S \
src/lib/libm/arch/m68060/s_sin.S src/lib/libm/arch/m68060/s_sinf.S \
src/lib/libm/arch/m68060/s_tan.S src/lib/libm/arch/m68060/s_tanf.S \
src/lib/libm/arch/m68060/s_tanh.S src/lib/libm/arch/m68060/s_tanhf.S
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/arch/m68060/fplsp_wrap.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:30:17 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Delimit symbols with END.

This way we get symbol sizes in the ELF output.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:30:17 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Delimit symbols with END.

This way we get symbol sizes in the ELF output.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.15 src/lib/libm/arch/m68060/makeas.sh:1.16
--- src/lib/libm/arch/m68060/makeas.sh:1.15	Tue May  7 22:29:53 2024
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 22:30:16 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.15 2024/05/07 22:29:53 riastradh Exp $
+# $NetBSD: makeas.sh,v 1.16 2024/05/07 22:30:16 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # All rights reserved.
@@ -27,7 +27,7 @@
 
 set -eu
 
-RCSID='$NetBSD: makeas.sh,v 1.15 2024/05/07 22:29:53 riastradh Exp $'
+RCSID='$NetBSD: makeas.sh,v 1.16 2024/05/07 22:30:16 riastradh Exp $'
 
 RCSID=${RCSID#\$}
 RCSID=${RCSID% \$}
@@ -102,6 +102,7 @@ ENTRY($NAME)
 	movel %sp@+,%d1
 	rts
 #endif
+END($NAME)
 EOJ
 	dummy "$@"
 }
@@ -146,6 +147,7 @@ ENTRY($NAME)
 	movel %sp@+,%d0
 	rts
 #endif
+END($NAME)
 EOJ
 	dummy "$@"
 }



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:29:53 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/arch/m68060/makeas.sh: Create public weak aliases.

Use _foo for internal names, and weak alias foo when it's public like
sin/cos/tan.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.14 src/lib/libm/arch/m68060/makeas.sh:1.15
--- src/lib/libm/arch/m68060/makeas.sh:1.14	Tue May  7 22:19:42 2024
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 22:29:53 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.14 2024/05/07 22:19:42 riastradh Exp $
+# $NetBSD: makeas.sh,v 1.15 2024/05/07 22:29:53 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # All rights reserved.
@@ -27,7 +27,7 @@
 
 set -eu
 
-RCSID='$NetBSD: makeas.sh,v 1.14 2024/05/07 22:19:42 riastradh Exp $'
+RCSID='$NetBSD: makeas.sh,v 1.15 2024/05/07 22:29:53 riastradh Exp $'
 
 RCSID=${RCSID#\$}
 RCSID=${RCSID% \$}
@@ -61,19 +61,20 @@ linebreak () {
 }
 
 mk () {
-	local NAME OFFS THESRC
+	local NAME ALIAS OFFS THESRC
 
 	NAME=$1
-	OFFS=$2
-	THESRC=$3.S
-	shift; shift; shift
+	ALIAS=$2
+	OFFS=$3
+	THESRC=$4.S
+	shift; shift; shift; shift
 
 	echo -n " " ${THESRC} >> $FILELIST
 	/bin/cat > ${THESRC} << EOJ
 /* \$NetBSD\$ */
 
 /*
- * FPLSP wrapper for $NAME
+ * FPLSP wrapper for ${ALIAS:-$NAME}
  * DO NOT EDIT - this file is automatically generated by:
  *
  *	$RCSID
@@ -81,6 +82,14 @@ mk () {
 
 #include 
 
+EOJ
+	if [ -n "$ALIAS" ]; then
+		/bin/cat >> ${THESRC} << EOJ
+WEAK_ALIAS($ALIAS, $NAME)
+
+EOJ
+	fi
+	/bin/cat >> ${THESRC} << EOJ
 ENTRY($NAME)
 #ifdef __SVR4_ABI__
 	bral PIC_PLT(_C_LABEL(__fplsp060_$OFFS))
@@ -98,19 +107,20 @@ EOJ
 }
 
 mks () {
-	local NAME OFFS THESRC
+	local NAME ALIAS OFFS THESRC
 
 	NAME=$1
-	OFFS=$2
-	THESRC=$3.S
-	shift; shift; shift
+	ALIAS=$2
+	OFFS=$3
+	THESRC=$4.S
+	shift; shift; shift; shift
 
 	echo -n " " ${THESRC} >> $FILELIST
 	/bin/cat > ${THESRC} << EOJ
 /* \$NetBSD\$ */
 
 /*
- * FPLSP wrapper for $NAME
+ * FPLSP wrapper for ${ALIAS:-$NAME}
  * DO NOT EDIT - this file is automatically generated by:
  *
  *	$RCSID
@@ -118,6 +128,14 @@ mks () {
 
 #include 
 
+EOJ
+	if [ -n "$ALIAS" ]; then
+		/bin/cat >> ${THESRC} << EOJ
+WEAK_ALIAS($ALIAS, $NAME)
+
+EOJ
+	fi
+	/bin/cat >> ${THESRC} << EOJ
 ENTRY($NAME)
 #ifdef __SVR4_ABI__
 	bral PIC_PLT(_C_LABEL(__fplsp060_$OFFS))
@@ -164,48 +182,48 @@ EOJ
 
 echo -n ARCH_SRCS = >> $FILELIST
 
-mks	__ieee754_acosf			e_acosf
-mk	__ieee754_acos		0008	e_acos
-mks	__ieee754_asinf		0018	e_asinf
-mk	__ieee754_asin		0020	e_asin
-linebreak
-mks	atanf			0030	s_atanf
-mk	atan			0038	s_atan
-mks	__ieee754_atanhf	0048	e_atanhf
-mk	__ieee754_atanh		0050	e_atanh
-linebreak
-mks	cosf			0060	s_cosf
-mk	cos			0068	s_cos
-mks	__ieee754_coshf		0078	e_coshf
-mk	__ieee754_cosh		0080	e_cosh
-linebreak
-mks	__ieee754_expf		0090	e_expf
-mk	__ieee754_exp		0098	e_exp
-mks	expm1f			00a8	s_expm1f
-mk	expm1			00b0	s_expm1
-linebreak
-mks	__ieee754_log10f	00f0	e_log10f
-mk	__ieee754_log10		00f8	e_log10
-mks	logbf			0108	s_logbf
-mk	logb			0110	s_logb
-linebreak
-mks	__ieee754_logf		0120	e_logf
-mk	__ieee754_log		0128	e_log
-mks	log1pf			0138	s_log1pf
-mk	log1p			0140	s_log1p
-linebreak
-mks	sinf			0198	s_sinf
-mk	sin			01a0	s_sin
-mks	__ieee754_sinhf		01c8	e_sinhf
-mk	__ieee754_sinh		01d0	e_sinh
-linebreak
-mks	tanf			01e0	s_tanf k_tanf
-mk	tan			01e8	s_tan k_tan
-mks	tanhf			01f8	s_tanhf
-mk	tanh			0200	s_tanh
+mks	__ieee754_acosf	''		e_acosf
+mk	__ieee754_acos	''	0008	e_acos
+mks	__ieee754_asinf	''	0018	e_asinf
+mk	__ieee754_asin	''	0020	e_asin
+linebreak
+mks	_atanf		atanf	0030	s_atanf
+mk	_atan		atan	0038	s_atan
+mks	__ieee754_atanhf ''	0048	e_atanhf
+mk	__ieee754_atanh	''	0050	e_atanh
+linebreak
+mks	_cosf		cosf	0060	s_cosf
+mk	_cos		cos	0068	s_cos
+mks	__ieee754_coshf	''	0078	e_coshf
+mk	__ieee754_cosh	''	0080	e_cosh
+linebreak
+mks	__ieee754_expf	''	0090	e_expf
+mk	__ieee754_exp	''	0098	e_exp
+mks	_expm1f		expm1f	00a8	s_expm1f
+mk	_expm1		expm1	00b0	s_expm1
+linebreak
+mks	__ieee754_log10f ''	00f0	e_log10f
+mk	__ieee754_log10	''	00f8	e_log10
+mks	_logbf		logbf	0108	s_logbf
+mk	_logb		logb	0110	s_logb
+linebreak
+mks	__ieee754_logf	''	0120	e_logf
+mk	__ieee754_log	''	0128	e_log
+mks	_log1pf		log1pf	0138	s_log1pf
+mk	_log1p		log1p	0140	s_log1p
+linebreak
+mks	_sinf		sinf	0198	s_sinf
+mk	_sin		sin	01a0	s_sin
+mks	__ieee754_sinhf	''	01c8	e_sinhf
+mk	__ieee754_sinh	''	01d0	e_sinh
+linebreak
+mks	_tanf		tanf	01e0	s_tanf k_tanf
+mk	_tan		tan	01e8	s_tan k_tan
+mks	_tanhf		tanhf	01f8	s_tanhf
+mk	_tanh		tanh	0200	s_tanh
 linebreak
-mks	__ieee754_sqrtf		02e8	e_sqrtf
-mk	__ieee754_sqrt		02f0	e_sqrt
+mks	__ieee754_sqrtf	''	02e8	e_sqrtf
+mk	

CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:29:53 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/arch/m68060/makeas.sh: Create public weak aliases.

Use _foo for internal names, and weak alias foo when it's public like
sin/cos/tan.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:19:42 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Use `set -eu' to detect script mistakes.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.13 src/lib/libm/arch/m68060/makeas.sh:1.14
--- src/lib/libm/arch/m68060/makeas.sh:1.13	Tue May  7 22:18:19 2024
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 22:19:42 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.13 2024/05/07 22:18:19 riastradh Exp $
+# $NetBSD: makeas.sh,v 1.14 2024/05/07 22:19:42 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # All rights reserved.
@@ -25,7 +25,9 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-RCSID='$NetBSD: makeas.sh,v 1.13 2024/05/07 22:18:19 riastradh Exp $'
+set -eu
+
+RCSID='$NetBSD: makeas.sh,v 1.14 2024/05/07 22:19:42 riastradh Exp $'
 
 RCSID=${RCSID#\$}
 RCSID=${RCSID% \$}



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:19:42 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Use `set -eu' to detect script mistakes.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:18:19 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Pass arguments to dummy more idiomatically.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.12 src/lib/libm/arch/m68060/makeas.sh:1.13
--- src/lib/libm/arch/m68060/makeas.sh:1.12	Tue May  7 22:17:24 2024
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 22:18:19 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.12 2024/05/07 22:17:24 riastradh Exp $
+# $NetBSD: makeas.sh,v 1.13 2024/05/07 22:18:19 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # All rights reserved.
@@ -25,7 +25,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-RCSID='$NetBSD: makeas.sh,v 1.12 2024/05/07 22:17:24 riastradh Exp $'
+RCSID='$NetBSD: makeas.sh,v 1.13 2024/05/07 22:18:19 riastradh Exp $'
 
 RCSID=${RCSID#\$}
 RCSID=${RCSID% \$}
@@ -34,8 +34,10 @@ REALCODE=fplsp_wrap.S
 FILELIST=Makefile.list
 
 dummy () {
-	while [ X$1 != X ]; do
-		/bin/cat > $1.S << EOM
+	local F
+
+	for F; do
+		/bin/cat > $F.S << EOM
 /* \$NetBSD\$ */
 
 /*
@@ -47,8 +49,7 @@ dummy () {
  *
  */
 EOM
-		echo -n " " $1.S >> $FILELIST
-		shift
+		echo -n " " $F.S >> $FILELIST
 	done
 }
 
@@ -91,7 +92,7 @@ ENTRY($NAME)
 	rts
 #endif
 EOJ
-	dummy $*
+	dummy "$@"
 }
 
 mks () {
@@ -126,7 +127,7 @@ ENTRY($NAME)
 	rts
 #endif
 EOJ
-	dummy $*
+	dummy "$@"
 }
 
 /bin/cat > ${REALCODE} << EOJ



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:18:19 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Pass arguments to dummy more idiomatically.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:17:24 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Use local for shell functions.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.11 src/lib/libm/arch/m68060/makeas.sh:1.12
--- src/lib/libm/arch/m68060/makeas.sh:1.11	Tue May  7 22:17:08 2024
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 22:17:24 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.11 2024/05/07 22:17:08 riastradh Exp $
+# $NetBSD: makeas.sh,v 1.12 2024/05/07 22:17:24 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # All rights reserved.
@@ -25,7 +25,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-RCSID='$NetBSD: makeas.sh,v 1.11 2024/05/07 22:17:08 riastradh Exp $'
+RCSID='$NetBSD: makeas.sh,v 1.12 2024/05/07 22:17:24 riastradh Exp $'
 
 RCSID=${RCSID#\$}
 RCSID=${RCSID% \$}
@@ -58,6 +58,8 @@ linebreak () {
 }
 
 mk () {
+	local NAME OFFS THESRC
+
 	NAME=$1
 	OFFS=$2
 	THESRC=$3.S
@@ -93,6 +95,8 @@ EOJ
 }
 
 mks () {
+	local NAME OFFS THESRC
+
 	NAME=$1
 	OFFS=$2
 	THESRC=$3.S



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:17:24 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Use local for shell functions.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:17:08 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/arch/m68060/makeas.sh: Indent sh blocks.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:17:08 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/arch/m68060/makeas.sh: Indent sh blocks.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.10 src/lib/libm/arch/m68060/makeas.sh:1.11
--- src/lib/libm/arch/m68060/makeas.sh:1.10	Tue May  7 21:14:12 2024
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 22:17:08 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp $
+# $NetBSD: makeas.sh,v 1.11 2024/05/07 22:17:08 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # All rights reserved.
@@ -25,7 +25,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-RCSID='$NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp $'
+RCSID='$NetBSD: makeas.sh,v 1.11 2024/05/07 22:17:08 riastradh Exp $'
 
 RCSID=${RCSID#\$}
 RCSID=${RCSID% \$}
@@ -34,8 +34,8 @@ REALCODE=fplsp_wrap.S
 FILELIST=Makefile.list
 
 dummy () {
-while [ X$1 != X ]; do
-/bin/cat > $1.S << EOM
+	while [ X$1 != X ]; do
+		/bin/cat > $1.S << EOM
 /* \$NetBSD\$ */
 
 /*
@@ -47,9 +47,9 @@ while [ X$1 != X ]; do
  *
  */
 EOM
-echo -n " " $1.S >> $FILELIST
-shift
-done
+		echo -n " " $1.S >> $FILELIST
+		shift
+	done
 }
 
 linebreak () {
@@ -58,13 +58,13 @@ linebreak () {
 }
 
 mk () {
-NAME=$1
-OFFS=$2
-THESRC=$3.S
-shift; shift; shift
+	NAME=$1
+	OFFS=$2
+	THESRC=$3.S
+	shift; shift; shift
 
-echo -n " " ${THESRC} >> $FILELIST
-/bin/cat > ${THESRC} << EOJ
+	echo -n " " ${THESRC} >> $FILELIST
+	/bin/cat > ${THESRC} << EOJ
 /* \$NetBSD\$ */
 
 /*
@@ -89,17 +89,17 @@ ENTRY($NAME)
 	rts
 #endif
 EOJ
-dummy $*
+	dummy $*
 }
 
 mks () {
-NAME=$1
-OFFS=$2
-THESRC=$3.S
-shift; shift; shift
+	NAME=$1
+	OFFS=$2
+	THESRC=$3.S
+	shift; shift; shift
 
-echo -n " " ${THESRC} >> $FILELIST
-/bin/cat > ${THESRC} << EOJ
+	echo -n " " ${THESRC} >> $FILELIST
+	/bin/cat > ${THESRC} << EOJ
 /* \$NetBSD\$ */
 
 /*
@@ -122,7 +122,7 @@ ENTRY($NAME)
 	rts
 #endif
 EOJ
-dummy $*
+	dummy $*
 }
 
 /bin/cat > ${REALCODE} << EOJ



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:18:47 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: Makefile.list e_acos.S e_acosf.S e_asin.S
e_asinf.S e_atanh.S e_atanhf.S e_cosh.S e_coshf.S e_exp.S e_expf.S
e_log.S e_log10.S e_log10f.S e_logf.S e_sinh.S e_sinhf.S e_sqrt.S
e_sqrtf.S fplsp_wrap.S k_tan.S k_tanf.S s_atan.S s_atanf.S s_cos.S
s_cosf.S s_expm1.S s_expm1f.S s_log1p.S s_log1pf.S s_logb.S
s_logbf.S s_sin.S s_sinf.S s_tan.S s_tanf.S s_tanh.S s_tanhf.S

Log Message:
lib/libm/arch/m68060: regen


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/m68060/Makefile.list \
src/lib/libm/arch/m68060/e_acos.S src/lib/libm/arch/m68060/e_acosf.S \
src/lib/libm/arch/m68060/e_asin.S src/lib/libm/arch/m68060/e_asinf.S \
src/lib/libm/arch/m68060/e_atanh.S src/lib/libm/arch/m68060/e_atanhf.S \
src/lib/libm/arch/m68060/e_cosh.S src/lib/libm/arch/m68060/e_coshf.S \
src/lib/libm/arch/m68060/e_exp.S src/lib/libm/arch/m68060/e_expf.S \
src/lib/libm/arch/m68060/e_log.S src/lib/libm/arch/m68060/e_log10.S \
src/lib/libm/arch/m68060/e_log10f.S src/lib/libm/arch/m68060/e_logf.S \
src/lib/libm/arch/m68060/e_sinh.S src/lib/libm/arch/m68060/e_sinhf.S \
src/lib/libm/arch/m68060/e_sqrt.S src/lib/libm/arch/m68060/e_sqrtf.S \
src/lib/libm/arch/m68060/k_tan.S src/lib/libm/arch/m68060/k_tanf.S \
src/lib/libm/arch/m68060/s_atan.S src/lib/libm/arch/m68060/s_atanf.S \
src/lib/libm/arch/m68060/s_cos.S src/lib/libm/arch/m68060/s_cosf.S \
src/lib/libm/arch/m68060/s_expm1.S src/lib/libm/arch/m68060/s_expm1f.S \
src/lib/libm/arch/m68060/s_log1p.S src/lib/libm/arch/m68060/s_log1pf.S \
src/lib/libm/arch/m68060/s_logb.S src/lib/libm/arch/m68060/s_logbf.S \
src/lib/libm/arch/m68060/s_sin.S src/lib/libm/arch/m68060/s_sinf.S \
src/lib/libm/arch/m68060/s_tan.S src/lib/libm/arch/m68060/s_tanf.S \
src/lib/libm/arch/m68060/s_tanh.S src/lib/libm/arch/m68060/s_tanhf.S
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/m68060/fplsp_wrap.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/m68060/Makefile.list
diff -u src/lib/libm/arch/m68060/Makefile.list:1.6 src/lib/libm/arch/m68060/Makefile.list:1.7
--- src/lib/libm/arch/m68060/Makefile.list:1.6	Wed Jan  6 14:11:53 2010
+++ src/lib/libm/arch/m68060/Makefile.list	Tue May  7 21:18:47 2024
@@ -1,9 +1,13 @@
-# $NetBSD: Makefile.list,v 1.6 2010/01/06 14:11:53 phx Exp $
+# $NetBSD: Makefile.list,v 1.7 2024/05/07 21:18:47 riastradh Exp $
 
 #
 # list of M68060 architecture dependent files for libm.
 #
-# Created by a script. Do not edit manually!
+# Created by:
+#
+#	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp
+#
+# Do not edit manually!
 #
 
 ARCH_SRCS =  e_acosf.S  e_acos.S  e_asinf.S  e_asin.S \
Index: src/lib/libm/arch/m68060/e_acos.S
diff -u src/lib/libm/arch/m68060/e_acos.S:1.6 src/lib/libm/arch/m68060/e_acos.S:1.7
--- src/lib/libm/arch/m68060/e_acos.S:1.6	Wed Jan  6 14:11:53 2010
+++ src/lib/libm/arch/m68060/e_acos.S	Tue May  7 21:18:47 2024
@@ -1,8 +1,10 @@
-/* $NetBSD: e_acos.S,v 1.6 2010/01/06 14:11:53 phx Exp $ */
+/* $NetBSD: e_acos.S,v 1.7 2024/05/07 21:18:47 riastradh Exp $ */
 
 /*
  * FPLSP wrapper for __ieee754_acos
- * DO NOT EDIT - this file is automatically generated.
+ * DO NOT EDIT - this file is automatically generated by:
+ *
+ *	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp
  */
 
 #include 
Index: src/lib/libm/arch/m68060/e_acosf.S
diff -u src/lib/libm/arch/m68060/e_acosf.S:1.6 src/lib/libm/arch/m68060/e_acosf.S:1.7
--- src/lib/libm/arch/m68060/e_acosf.S:1.6	Wed Jan  6 14:11:53 2010
+++ src/lib/libm/arch/m68060/e_acosf.S	Tue May  7 21:18:47 2024
@@ -1,8 +1,10 @@
-/* $NetBSD: e_acosf.S,v 1.6 2010/01/06 14:11:53 phx Exp $ */
+/* $NetBSD: e_acosf.S,v 1.7 2024/05/07 21:18:47 riastradh Exp $ */
 
 /*
  * FPLSP wrapper for __ieee754_acosf
- * DO NOT EDIT - this file is automatically generated.
+ * DO NOT EDIT - this file is automatically generated by:
+ *
+ *	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp
  */
 
 #include 
Index: src/lib/libm/arch/m68060/e_asin.S
diff -u src/lib/libm/arch/m68060/e_asin.S:1.6 src/lib/libm/arch/m68060/e_asin.S:1.7
--- src/lib/libm/arch/m68060/e_asin.S:1.6	Wed Jan  6 14:11:53 2010
+++ src/lib/libm/arch/m68060/e_asin.S	Tue May  7 21:18:47 2024
@@ -1,8 +1,10 @@
-/* $NetBSD: e_asin.S,v 1.6 2010/01/06 14:11:53 phx Exp $ */
+/* $NetBSD: e_asin.S,v 1.7 2024/05/07 21:18:47 riastradh Exp $ */
 
 /*
  * FPLSP wrapper for __ieee754_asin
- * DO NOT EDIT - this file is automatically generated.
+ * DO NOT EDIT - this file is automatically generated by:
+ *
+ *	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp
  */
 
 #include 
Index: src/lib/libm/arch/m68060/e_asinf.S
diff -u src/lib/libm/arch/m68060/e_asinf.S:1.6 

CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:18:47 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: Makefile.list e_acos.S e_acosf.S e_asin.S
e_asinf.S e_atanh.S e_atanhf.S e_cosh.S e_coshf.S e_exp.S e_expf.S
e_log.S e_log10.S e_log10f.S e_logf.S e_sinh.S e_sinhf.S e_sqrt.S
e_sqrtf.S fplsp_wrap.S k_tan.S k_tanf.S s_atan.S s_atanf.S s_cos.S
s_cosf.S s_expm1.S s_expm1f.S s_log1p.S s_log1pf.S s_logb.S
s_logbf.S s_sin.S s_sinf.S s_tan.S s_tanf.S s_tanh.S s_tanhf.S

Log Message:
lib/libm/arch/m68060: regen


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/m68060/Makefile.list \
src/lib/libm/arch/m68060/e_acos.S src/lib/libm/arch/m68060/e_acosf.S \
src/lib/libm/arch/m68060/e_asin.S src/lib/libm/arch/m68060/e_asinf.S \
src/lib/libm/arch/m68060/e_atanh.S src/lib/libm/arch/m68060/e_atanhf.S \
src/lib/libm/arch/m68060/e_cosh.S src/lib/libm/arch/m68060/e_coshf.S \
src/lib/libm/arch/m68060/e_exp.S src/lib/libm/arch/m68060/e_expf.S \
src/lib/libm/arch/m68060/e_log.S src/lib/libm/arch/m68060/e_log10.S \
src/lib/libm/arch/m68060/e_log10f.S src/lib/libm/arch/m68060/e_logf.S \
src/lib/libm/arch/m68060/e_sinh.S src/lib/libm/arch/m68060/e_sinhf.S \
src/lib/libm/arch/m68060/e_sqrt.S src/lib/libm/arch/m68060/e_sqrtf.S \
src/lib/libm/arch/m68060/k_tan.S src/lib/libm/arch/m68060/k_tanf.S \
src/lib/libm/arch/m68060/s_atan.S src/lib/libm/arch/m68060/s_atanf.S \
src/lib/libm/arch/m68060/s_cos.S src/lib/libm/arch/m68060/s_cosf.S \
src/lib/libm/arch/m68060/s_expm1.S src/lib/libm/arch/m68060/s_expm1f.S \
src/lib/libm/arch/m68060/s_log1p.S src/lib/libm/arch/m68060/s_log1pf.S \
src/lib/libm/arch/m68060/s_logb.S src/lib/libm/arch/m68060/s_logbf.S \
src/lib/libm/arch/m68060/s_sin.S src/lib/libm/arch/m68060/s_sinf.S \
src/lib/libm/arch/m68060/s_tan.S src/lib/libm/arch/m68060/s_tanf.S \
src/lib/libm/arch/m68060/s_tanh.S src/lib/libm/arch/m68060/s_tanhf.S
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/m68060/fplsp_wrap.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:14:12 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/arch/m68060/makeas.sh: Strip the $ when emitting RCS id.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.9 src/lib/libm/arch/m68060/makeas.sh:1.10
--- src/lib/libm/arch/m68060/makeas.sh:1.9	Tue May  7 21:05:47 2024
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 21:14:12 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.9 2024/05/07 21:05:47 riastradh Exp $
+# $NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # All rights reserved.
@@ -25,7 +25,10 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-RCSID='$NetBSD: makeas.sh,v 1.9 2024/05/07 21:05:47 riastradh Exp $'
+RCSID='$NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp $'
+
+RCSID=${RCSID#\$}
+RCSID=${RCSID% \$}
 
 REALCODE=fplsp_wrap.S
 FILELIST=Makefile.list



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:14:12 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/arch/m68060/makeas.sh: Strip the $ when emitting RCS id.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:11:24 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: Makefile

Log Message:
libm/arch/m68060/Makefile: bsd.sys.mk -> bsd.host.mk

Somewhat belatedly, after bsd.sys.mk was forbidden to use directly
from Makefiles back in 2014.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/arch/m68060/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/m68060/Makefile
diff -u src/lib/libm/arch/m68060/Makefile:1.4 src/lib/libm/arch/m68060/Makefile:1.5
--- src/lib/libm/arch/m68060/Makefile:1.4	Sun Oct 26 07:25:34 2003
+++ src/lib/libm/arch/m68060/Makefile	Tue May  7 21:11:24 2024
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2003/10/26 07:25:34 lukem Exp $
+# $NetBSD: Makefile,v 1.5 2024/05/07 21:11:24 riastradh Exp $
 
 .include 
-.include 		# for HOST_SH
+.include 		# for HOST_SH
 
 M060SP=		${NETBSDSRCDIR}/sys/arch/m68k/060sp
 ASM2GAS=	${M060SP}/asm2gas



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:11:24 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: Makefile

Log Message:
libm/arch/m68060/Makefile: bsd.sys.mk -> bsd.host.mk

Somewhat belatedly, after bsd.sys.mk was forbidden to use directly
from Makefiles back in 2014.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/arch/m68060/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:05:47 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
libm/arch/m68060/makeas.sh: Tag output with makeas.sh RCS id.

No functional change intended to the output -- only changes are to
comments.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:05:47 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
libm/arch/m68060/makeas.sh: Tag output with makeas.sh RCS id.

No functional change intended to the output -- only changes are to
comments.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/arch/m68060/makeas.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.8 src/lib/libm/arch/m68060/makeas.sh:1.9
--- src/lib/libm/arch/m68060/makeas.sh:1.8	Wed Jan  6 14:10:57 2010
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 21:05:47 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.8 2010/01/06 14:10:57 phx Exp $
+# $NetBSD: makeas.sh,v 1.9 2024/05/07 21:05:47 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # All rights reserved.
@@ -25,7 +25,7 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-
+RCSID='$NetBSD: makeas.sh,v 1.9 2024/05/07 21:05:47 riastradh Exp $'
 
 REALCODE=fplsp_wrap.S
 FILELIST=Makefile.list
@@ -38,7 +38,9 @@ while [ X$1 != X ]; do
 /*
  * Dummy file. Real code is elsewhere.
  *
- * DO NOT EDIT - this file is automatically generated.
+ * DO NOT EDIT - this file is automatically generated by;
+ *
+ *	$RCSID
  *
  */
 EOM
@@ -64,7 +66,9 @@ echo -n " " ${THESRC} >> $FILELIST
 
 /*
  * FPLSP wrapper for $NAME
- * DO NOT EDIT - this file is automatically generated.
+ * DO NOT EDIT - this file is automatically generated by:
+ *
+ *	$RCSID
  */
 
 #include 
@@ -97,7 +101,9 @@ echo -n " " ${THESRC} >> $FILELIST
 
 /*
  * FPLSP wrapper for $NAME
- * DO NOT EDIT - this file is automatically generated.
+ * DO NOT EDIT - this file is automatically generated by:
+ *
+ *	$RCSID
  */
 
 #include 
@@ -122,7 +128,9 @@ dummy $*
 /*
  * FPLSP wrapper.
  *
- * DO NOT EDIT - this file is automatically generated!
+ * DO NOT EDIT - this file is automatically generated by:
+ *
+ *	$RCSID
  */
 
 #include 
@@ -135,7 +143,11 @@ EOJ
 #
 # list of M68060 architecture dependent files for libm.
 #
-# Created by a script. Do not edit manually!
+# Created by:
+#
+#	$RCSID
+#
+# Do not edit manually!
 #
 
 EOJ



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 20:58:34 UTC 2024

Added Files:
src/lib/libm: m.aarch64.expsym m.alpha.expsym m.arm.expsym
m.hppa.expsym m.i386.expsym m.ia64.expsym m.mips.expsym
m.powerpc.expsym m.riscv.expsym m.sparc.expsym m.sparc64.expsym
m.vax.expsym m.x86_64.expsym

Log Message:
libm: Memorialize expected symbols on various architectures.

This will reduce the risk of accidentally adding or deleting the
wrong symbols while fixing the aliases.

(This is all the architectures I have a build tree for handy; can add
other architectures like m68k later.)


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.aarch64.expsym \
src/lib/libm/m.alpha.expsym src/lib/libm/m.arm.expsym \
src/lib/libm/m.hppa.expsym src/lib/libm/m.i386.expsym \
src/lib/libm/m.ia64.expsym src/lib/libm/m.mips.expsym \
src/lib/libm/m.powerpc.expsym src/lib/libm/m.riscv.expsym \
src/lib/libm/m.sparc.expsym src/lib/libm/m.sparc64.expsym \
src/lib/libm/m.vax.expsym src/lib/libm/m.x86_64.expsym

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/lib/libm/m.aarch64.expsym
diff -u /dev/null src/lib/libm/m.aarch64.expsym:1.1
--- /dev/null	Tue May  7 20:58:34 2024
+++ src/lib/libm/m.aarch64.expsym	Tue May  7 20:58:33 2024
@@ -0,0 +1,507 @@
+_ItL_aT
+_ItL_atanhi
+_ItL_atanlo
+_ItL_pS0
+_ItL_pS1
+_ItL_pS2
+_ItL_pS3
+_ItL_pS4
+_ItL_pS5
+_ItL_pS6
+_ItL_pS7
+_ItL_pS8
+_ItL_pS9
+_ItL_pi_lo
+_ItL_qS1
+_ItL_qS2
+_ItL_qS3
+_ItL_qS4
+_ItL_qS5
+_ItL_qS6
+_ItL_qS7
+_ItL_qS8
+_ItL_qS9
+__bss_end__
+__bss_start__
+__c99_cabs
+__c99_cabsf
+__c99_cabsl
+__divdc3
+__divsc3
+__divtc3
+__divxc3
+__end__
+__exp__D
+__fe_dfl_env
+__ieee754_acos
+__ieee754_acosf
+__ieee754_acosh
+__ieee754_acoshf
+__ieee754_asin
+__ieee754_asinf
+__ieee754_atan2
+__ieee754_atan2f
+__ieee754_atanh
+__ieee754_atanhf
+__ieee754_cosh
+__ieee754_coshf
+__ieee754_exp
+__ieee754_expf
+__ieee754_fmod
+__ieee754_fmodf
+__ieee754_fmodl
+__ieee754_hypot
+__ieee754_hypotf
+__ieee754_j0
+__ieee754_j0f
+__ieee754_j1
+__ieee754_j1f
+__ieee754_jn
+__ieee754_jnf
+__ieee754_lgamma_r
+__ieee754_lgammaf_r
+__ieee754_log
+__ieee754_log10
+__ieee754_log10f
+__ieee754_log2
+__ieee754_log2f
+__ieee754_logf
+__ieee754_pow
+__ieee754_powf
+__ieee754_rem_pio2
+__ieee754_rem_pio2f
+__ieee754_remainder
+__ieee754_remainderf
+__ieee754_scalb
+__ieee754_scalbf
+__ieee754_sinh
+__ieee754_sinhf
+__ieee754_sqrt
+__ieee754_sqrtf
+__ieee754_sqrtl
+__ieee754_y0
+__ieee754_y0f
+__ieee754_y1
+__ieee754_y1f
+__ieee754_yn
+__ieee754_ynf
+__kernel_cos
+__kernel_cosf
+__kernel_cosl
+__kernel_rem_pio2
+__kernel_rem_pio2f
+__kernel_sin
+__kernel_sinf
+__kernel_sinl
+__kernel_standard
+__kernel_tan
+__kernel_tanf
+__kernel_tanl
+__log__D
+__muldc3
+__mulsc3
+__multc3
+__mulxc3
+_acoshl
+_acosl
+_asin
+_asinf
+_asinhl
+_asinl
+_atan2
+_atan2f
+_atan2l
+_atanhl
+_atanl
+_bss_end__
+_casin
+_casinf
+_casinl
+_catan
+_catanf
+_catanl
+_cbrtl
+_cchsh
+_cchshf
+_cchshl
+_ceill
+_copysignl
+_cosh
+_coshf
+_coshl
+_cosl
+_cospi
+_cospif
+_cospil
+_ctans
+_ctansf
+_ctansl
+_end
+_erfcl
+_erfl
+_exp
+_exp2l
+_expf
+_expl
+_expm1l
+_fdlib_version
+_feclearexcept
+_fedisableexcept
+_feenableexcept
+_fegetenv
+_fegetexcept
+_fegetexceptflag
+_fegetround
+_feholdexcept
+_feraiseexcept
+_fesetenv
+_fesetexceptflag
+_fesetround
+_fetestexcept
+_feupdateenv
+_floorl
+_fma
+_fmaf
+_fmax
+_fmaxf
+_fmin
+_fminf
+_fmodl
+_hypot
+_hypotf
+_hypotl
+_lgammal
+_lgammal_r
+_log
+_log10l
+_log1pl
+_log2l
+_logf
+_logl
+_modfl
+_powl
+_redupi
+_redupif
+_redupil
+_remquo
+_remquof
+_remquol
+_roundl
+_scalbln
+_scalblnf
+_scalblnl
+_scalbn
+_scalbnf
+_scalbnl
+_sincos
+_sincosf
+_sincosl
+_sinh
+_sinhf
+_sinhl
+_sinl
+_sinpi
+_sinpif
+_sinpil
+_sqrtl
+_tanhl
+_tanl
+_tanpi
+_tanpif
+_tanpil
+_tgammal
+_truncl
+acos
+acosf
+acosh
+acoshf
+acoshl
+acosl
+asin
+asinf
+asinh
+asinhf
+asinhl
+asinl
+atan
+atan2
+atan2f
+atan2l
+atanf
+atanh
+atanhf
+atanhl
+atanl
+cabs
+cabsf
+cacos
+cacosf
+cacosh
+cacoshf
+cacoshl
+cacosl
+carg
+cargf
+cargl
+casin
+casinf
+casinh
+casinhf
+casinhl
+casinl
+catan
+catanf
+catanh
+catanhf
+catanhl
+catanl
+cbrt
+cbrtf
+cbrtl
+ccos
+ccosf
+ccosh
+ccoshf
+ccoshl
+ccosl
+ceil
+ceilf
+ceill
+cexp
+cexpf
+cexpl
+cimag
+cimagf
+cimagl
+clog
+clogf
+clogl
+conj
+conjf
+conjl
+copysign
+copysignf
+copysignl
+cos
+cosf
+cosh
+coshf
+coshl
+cosl
+cospi
+cospif
+cospil
+cpow
+cpowf
+cpowl
+cproj
+cprojf
+cprojl
+creal
+crealf
+creall
+csin
+csinf
+csinh
+csinhf
+csinhl
+csinl
+csqrt
+csqrtf
+csqrtl
+ctan
+ctanf
+ctanh
+ctanhf
+ctanhl
+ctanl
+drem
+dremf
+erf
+erfc
+erfcf
+erfcl
+erff
+erfl
+exp
+exp2
+exp2f
+exp2l
+expf
+expl
+expm1
+expm1f
+expm1l
+fabsf
+fabsl
+fdim
+fdimf
+fdiml
+feclearexcept
+fedisableexcept
+feenableexcept
+fegetenv
+fegetexcept
+fegetexceptflag
+fegetround
+feholdexcept
+feraiseexcept
+fesetenv

CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 20:58:34 UTC 2024

Added Files:
src/lib/libm: m.aarch64.expsym m.alpha.expsym m.arm.expsym
m.hppa.expsym m.i386.expsym m.ia64.expsym m.mips.expsym
m.powerpc.expsym m.riscv.expsym m.sparc.expsym m.sparc64.expsym
m.vax.expsym m.x86_64.expsym

Log Message:
libm: Memorialize expected symbols on various architectures.

This will reduce the risk of accidentally adding or deleting the
wrong symbols while fixing the aliases.

(This is all the architectures I have a build tree for handy; can add
other architectures like m68k later.)


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.aarch64.expsym \
src/lib/libm/m.alpha.expsym src/lib/libm/m.arm.expsym \
src/lib/libm/m.hppa.expsym src/lib/libm/m.i386.expsym \
src/lib/libm/m.ia64.expsym src/lib/libm/m.mips.expsym \
src/lib/libm/m.powerpc.expsym src/lib/libm/m.riscv.expsym \
src/lib/libm/m.sparc.expsym src/lib/libm/m.sparc64.expsym \
src/lib/libm/m.vax.expsym src/lib/libm/m.x86_64.expsym

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/vax

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 15:49:33 UTC 2024

Modified Files:
src/lib/libm/arch/vax: n_atan2.S

Log Message:
libm/arch/vax: Expose atan2l.

PR port-vax/57881: vax libm is missing various symbols


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/arch/vax/n_atan2.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/vax/n_atan2.S
diff -u src/lib/libm/arch/vax/n_atan2.S:1.10 src/lib/libm/arch/vax/n_atan2.S:1.11
--- src/lib/libm/arch/vax/n_atan2.S:1.10	Tue May  7 15:15:09 2024
+++ src/lib/libm/arch/vax/n_atan2.S	Tue May  7 15:49:33 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: n_atan2.S,v 1.10 2024/05/07 15:15:09 riastradh Exp $	*/
+/*	$NetBSD: n_atan2.S,v 1.11 2024/05/07 15:49:33 riastradh Exp $	*/
 /*
  * Copyright (c) 1985, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -72,9 +72,7 @@
  *	atan2(y,x) returns the exact ARG(x+iy) nearly rounded.
  */
 
-#ifdef WEAK_ALIAS
 WEAK_ALIAS(atan2f, _atan2f)
-#endif
 
 ENTRY(_atan2f, 0)
 	cvtfd	4(%ap),-(%sp)
@@ -83,11 +81,10 @@ ENTRY(_atan2f, 0)
 	ret
 END(_atan2f)
 
-#ifdef WEAK_ALIAS
 WEAK_ALIAS(atan2, _atan2)
-WEAK_ALIAS(_atan2l, _atan2)
-#endif
+WEAK_ALIAS(atan2l, _atan2l)
 
+STRONG_ALIAS(_atan2l, _atan2)
 ENTRY(_atan2, 0x0fc0)
 	movq	4(%ap),%r2		# %r2 = y
 	movq	12(%ap),%r4		# %r4 = x



CVS commit: src/lib/libm/arch/vax

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 15:49:33 UTC 2024

Modified Files:
src/lib/libm/arch/vax: n_atan2.S

Log Message:
libm/arch/vax: Expose atan2l.

PR port-vax/57881: vax libm is missing various symbols


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/arch/vax/n_atan2.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/vax

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 15:15:31 UTC 2024

Modified Files:
src/lib/libm/arch/vax: n_cabs.S n_cbrt.S n_scalbn.S

Log Message:
libm/arch/vax: Use STRONG_ALIAS, not ALTENTRY.

STRONG_ALIAS copies the symbol size and type, so it avoids warnings
like this:

/home/riastradh/netbsd/10/obj.vax/tooldir/bin/../lib/gcc/vax--netbsdelf/10.5.0/../../../../vax--netbsdelf/bin/ld:
 warning: type and size of dynamic symbol `ldexpl' are not defined


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/arch/vax/n_cabs.S \
src/lib/libm/arch/vax/n_cbrt.S
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/vax/n_scalbn.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/vax

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 15:15:31 UTC 2024

Modified Files:
src/lib/libm/arch/vax: n_cabs.S n_cbrt.S n_scalbn.S

Log Message:
libm/arch/vax: Use STRONG_ALIAS, not ALTENTRY.

STRONG_ALIAS copies the symbol size and type, so it avoids warnings
like this:

/home/riastradh/netbsd/10/obj.vax/tooldir/bin/../lib/gcc/vax--netbsdelf/10.5.0/../../../../vax--netbsdelf/bin/ld:
 warning: type and size of dynamic symbol `ldexpl' are not defined


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/arch/vax/n_cabs.S \
src/lib/libm/arch/vax/n_cbrt.S
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/vax/n_scalbn.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/vax/n_cabs.S
diff -u src/lib/libm/arch/vax/n_cabs.S:1.8 src/lib/libm/arch/vax/n_cabs.S:1.9
--- src/lib/libm/arch/vax/n_cabs.S:1.8	Tue May  7 15:15:09 2024
+++ src/lib/libm/arch/vax/n_cabs.S	Tue May  7 15:15:31 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: n_cabs.S,v 1.8 2024/05/07 15:15:09 riastradh Exp $	*/
+/*	$NetBSD: n_cabs.S,v 1.9 2024/05/07 15:15:31 riastradh Exp $	*/
 /*
  * Copyright (c) 1985, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -60,7 +60,7 @@ WEAK_ALIAS(hypotl, _hypot)
 WEAK_ALIAS(_hypotl, _hypot)
 #endif
 
-ALTENTRY(cabs)
+STRONG_ALIAS(_cabs, _hypot)
 ENTRY(_hypot, 0x8040) 		# save %r6, enable floating overflow
 	movq	4(%ap),%r0	# %r0:1 = x
 	movq	12(%ap),%r2	# %r2:3 = y
Index: src/lib/libm/arch/vax/n_cbrt.S
diff -u src/lib/libm/arch/vax/n_cbrt.S:1.8 src/lib/libm/arch/vax/n_cbrt.S:1.9
--- src/lib/libm/arch/vax/n_cbrt.S:1.8	Tue May  7 15:15:09 2024
+++ src/lib/libm/arch/vax/n_cbrt.S	Tue May  7 15:15:31 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: n_cbrt.S,v 1.8 2024/05/07 15:15:09 riastradh Exp $	*/
+/*	$NetBSD: n_cbrt.S,v 1.9 2024/05/07 15:15:31 riastradh Exp $	*/
 /*
  * Copyright (c) 1985, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -51,7 +51,7 @@ END(cbrtf)
 WEAK_ALIAS(cbrtl, cbrt)
 #endif
 
-ALTENTRY(cbrt)
+STRONG_ALIAS(cbrt, d_cbrt)
 ENTRY(d_cbrt, 0x00c0)		# save %r6 & %r7
 	movq	4(%ap),%r0	# %r0 = argument x
 	jbr 	dcbrt2

Index: src/lib/libm/arch/vax/n_scalbn.S
diff -u src/lib/libm/arch/vax/n_scalbn.S:1.7 src/lib/libm/arch/vax/n_scalbn.S:1.8
--- src/lib/libm/arch/vax/n_scalbn.S:1.7	Tue May  7 15:15:10 2024
+++ src/lib/libm/arch/vax/n_scalbn.S	Tue May  7 15:15:31 2024
@@ -30,7 +30,7 @@
 #include 
 #include 
 
-RCSID("$NetBSD: n_scalbn.S,v 1.7 2024/05/07 15:15:10 riastradh Exp $")
+RCSID("$NetBSD: n_scalbn.S,v 1.8 2024/05/07 15:15:31 riastradh Exp $")
 
 WEAK_ALIAS(scalbn,_scalbn)
 WEAK_ALIAS(scalbnl,_scalbnl)
@@ -45,7 +45,7 @@ ENTRY(_scalbnf, 0)
 	jr	1f
 END(_scalbnf)
 
-ALTENTRY(_scalbnl)
+STRONG_ALIAS(_scalbnl, _scalbn)
 ENTRY(_scalbn, 0)
 	movd	4(%ap), %r0
 	movl	12(%ap), %r2



CVS commit: src/lib/libm/arch/vax

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 15:15:10 UTC 2024

Modified Files:
src/lib/libm/arch/vax: n_argred.S n_atan2.S n_cabs.S n_cbrt.S
n_infnan.S n_scalbn.S n_sqrt.S n_support.S

Log Message:
libm/arch/vax: Use END to delimit symbol definitions.

This way we get sizes and, likely, slightly better debug info about
PCs inside these symbols.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/arch/vax/n_argred.S \
src/lib/libm/arch/vax/n_atan2.S
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/vax/n_cabs.S \
src/lib/libm/arch/vax/n_cbrt.S
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/vax/n_infnan.S \
src/lib/libm/arch/vax/n_scalbn.S
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/arch/vax/n_sqrt.S
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/arch/vax/n_support.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/vax/n_argred.S
diff -u src/lib/libm/arch/vax/n_argred.S:1.9 src/lib/libm/arch/vax/n_argred.S:1.10
--- src/lib/libm/arch/vax/n_argred.S:1.9	Thu Apr 19 00:37:20 2007
+++ src/lib/libm/arch/vax/n_argred.S	Tue May  7 15:15:09 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: n_argred.S,v 1.9 2007/04/19 00:37:20 matt Exp $	*/
+/*	$NetBSD: n_argred.S,v 1.10 2024/05/07 15:15:09 riastradh Exp $	*/
 /*
  * Copyright (c) 1985, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -67,6 +67,7 @@ small_arg:
  *  	   %r3  contains a F-format extension to the reduced argument;
  *  %r4  contains a  0 or 1  corresponding to a  sin or cos  entry.
  */
+END(__libm_argred)
 
 	.hidden	__libm_sincos
 ENTRY(__libm_sincos, 0)
@@ -120,6 +121,7 @@ done:
 	mnegd	%r0,%r0
 even:
 	rsb
+END(__libm_sincos)
 
 #ifdef __ELF__
 	.section .rodata
Index: src/lib/libm/arch/vax/n_atan2.S
diff -u src/lib/libm/arch/vax/n_atan2.S:1.9 src/lib/libm/arch/vax/n_atan2.S:1.10
--- src/lib/libm/arch/vax/n_atan2.S:1.9	Fri Oct 10 20:58:09 2014
+++ src/lib/libm/arch/vax/n_atan2.S	Tue May  7 15:15:09 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: n_atan2.S,v 1.9 2014/10/10 20:58:09 martin Exp $	*/
+/*	$NetBSD: n_atan2.S,v 1.10 2024/05/07 15:15:09 riastradh Exp $	*/
 /*
  * Copyright (c) 1985, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -81,6 +81,7 @@ ENTRY(_atan2f, 0)
 	calls	$2,_C_LABEL(_atan2)
 	cvtdf	%r0,%r0
 	ret
+END(_atan2f)
 
 #ifdef WEAK_ALIAS
 WEAK_ALIAS(atan2, _atan2)
@@ -211,6 +212,7 @@ pio2:
 resop:
 	movq	$0x8000,%r0		# propagate the reserved operand
 	ret
+END(_atan2)
 
 	_ALIGN_TEXT
 ptable:

Index: src/lib/libm/arch/vax/n_cabs.S
diff -u src/lib/libm/arch/vax/n_cabs.S:1.7 src/lib/libm/arch/vax/n_cabs.S:1.8
--- src/lib/libm/arch/vax/n_cabs.S:1.7	Fri Oct 10 20:58:09 2014
+++ src/lib/libm/arch/vax/n_cabs.S	Tue May  7 15:15:09 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: n_cabs.S,v 1.7 2014/10/10 20:58:09 martin Exp $	*/
+/*	$NetBSD: n_cabs.S,v 1.8 2024/05/07 15:15:09 riastradh Exp $	*/
 /*
  * Copyright (c) 1985, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -52,6 +52,7 @@ ENTRY(_hypotf, 0)
 	calls	$2,_C_LABEL(_hypot)
 	cvtdf	%r0,%r0
 	ret
+END(_hypotf)
 
 #ifdef WEAK_ALIAS
 WEAK_ALIAS(hypot, _hypot)
@@ -64,6 +65,7 @@ ENTRY(_hypot, 0x8040) 		# save %r6, enab
 	movq	4(%ap),%r0	# %r0:1 = x
 	movq	12(%ap),%r2	# %r2:3 = y
 	jbr	cabs2
+END(_hypot)
 
 /*	entry for Fortran use, call by:   d = abs(z) */
 ENTRY(z_abs, 0x8040)		# save %r6, enable floating overflow
@@ -89,6 +91,7 @@ cont:
 	addd2	%r0,%r0		# overflow; %r0 is half of true abs value
 return:
 	ret
+END(z_abs)
 
 ENTRY(__libm_cdabs_r6,0)	# ENTRY POINT for cdsqrt
 # calculates a scaled (factor in %r6)
@@ -138,3 +141,4 @@ ordered:
 # %r0:1 = dsqrt(x^2+y^2)/2^%r6
 retsb:
 	rsb			# error < 0.86 ulp
+END(__libm_cdabs_r6)
Index: src/lib/libm/arch/vax/n_cbrt.S
diff -u src/lib/libm/arch/vax/n_cbrt.S:1.7 src/lib/libm/arch/vax/n_cbrt.S:1.8
--- src/lib/libm/arch/vax/n_cbrt.S:1.7	Sun Nov 24 15:12:10 2013
+++ src/lib/libm/arch/vax/n_cbrt.S	Tue May  7 15:15:09 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: n_cbrt.S,v 1.7 2013/11/24 15:12:10 martin Exp $	*/
+/*	$NetBSD: n_cbrt.S,v 1.8 2024/05/07 15:15:09 riastradh Exp $	*/
 /*
  * Copyright (c) 1985, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -45,6 +45,7 @@ ENTRY(cbrtf, 0)
 	calls	$2,_C_LABEL(cbrt)
 	cvtdf	%r0,%r0
 	ret
+END(cbrtf)
 
 #ifdef WEAK_ALIAS
 WEAK_ALIAS(cbrtl, cbrt)
@@ -54,6 +55,7 @@ ALTENTRY(cbrt)
 ENTRY(d_cbrt, 0x00c0)		# save %r6 & %r7
 	movq	4(%ap),%r0	# %r0 = argument x
 	jbr 	dcbrt2
+END(d_cbrt)
 
 ENTRY(dcbrt_, 0x00c0)		# save %r6 & %r7
 	movq	*4(%ap),%r0	# %r0 = argument x
@@ -90,6 +92,7 @@ dcbrt2:	bicw3	$0x807f,%r0,%r2	# biased e
 	bisw2	%ap,%r0		# restore the sign bit
 return:
 	ret			# error less than 0.667 ulps
+END(dcbrt_)
 
 	_ALIGN_TEXT
 B :	.long		 721142941		# (86-0.03306235651)*(2^23)

Index: src/lib/libm/arch/vax/n_infnan.S
diff -u 

CVS commit: src/lib/libm/arch/vax

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 15:15:10 UTC 2024

Modified Files:
src/lib/libm/arch/vax: n_argred.S n_atan2.S n_cabs.S n_cbrt.S
n_infnan.S n_scalbn.S n_sqrt.S n_support.S

Log Message:
libm/arch/vax: Use END to delimit symbol definitions.

This way we get sizes and, likely, slightly better debug info about
PCs inside these symbols.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/arch/vax/n_argred.S \
src/lib/libm/arch/vax/n_atan2.S
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/vax/n_cabs.S \
src/lib/libm/arch/vax/n_cbrt.S
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/vax/n_infnan.S \
src/lib/libm/arch/vax/n_scalbn.S
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/arch/vax/n_sqrt.S
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/arch/vax/n_support.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/aarch64

2024-05-06 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon May  6 15:59:53 UTC 2024

Modified Files:
src/lib/libm/arch/aarch64: fenv.c

Log Message:
Trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/aarch64/fenv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/aarch64/fenv.c
diff -u src/lib/libm/arch/aarch64/fenv.c:1.6 src/lib/libm/arch/aarch64/fenv.c:1.7
--- src/lib/libm/arch/aarch64/fenv.c:1.6	Sun Aug 25 18:59:52 2019
+++ src/lib/libm/arch/aarch64/fenv.c	Mon May  6 15:59:53 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: fenv.c,v 1.6 2019/08/25 18:59:52 riastradh Exp $ */
+/* $NetBSD: fenv.c,v 1.7 2024/05/06 15:59:53 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: fenv.c,v 1.6 2019/08/25 18:59:52 riastradh Exp $");
+__RCSID("$NetBSD: fenv.c,v 1.7 2024/05/06 15:59:53 skrll Exp $");
 
 #include "namespace.h"
 
@@ -98,7 +98,7 @@ fegetexceptflag(fexcept_t *flagp, int ex
 /*
  * The feraiseexcept() function shall attempt to raise the supported
  * floating-point exceptions represented by the argument excepts. The order
- * in which these floating-point exceptions are raised is unspecified. 
+ * in which these floating-point exceptions are raised is unspecified.
  */
 int
 feraiseexcept(int excepts)
@@ -219,7 +219,7 @@ fesetenv(const fenv_t *envp)
  * The feupdateenv() function shall attempt to save the currently raised
  * floating-point exceptions in its automatic storage, attempt to install the
  * floating-point environment represented by the object pointed to by envp,
- * and then attempt to raise the saved floating-point exceptions. 
+ * and then attempt to raise the saved floating-point exceptions.
  */
 int
 feupdateenv(const fenv_t *envp)



CVS commit: src/lib/libm/arch/aarch64

2024-05-06 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon May  6 15:59:53 UTC 2024

Modified Files:
src/lib/libm/arch/aarch64: fenv.c

Log Message:
Trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/aarch64/fenv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/noieee_src

2024-05-06 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon May  6 15:52:53 UTC 2024

Modified Files:
src/lib/libm/noieee_src: n_sincos1.c

Log Message:
libm: Expose sincosl on vax.

PR 57881


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/noieee_src/n_sincos1.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/noieee_src/n_sincos1.c
diff -u src/lib/libm/noieee_src/n_sincos1.c:1.1 src/lib/libm/noieee_src/n_sincos1.c:1.2
--- src/lib/libm/noieee_src/n_sincos1.c:1.1	Sat Aug 27 09:56:21 2022
+++ src/lib/libm/noieee_src/n_sincos1.c	Mon May  6 15:52:52 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: n_sincos1.c,v 1.1 2022/08/27 09:56:21 christos Exp $	*/
+/*	$NetBSD: n_sincos1.c,v 1.2 2024/05/06 15:52:52 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2022 The NetBSD Foundation, Inc.
@@ -29,12 +29,13 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include 
-__RCSID("$NetBSD: n_sincos1.c,v 1.1 2022/08/27 09:56:21 christos Exp $");
+__RCSID("$NetBSD: n_sincos1.c,v 1.2 2024/05/06 15:52:52 riastradh Exp $");
 
 #include 
 
-#ifdef __weak_alias
-__weak_alias(_sincosl, sincos)
+#ifndef __HAVE_LONG_DOUBLE
+__weak_alias(sincosl, _sincosl)
+__strong_alias(_sincosl, sincos)
 #endif
 
 void



CVS commit: src/lib/libm/noieee_src

2024-05-06 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon May  6 15:52:53 UTC 2024

Modified Files:
src/lib/libm/noieee_src: n_sincos1.c

Log Message:
libm: Expose sincosl on vax.

PR 57881


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/noieee_src/n_sincos1.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/arch/vax

2024-05-06 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon May  6 15:33:04 UTC 2024

Modified Files:
src/lib/libm/arch/vax: n_sincos.S n_tan.S

Log Message:
libm: Expose sinl, cosl, tanl on vax.

While here, make sin, cos, and tan be weak aliases for internal
symbols _sin, _cos, and _tan; likewise sinf, cosf, tanf.

PR 57881


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/arch/vax/n_sincos.S
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/vax/n_tan.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/arch/vax/n_sincos.S
diff -u src/lib/libm/arch/vax/n_sincos.S:1.9 src/lib/libm/arch/vax/n_sincos.S:1.10
--- src/lib/libm/arch/vax/n_sincos.S:1.9	Fri Oct 10 22:06:33 2014
+++ src/lib/libm/arch/vax/n_sincos.S	Mon May  6 15:33:04 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: n_sincos.S,v 1.9 2014/10/10 22:06:33 martin Exp $	*/
+/*	$NetBSD: n_sincos.S,v 1.10 2024/05/06 15:33:04 riastradh Exp $	*/
 /*
  * Copyright (c) 1985, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -46,17 +46,19 @@
  */
 #include 
 
-ENTRY(sinf, 0)
+WEAK_ALIAS(sinf, _sinf)
+ENTRY(_sinf, 0)
 	cvtfd	4(%ap),-(%sp)
-	calls	$2,_C_LABEL(sin)
+	calls	$2,_C_LABEL(_sin)
 	cvtdf	%r0,%r0
 	ret
+END(_sinf)
 
-#ifdef WEAK_ALIAS
-WEAK_ALIAS(_sinl, sin)
-#endif
+WEAK_ALIAS(sinl, _sinl)
+STRONG_ALIAS(_sinl, _sin)
 
-ENTRY(sin, 0xfc0)
+WEAK_ALIAS(sin, _sin)
+ENTRY(_sin, 0xfc0)
 	movq	4(%ap),%r0
 	bicw3	$0x807f,%r0,%r2
 	beql	1f		# if x is zero or reserved operand then return x
@@ -77,6 +79,7 @@ ENTRY(sin, 0xfc0)
 	jsb	_C_LABEL(__libm_sincos)+2
 	bispsw	(%sp)+
 1:	ret
+END(_sin)
 
 /*
  * double cos(arg)
@@ -85,17 +88,19 @@ ENTRY(sin, 0xfc0)
  * S. McDonald, April 4,  1985
  */
 
-ENTRY(cosf, 0)
+WEAK_ALIAS(cosf, _cosf)
+ENTRY(_cosf, 0)
 	cvtfd	4(%ap),-(%sp)
-	calls	$2,_C_LABEL(cos)
+	calls	$2,_C_LABEL(_cos)
 	cvtdf	%r0,%r0
 	ret
+END(_cosf)
 
-#ifdef WEAK_ALIAS
-WEAK_ALIAS(_cosl, cos)
-#endif
+WEAK_ALIAS(cosl, _cosl)
+STRONG_ALIAS(_cosl, _cos)
 
-ENTRY(cos, 0x0fc0)
+WEAK_ALIAS(cos, _cos)
+ENTRY(_cos, 0x0fc0)
 	movq	4(%ap),%r0
 	bicw3	$0x7f,%r0,%r2
 	cmpw	$0x8000,%r2
@@ -117,3 +122,4 @@ ENTRY(cos, 0x0fc0)
 	jsb	_C_LABEL(__libm_sincos)+2
 	bispsw	(%sp)+
 1:	ret
+END(_cos)

Index: src/lib/libm/arch/vax/n_tan.S
diff -u src/lib/libm/arch/vax/n_tan.S:1.7 src/lib/libm/arch/vax/n_tan.S:1.8
--- src/lib/libm/arch/vax/n_tan.S:1.7	Thu Mar  6 10:59:52 2014
+++ src/lib/libm/arch/vax/n_tan.S	Mon May  6 15:33:04 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: n_tan.S,v 1.7 2014/03/06 10:59:52 martin Exp $	*/
+/*	$NetBSD: n_tan.S,v 1.8 2024/05/06 15:33:04 riastradh Exp $	*/
 /*
  * Copyright (c) 1985, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -44,7 +44,12 @@
  * method: true range reduction to [-pi/4,pi/4], P. Tang  &  B. Corbett
  * S. McDonald, April 4,  1985
  */
-ENTRY(tan, 0x0fc0)		# save %r6-%r11
+
+WEAK_ALIAS(tanl, _tanl)
+STRONG_ALIAS(_tanl, _tan)
+
+WEAK_ALIAS(tan, _tan)
+ENTRY(_tan, 0x0fc0)		# save %r6-%r11
 	movq	4(%ap),%r0
 	bicw3	$0x807f,%r0,%r2
 	beql	1f		# if x is zero or reserved operand then return x
@@ -87,11 +92,12 @@ ENTRY(tan, 0x0fc0)		# save %r6-%r11
 	divd3	%r0,%r10,%r0
 	bispsw	(%sp)+
 1:	ret
+END(_tan)
 
-
-ENTRY(tanf, 0)
+WEAK_ALIAS(tanf, _tanf)
+ENTRY(_tanf, 0)
 	cvtfd	4(%ap),-(%sp)
-	calls	$2,_C_LABEL(tan)
+	calls	$2,_C_LABEL(_tan)
 	cvtdf	%r0,%r0
 	ret
-
+END(_tanf)



CVS commit: src/lib/libm/arch/vax

2024-05-06 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon May  6 15:33:04 UTC 2024

Modified Files:
src/lib/libm/arch/vax: n_sincos.S n_tan.S

Log Message:
libm: Expose sinl, cosl, tanl on vax.

While here, make sin, cos, and tan be weak aliases for internal
symbols _sin, _cos, and _tan; likewise sinf, cosf, tanf.

PR 57881


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/arch/vax/n_sincos.S
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/vax/n_tan.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/arch/arm/gen

2024-05-06 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon May  6 06:57:32 UTC 2024

Modified Files:
src/lib/libc/arch/arm/gen: setjmp.S

Log Message:
arm longjmp: Restore stack first, then signal mask.

Otherwise, a pending signal may be delivered on the wrong stack when
we restore the signal mask.

While here:

- Move the botched sp and lr tests earlier.

PR lib/57946


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/arch/arm/gen/setjmp.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/arch/arm/gen/setjmp.S
diff -u src/lib/libc/arch/arm/gen/setjmp.S:1.18 src/lib/libc/arch/arm/gen/setjmp.S:1.19
--- src/lib/libc/arch/arm/gen/setjmp.S:1.18	Tue Dec 13 12:43:32 2022
+++ src/lib/libc/arch/arm/gen/setjmp.S	Mon May  6 06:57:32 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: setjmp.S,v 1.18 2022/12/13 12:43:32 skrll Exp $	*/
+/*	$NetBSD: setjmp.S,v 1.19 2024/05/06 06:57:32 skrll Exp $	*/
 
 /*
  * Copyright (c) 1997 Mark Brinicombe
@@ -142,6 +142,25 @@ ENTRY(__longjmp14)
 	cmp	r3, ip
 	bne	.Lbotch
 
+	/* Validate sp and lr */
+	ldr	r2, [r0, #(_JB_REG_R13 * 4)]
+#if defined(__thumb__) && defined(_ARM_ARCH_T2)
+	cbz	r2, .Lbotch
+#else
+	cmp	r2, #0
+	beq	.Lbotch
+#endif
+
+	ldr	r3, [r0, #(_JB_REG_R14 * 4)]
+#if defined(__thumb__) && defined(_ARM_ARCH_T2)
+	cbz	r3, .Lbotch
+#else
+	cmp	r3, #0
+	beq	.Lbotch
+#endif
+	mov	sp, r2
+	mov	lr, r3
+
 	/* Restore the signal mask. */
 	push	{r0-r2, lr}
 	movs	r2, #0
@@ -186,25 +205,6 @@ ENTRY(__longjmp14)
 	adds	r0, r0, #4	/* skip ip(r12) */
 #endif
 
-	ldmia	r0!, {r2-r3}
-
-	/* Validate sp and lr */
-#if defined(__thumb__) && defined(_ARM_ARCH_T2)
-	cbz	r2, .Lbotch
-#else
-	cmp	r2, #0
-	beq	.Lbotch
-#endif
-	mov	sp, r2
-
-#if defined(__thumb__) && defined(_ARM_ARCH_T2)
-	cbz	r3, .Lbotch
-#else
-	cmp	r3, #0
-	beq	.Lbotch
-#endif
-	mov	lr, r3
-
 	/* Set return value */
 	movs	r0, r1
 #if !defined(__thumb__)



CVS commit: src/lib/libc/arch/arm/gen

2024-05-06 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon May  6 06:57:32 UTC 2024

Modified Files:
src/lib/libc/arch/arm/gen: setjmp.S

Log Message:
arm longjmp: Restore stack first, then signal mask.

Otherwise, a pending signal may be delivered on the wrong stack when
we restore the signal mask.

While here:

- Move the botched sp and lr tests earlier.

PR lib/57946


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/arch/arm/gen/setjmp.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm

2024-05-05 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun May  5 22:52:19 UTC 2024

Modified Files:
src/lib/libm: Makefile

Log Message:
libm: long double is just double on hppa, so don't use s_rintl.c.

PR misc/58054


To generate a diff of this commit:
cvs rdiff -u -r1.230 -r1.231 src/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/Makefile
diff -u src/lib/libm/Makefile:1.230 src/lib/libm/Makefile:1.231
--- src/lib/libm/Makefile:1.230	Sun May  5 14:53:22 2024
+++ src/lib/libm/Makefile	Sun May  5 22:52:19 2024
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.230 2024/05/05 14:53:22 riastradh Exp $
+#  $NetBSD: Makefile,v 1.231 2024/05/05 22:52:19 riastradh Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -97,7 +97,7 @@ COMMON_SRCS += fenv.c
 
 .elif (${LIBC_MACHINE_ARCH} == "hppa")
 .PATH.c: ${.CURDIR}/arch/hppa
-COMMON_SRCS+= fenv.c s_rintl.c
+COMMON_SRCS+= fenv.c
 
 .elif (${LIBC_MACHINE_ARCH} == "sparc")
 .PATH: ${.CURDIR}/arch/sparc



CVS commit: src/lib/libm

2024-05-05 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun May  5 22:52:19 UTC 2024

Modified Files:
src/lib/libm: Makefile

Log Message:
libm: long double is just double on hppa, so don't use s_rintl.c.

PR misc/58054


To generate a diff of this commit:
cvs rdiff -u -r1.230 -r1.231 src/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2024-05-05 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun May  5 22:10:06 UTC 2024

Modified Files:
src/lib/libm/src: s_nextafter.c

Log Message:
libm: If long double is double, nexttowardl is nextafter.

long double nexttowardl(long double, long double);
double nextafter(double, double);


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/lib/libm/src/s_nextafter.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/src/s_nextafter.c
diff -u src/lib/libm/src/s_nextafter.c:1.16 src/lib/libm/src/s_nextafter.c:1.17
--- src/lib/libm/src/s_nextafter.c:1.16	Wed Aug 16 11:22:52 2017
+++ src/lib/libm/src/s_nextafter.c	Sun May  5 22:10:06 2024
@@ -12,7 +12,7 @@
 
 #include 
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: s_nextafter.c,v 1.16 2017/08/16 11:22:52 he Exp $");
+__RCSID("$NetBSD: s_nextafter.c,v 1.17 2024/05/05 22:10:06 riastradh Exp $");
 #endif
 
 /* IEEE functions
@@ -28,6 +28,7 @@ __RCSID("$NetBSD: s_nextafter.c,v 1.16 2
 #ifndef __HAVE_LONG_DOUBLE
 __strong_alias(nextafterl, nextafter)
 __strong_alias(nexttoward, nextafter)
+__strong_alias(nexttowardl, nextafter)
 #endif
 
 double



CVS commit: src/lib/libm/src

2024-05-05 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun May  5 22:10:06 UTC 2024

Modified Files:
src/lib/libm/src: s_nextafter.c

Log Message:
libm: If long double is double, nexttowardl is nextafter.

long double nexttowardl(long double, long double);
double nextafter(double, double);


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/lib/libm/src/s_nextafter.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm

2024-05-05 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun May  5 14:53:22 UTC 2024

Modified Files:
src/lib/libm: Makefile

Log Message:
libm: No s_rintl.c on mips32.

This is only for machines where long double is not double.

Not 100% sure this is the right criterion, but there's a good chance
it is.


To generate a diff of this commit:
cvs rdiff -u -r1.229 -r1.230 src/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm

2024-05-05 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun May  5 14:53:22 UTC 2024

Modified Files:
src/lib/libm: Makefile

Log Message:
libm: No s_rintl.c on mips32.

This is only for machines where long double is not double.

Not 100% sure this is the right criterion, but there's a good chance
it is.


To generate a diff of this commit:
cvs rdiff -u -r1.229 -r1.230 src/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/Makefile
diff -u src/lib/libm/Makefile:1.229 src/lib/libm/Makefile:1.230
--- src/lib/libm/Makefile:1.229	Sun May  5 11:07:49 2024
+++ src/lib/libm/Makefile	Sun May  5 14:53:22 2024
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.229 2024/05/05 11:07:49 riastradh Exp $
+#  $NetBSD: Makefile,v 1.230 2024/05/05 14:53:22 riastradh Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -206,9 +206,9 @@ ARCH_SRCS += s_fma.S s_fmaf.S
 .if ${MKSOFTFLOAT} == "no"
 COMMON_SRCS += fenv.c
 .endif
-COMMON_SRCS+= s_rintl.c
 .if ${MACHINE_MIPS64} && (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32))
 COMMON_SRCS+= s_nexttoward.c
+COMMON_SRCS+= s_rintl.c
 .endif
 COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
 



CVS commit: src/lib/libm/src

2024-05-05 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun May  5 14:06:47 UTC 2024

Modified Files:
src/lib/libm/src: s_nexttowardf.c

Log Message:
libm/s_nexttowardf.c: Handle __HAVE_LONG_DOUBLE, LDBL_IMPLICIT_NBIT.

We should arrange to just have LDBL_NBIT unconditionally defined in the
appropriate MD header file, and make LDBL_IMPLICIT_NBIT an alias for
LDBL_NBIT==0.  But for now this will do.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/src/s_nexttowardf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/src/s_nexttowardf.c
diff -u src/lib/libm/src/s_nexttowardf.c:1.4 src/lib/libm/src/s_nexttowardf.c:1.5
--- src/lib/libm/src/s_nexttowardf.c:1.4	Sun May  5 11:38:03 2024
+++ src/lib/libm/src/s_nexttowardf.c	Sun May  5 14:06:47 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: s_nexttowardf.c,v 1.4 2024/05/05 11:38:03 riastradh Exp $	*/
+/*	$NetBSD: s_nexttowardf.c,v 1.5 2024/05/05 14:06:47 riastradh Exp $	*/
 
 /*
  * 
@@ -15,7 +15,7 @@
 #if 0
 __FBSDID("$FreeBSD: src/lib/msun/src/s_nexttowardf.c,v 1.3 2011/02/10 07:38:38 das Exp $");
 #else
-__RCSID("$NetBSD: s_nexttowardf.c,v 1.4 2024/05/05 11:38:03 riastradh Exp $");
+__RCSID("$NetBSD: s_nexttowardf.c,v 1.5 2024/05/05 14:06:47 riastradh Exp $");
 #endif
 
 #include 
@@ -42,6 +42,14 @@ __RCSID("$NetBSD: s_nexttowardf.c,v 1.4 
 #define	LDBL_NBIT	0
 #endif
 
+/*
+ * XXX We should arrange to define LDBL_NBIT unconditionally in the
+ * appropriate MD header file.
+ */
+#ifdef LDBL_IMPLICIT_NBIT
+#define	LDBL_NBIT	0
+#endif
+
 float
 nexttowardf(float x, long double y)
 {



CVS commit: src/lib/libm/src

2024-05-05 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun May  5 14:06:47 UTC 2024

Modified Files:
src/lib/libm/src: s_nexttowardf.c

Log Message:
libm/s_nexttowardf.c: Handle __HAVE_LONG_DOUBLE, LDBL_IMPLICIT_NBIT.

We should arrange to just have LDBL_NBIT unconditionally defined in the
appropriate MD header file, and make LDBL_IMPLICIT_NBIT an alias for
LDBL_NBIT==0.  But for now this will do.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/src/s_nexttowardf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2024-05-05 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Sun May  5 11:38:03 UTC 2024

Modified Files:
src/lib/libm/src: s_nexttowardf.c

Log Message:
libm: Make s_nexttowardf.c work when long double is double.

Seems likely that there are other parts of libm which would benefit
from being defined unconditionally in terms of ieee_ext_u, with
ieee_ext_u as an alias for ieee_double_u, in this scenario.  But I
haven't gone looking yet.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/src/s_nexttowardf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



  1   2   3   4   5   6   7   8   9   10   >