Module Name: src Committed By: christos Date: Fri Feb 23 13:42:01 UTC 2024
Modified Files: src/lib/libm/src: s_tanl.c Log Message: fix the 32 bit tanl symbol. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/s_tanl.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_tanl.c diff -u src/lib/libm/src/s_tanl.c:1.1 src/lib/libm/src/s_tanl.c:1.2 --- src/lib/libm/src/s_tanl.c:1.1 Sun Jan 21 13:53:19 2024 +++ src/lib/libm/src/s_tanl.c Fri Feb 23 08:42:01 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: s_tanl.c,v 1.1 2024/01/21 18:53:19 christos Exp $ */ +/* $NetBSD: s_tanl.c,v 1.2 2024/02/23 13:42:01 christos Exp $ */ /*- * SPDX-License-Identifier: BSD-2-Clause @@ -29,7 +29,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: s_tanl.c,v 1.1 2024/01/21 18:53:19 christos Exp $"); +__RCSID("$NetBSD: s_tanl.c,v 1.2 2024/02/23 13:42:01 christos Exp $"); /* * Limited testing on pseudorandom numbers drawn within [0:4e8] shows @@ -45,12 +45,12 @@ __RCSID("$NetBSD: s_tanl.c,v 1.1 2024/01 #include "math.h" #include "math_private.h" -#ifdef __HAVE_LONG_DOUBLE - #ifdef __weak_alias __weak_alias(tanl, _tanl) #endif +#ifdef __HAVE_LONG_DOUBLE + #if LDBL_MANT_DIG == 64 #include "../ld80/e_rem_pio2l.h" #include "../ld80/k_tanl.c" @@ -109,8 +109,10 @@ tanl(long double x) #else -#ifdef __weak_alias -__weak_alias(tanl, tan) -#endif +long double +tanl(long double x) +{ + return tan(x); +} #endif