From patchwork Fri Sep 22 20:25:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 817684 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-84872-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="mT64udkv"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xzQ3B5Cz9z9t38 for ; Sat, 23 Sep 2017 06:25:42 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=b1l8wF9ejKczR1PLKeSCDu1GtLgh2 t7y7eJNotQnJbBKnjHIgD5FpRsEN5PHYXd1yepSfdTJfb7/DUrDmhPYJUGfk8TOZ XSMAj8coNH7N8L28ysEnivgxvBDA0PDZoHpU2tmbqY25AhUSLm0uFob4qgScYGpi TiE72DeODFZ2LE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=k6PIQZw3Kz8vYkMjGk02sp6X0PE=; b=mT6 4udkvt/cmN3LdPmJSwzkQAGsiOtX+gUJ/Vaeok011Uo7LS/7ckXvKxrh24F+un/a 6xptmy9bYfI/bXD1BFr4yfhxxJGT5VNEJ4Ea5Sld5tfIjM/ZhsHIwICkUUIdFTGB qtPSWwFWSkwg313oD3GbOP14IrcVWJxEXCqF1bPU= Received: (qmail 62650 invoked by alias); 22 Sep 2017 20:25:32 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 62633 invoked by uid 89); 22 Sep 2017 20:25:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Date: Fri, 22 Sep 2017 20:25:17 +0000 From: Joseph Myers To: Subject: Use libm_alias_float in flt-32 [committed] Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) This patch makes flt-32 libm functions use libm_alias_float to define public interfaces (in cases where _Float32 aliases of those interfaces would be appropriate, so not for finitef / isinff / isnanf). Tested for x86_64. Also tested with build-many-glibcs.py that installed stripped shared libraries are unchanged by the patch. Committed. 2017-09-22 Joseph Myers * sysdeps/ieee754/flt-32/s_asinhf.c: Include . (asinhf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_atanf.c: Include . (atanf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_cbrtf.c: Include . (cbrtf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_ceilf.c: Include . (ceilf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_copysignf.c: Include . (copysignf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_cosf.c: Include . (cosf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_erff.c: Include . (erff): Define using libm_alias_float. (erfcf): Likewise. * sysdeps/ieee754/flt-32/s_expm1f.c: Include . (expm1f): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_fabsf.c: Include . (fabsf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_floorf.c: Include . (floorf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_frexpf.c: Include . (frexpf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include . * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include . (getpayloadf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_llrintf.c: Include . (llrintf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_llroundf.c: Include . (llroundf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_logbf.c: Include . (logbf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_lrintf.c: Include . (lrintf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_lroundf.c: Include . (lroundf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_modff.c: Include . (modff): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include . (nearbyintf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_nextafterf.c: Include . (nextafterf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_nextupf.c: Include . (nextupf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_remquof.c: Include . (remquof): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_rintf.c: Include . (rintf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_roundevenf.c: Include . (roundevenf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_roundf.c: Include . (roundf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include . * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_sincosf.c: Include . (sincosf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_sinf.c: Include . (sinf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_tanf.c: Include . (tanf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_tanhf.c: Include . (tanhf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_totalorderf.c: Include . (totalorderf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include . (totalordermagf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_truncf.c: Include . (truncf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using libm_alias_float. * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using libm_alias_float. diff --git a/sysdeps/ieee754/flt-32/s_asinhf.c b/sysdeps/ieee754/flt-32/s_asinhf.c index da9cafb..165a754 100644 --- a/sysdeps/ieee754/flt-32/s_asinhf.c +++ b/sysdeps/ieee754/flt-32/s_asinhf.c @@ -16,6 +16,7 @@ #include #include #include +#include static const float one = 1.0000000000e+00, /* 0x3F800000 */ @@ -47,4 +48,4 @@ __asinhf(float x) } return __copysignf(w, x); } -weak_alias (__asinhf, asinhf) +libm_alias_float (__asinh, asinh) diff --git a/sysdeps/ieee754/flt-32/s_atanf.c b/sysdeps/ieee754/flt-32/s_atanf.c index e322a1d..03a4cfd 100644 --- a/sysdeps/ieee754/flt-32/s_atanf.c +++ b/sysdeps/ieee754/flt-32/s_atanf.c @@ -20,6 +20,7 @@ static char rcsid[] = "$NetBSD: s_atanf.c,v 1.4 1995/05/10 20:46:47 jtc Exp $"; #include #include #include +#include static const float atanhi[] = { 4.6364760399e-01, /* atan(0.5)hi 0x3eed6338 */ @@ -98,4 +99,4 @@ float __atanf(float x) return (hx<0)? -z:z; } } -weak_alias (__atanf, atanf) +libm_alias_float (__atan, atan) diff --git a/sysdeps/ieee754/flt-32/s_cbrtf.c b/sysdeps/ieee754/flt-32/s_cbrtf.c index 1ac294c..a6f3687 100644 --- a/sysdeps/ieee754/flt-32/s_cbrtf.c +++ b/sysdeps/ieee754/flt-32/s_cbrtf.c @@ -20,6 +20,7 @@ #include #include +#include #define CBRT2 1.2599210498948731648 /* 2^(1/3) */ @@ -60,4 +61,4 @@ __cbrtf (float x) return __ldexpf (x > 0.0 ? ym : -ym, xe / 3); } -weak_alias (__cbrtf, cbrtf) +libm_alias_float (__cbrt, cbrt) diff --git a/sysdeps/ieee754/flt-32/s_ceilf.c b/sysdeps/ieee754/flt-32/s_ceilf.c index 9676dc6..f289ec2 100644 --- a/sysdeps/ieee754/flt-32/s_ceilf.c +++ b/sysdeps/ieee754/flt-32/s_ceilf.c @@ -15,6 +15,7 @@ #include #include +#include float @@ -44,5 +45,5 @@ __ceilf(float x) return x; } #ifndef __ceilf -weak_alias (__ceilf, ceilf) +libm_alias_float (__ceil, ceil) #endif diff --git a/sysdeps/ieee754/flt-32/s_copysignf.c b/sysdeps/ieee754/flt-32/s_copysignf.c index 9b88816..3c4ac7c 100644 --- a/sysdeps/ieee754/flt-32/s_copysignf.c +++ b/sysdeps/ieee754/flt-32/s_copysignf.c @@ -25,6 +25,7 @@ static char rcsid[] = "$NetBSD: s_copysignf.c,v 1.4 1995/05/10 20:46:59 jtc Exp #include #include +#include float __copysignf(float x, float y) { @@ -34,4 +35,4 @@ float __copysignf(float x, float y) SET_FLOAT_WORD(x,(ix&0x7fffffff)|(iy&0x80000000)); return x; } -weak_alias (__copysignf, copysignf) +libm_alias_float (__copysign, copysign) diff --git a/sysdeps/ieee754/flt-32/s_cosf.c b/sysdeps/ieee754/flt-32/s_cosf.c index 0affd40..5ed0bca 100644 --- a/sysdeps/ieee754/flt-32/s_cosf.c +++ b/sysdeps/ieee754/flt-32/s_cosf.c @@ -20,6 +20,7 @@ static char rcsid[] = "$NetBSD: s_cosf.c,v 1.4 1995/05/10 20:47:03 jtc Exp $"; #include #include #include +#include #ifndef COSF # define COSF_FUNC __cosf @@ -59,5 +60,5 @@ float COSF_FUNC(float x) } #ifndef COSF -weak_alias (__cosf, cosf) +libm_alias_float (__cos, cos) #endif diff --git a/sysdeps/ieee754/flt-32/s_erff.c b/sysdeps/ieee754/flt-32/s_erff.c index 07760c3..6eacf0f 100644 --- a/sysdeps/ieee754/flt-32/s_erff.c +++ b/sysdeps/ieee754/flt-32/s_erff.c @@ -21,6 +21,7 @@ static char rcsid[] = "$NetBSD: s_erff.c,v 1.4 1995/05/10 20:47:07 jtc Exp $"; #include #include #include +#include #include static const float @@ -152,7 +153,7 @@ float __erff(float x) r = __ieee754_expf(-z*z-(float)0.5625)*__ieee754_expf((z-x)*(z+x)+R/S); if(hx>=0) return one-r/x; else return r/x-one; } -weak_alias (__erff, erff) +libm_alias_float (__erf, erf) float __erfcf(float x) { @@ -227,4 +228,4 @@ float __erfcf(float x) return two-tiny; } } -weak_alias (__erfcf, erfcf) +libm_alias_float (__erfc, erfc) diff --git a/sysdeps/ieee754/flt-32/s_expm1f.c b/sysdeps/ieee754/flt-32/s_expm1f.c index 00ca789..0358970 100644 --- a/sysdeps/ieee754/flt-32/s_expm1f.c +++ b/sysdeps/ieee754/flt-32/s_expm1f.c @@ -17,6 +17,7 @@ #include #include #include +#include static const float huge = 1.0e+30; static const float tiny = 1.0e-30; @@ -127,4 +128,4 @@ __expm1f(float x) } return y; } -weak_alias (__expm1f, expm1f) +libm_alias_float (__expm1, expm1) diff --git a/sysdeps/ieee754/flt-32/s_fabsf.c b/sysdeps/ieee754/flt-32/s_fabsf.c index 297abe6..d3f6eb8 100644 --- a/sysdeps/ieee754/flt-32/s_fabsf.c +++ b/sysdeps/ieee754/flt-32/s_fabsf.c @@ -22,9 +22,10 @@ static char rcsid[] = "$NetBSD: s_fabsf.c,v 1.4 1995/05/10 20:47:15 jtc Exp $"; */ #include +#include float __fabsf(float x) { return __builtin_fabsf (x); } -weak_alias (__fabsf, fabsf) +libm_alias_float (__fabs, fabs) diff --git a/sysdeps/ieee754/flt-32/s_floorf.c b/sysdeps/ieee754/flt-32/s_floorf.c index 43e284a..12aed34 100644 --- a/sysdeps/ieee754/flt-32/s_floorf.c +++ b/sysdeps/ieee754/flt-32/s_floorf.c @@ -22,6 +22,7 @@ #include #include +#include float __floorf(float x) @@ -50,5 +51,5 @@ __floorf(float x) return x; } #ifndef __floorf -weak_alias (__floorf, floorf) +libm_alias_float (__floor, floor) #endif diff --git a/sysdeps/ieee754/flt-32/s_frexpf.c b/sysdeps/ieee754/flt-32/s_frexpf.c index 005367c..b7403bf 100644 --- a/sysdeps/ieee754/flt-32/s_frexpf.c +++ b/sysdeps/ieee754/flt-32/s_frexpf.c @@ -19,6 +19,7 @@ static char rcsid[] = "$NetBSD: s_frexpf.c,v 1.5 1995/05/10 20:47:26 jtc Exp $"; #include #include +#include static const float two25 = 3.3554432000e+07; /* 0x4c000000 */ @@ -41,4 +42,4 @@ float __frexpf(float x, int *eptr) SET_FLOAT_WORD(x,hx); return x; } -weak_alias (__frexpf, frexpf) +libm_alias_float (__frexp, frexp) diff --git a/sysdeps/ieee754/flt-32/s_fromfpf.c b/sysdeps/ieee754/flt-32/s_fromfpf.c index 66489bc..d0c83b8 100644 --- a/sysdeps/ieee754/flt-32/s_fromfpf.c +++ b/sysdeps/ieee754/flt-32/s_fromfpf.c @@ -2,4 +2,4 @@ #define INEXACT 0 #define FUNC __fromfpf #include -weak_alias (__fromfpf, fromfpf) +libm_alias_float (__fromfp, fromfp) diff --git a/sysdeps/ieee754/flt-32/s_fromfpf_main.c b/sysdeps/ieee754/flt-32/s_fromfpf_main.c index 3a4ad80..d9909ea 100644 --- a/sysdeps/ieee754/flt-32/s_fromfpf_main.c +++ b/sysdeps/ieee754/flt-32/s_fromfpf_main.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include diff --git a/sysdeps/ieee754/flt-32/s_fromfpxf.c b/sysdeps/ieee754/flt-32/s_fromfpxf.c index 61f3e2f..01d9247 100644 --- a/sysdeps/ieee754/flt-32/s_fromfpxf.c +++ b/sysdeps/ieee754/flt-32/s_fromfpxf.c @@ -2,4 +2,4 @@ #define INEXACT 1 #define FUNC __fromfpxf #include -weak_alias (__fromfpxf, fromfpxf) +libm_alias_float (__fromfpx, fromfpx) diff --git a/sysdeps/ieee754/flt-32/s_getpayloadf.c b/sysdeps/ieee754/flt-32/s_getpayloadf.c index 1958a3e..b4fa3fa 100644 --- a/sysdeps/ieee754/flt-32/s_getpayloadf.c +++ b/sysdeps/ieee754/flt-32/s_getpayloadf.c @@ -19,6 +19,7 @@ #include #include #include +#include #include float @@ -31,4 +32,4 @@ __getpayloadf (const float *x) return 0.0f; return (float) ix; } -weak_alias (__getpayloadf, getpayloadf) +libm_alias_float (__getpayload, getpayload) diff --git a/sysdeps/ieee754/flt-32/s_llrintf.c b/sysdeps/ieee754/flt-32/s_llrintf.c index fd46653..e83e328 100644 --- a/sysdeps/ieee754/flt-32/s_llrintf.c +++ b/sysdeps/ieee754/flt-32/s_llrintf.c @@ -23,6 +23,7 @@ #include #include +#include #include static const float two23[2] = @@ -83,4 +84,4 @@ __llrintf (float x) return sx ? -result : result; } -weak_alias (__llrintf, llrintf) +libm_alias_float (__llrint, llrint) diff --git a/sysdeps/ieee754/flt-32/s_llroundf.c b/sysdeps/ieee754/flt-32/s_llroundf.c index c620186..8f86eb4 100644 --- a/sysdeps/ieee754/flt-32/s_llroundf.c +++ b/sysdeps/ieee754/flt-32/s_llroundf.c @@ -22,6 +22,7 @@ #include #include +#include #include @@ -70,4 +71,4 @@ __llroundf (float x) return sign * result; } -weak_alias (__llroundf, llroundf) +libm_alias_float (__llround, llround) diff --git a/sysdeps/ieee754/flt-32/s_logbf.c b/sysdeps/ieee754/flt-32/s_logbf.c index 9ae20e3..e0d4f3f 100644 --- a/sysdeps/ieee754/flt-32/s_logbf.c +++ b/sysdeps/ieee754/flt-32/s_logbf.c @@ -15,6 +15,7 @@ #include #include +#include #include float @@ -38,4 +39,4 @@ __logbf (float x) return 0.0f; return (float) (rix - 127); } -weak_alias (__logbf, logbf) +libm_alias_float (__logb, logb) diff --git a/sysdeps/ieee754/flt-32/s_lrintf.c b/sysdeps/ieee754/flt-32/s_lrintf.c index a7f186a..be26563 100644 --- a/sysdeps/ieee754/flt-32/s_lrintf.c +++ b/sysdeps/ieee754/flt-32/s_lrintf.c @@ -23,6 +23,7 @@ #include #include +#include #include static const float two23[2] = @@ -83,4 +84,4 @@ __lrintf (float x) return sx ? -result : result; } -weak_alias (__lrintf, lrintf) +libm_alias_float (__lrint, lrint) diff --git a/sysdeps/ieee754/flt-32/s_lroundf.c b/sysdeps/ieee754/flt-32/s_lroundf.c index d18fcbe..372f693 100644 --- a/sysdeps/ieee754/flt-32/s_lroundf.c +++ b/sysdeps/ieee754/flt-32/s_lroundf.c @@ -22,6 +22,7 @@ #include #include +#include #include @@ -70,4 +71,4 @@ __lroundf (float x) return sign * result; } -weak_alias (__lroundf, lroundf) +libm_alias_float (__lround, lround) diff --git a/sysdeps/ieee754/flt-32/s_modff.c b/sysdeps/ieee754/flt-32/s_modff.c index 9bbc8e6..45a9459 100644 --- a/sysdeps/ieee754/flt-32/s_modff.c +++ b/sysdeps/ieee754/flt-32/s_modff.c @@ -15,6 +15,7 @@ #include #include +#include static const float one = 1.0; @@ -51,4 +52,4 @@ __modff(float x, float *iptr) return x; } } -weak_alias (__modff, modff) +libm_alias_float (__modf, modf) diff --git a/sysdeps/ieee754/flt-32/s_nearbyintf.c b/sysdeps/ieee754/flt-32/s_nearbyintf.c index 5aebefa..afacdef 100644 --- a/sysdeps/ieee754/flt-32/s_nearbyintf.c +++ b/sysdeps/ieee754/flt-32/s_nearbyintf.c @@ -18,6 +18,7 @@ #include #include #include +#include static const float TWO23[2]={ @@ -56,4 +57,4 @@ __nearbyintf(float x) libc_fesetenvf (&env); return t; } -weak_alias (__nearbyintf, nearbyintf) +libm_alias_float (__nearbyint, nearbyint) diff --git a/sysdeps/ieee754/flt-32/s_nextafterf.c b/sysdeps/ieee754/flt-32/s_nextafterf.c index 625d54b..a7a5703 100644 --- a/sysdeps/ieee754/flt-32/s_nextafterf.c +++ b/sysdeps/ieee754/flt-32/s_nextafterf.c @@ -20,6 +20,7 @@ static char rcsid[] = "$NetBSD: s_nextafterf.c,v 1.4 1995/05/10 20:48:01 jtc Exp #include #include #include +#include #include float __nextafterf(float x, float y) @@ -70,4 +71,4 @@ float __nextafterf(float x, float y) SET_FLOAT_WORD(x,hx); return x; } -weak_alias (__nextafterf, nextafterf) +libm_alias_float (__nextafter, nextafter) diff --git a/sysdeps/ieee754/flt-32/s_nextupf.c b/sysdeps/ieee754/flt-32/s_nextupf.c index bbabdf1..0e000b0 100644 --- a/sysdeps/ieee754/flt-32/s_nextupf.c +++ b/sysdeps/ieee754/flt-32/s_nextupf.c @@ -18,6 +18,7 @@ #include #include +#include /* Return the least floating-point number greater than X. */ float @@ -43,4 +44,4 @@ __nextupf (float x) return x; } -weak_alias (__nextupf, nextupf) +libm_alias_float (__nextup, nextup) diff --git a/sysdeps/ieee754/flt-32/s_remquof.c b/sysdeps/ieee754/flt-32/s_remquof.c index ef81133..1b7c574 100644 --- a/sysdeps/ieee754/flt-32/s_remquof.c +++ b/sysdeps/ieee754/flt-32/s_remquof.c @@ -23,6 +23,7 @@ static const float zero = 0.0; +#include float @@ -107,4 +108,4 @@ __remquof (float x, float y, int *quo) x = -x; return x; } -weak_alias (__remquof, remquof) +libm_alias_float (__remquo, remquo) diff --git a/sysdeps/ieee754/flt-32/s_rintf.c b/sysdeps/ieee754/flt-32/s_rintf.c index 8a90748..db6f260 100644 --- a/sysdeps/ieee754/flt-32/s_rintf.c +++ b/sysdeps/ieee754/flt-32/s_rintf.c @@ -15,6 +15,7 @@ #include #include +#include static const float TWO23[2]={ @@ -46,5 +47,5 @@ __rintf(float x) return w-TWO23[sx]; } #ifndef __rintf -weak_alias (__rintf, rintf) +libm_alias_float (__rint, rint) #endif diff --git a/sysdeps/ieee754/flt-32/s_roundevenf.c b/sysdeps/ieee754/flt-32/s_roundevenf.c index d166156..27e719f 100644 --- a/sysdeps/ieee754/flt-32/s_roundevenf.c +++ b/sysdeps/ieee754/flt-32/s_roundevenf.c @@ -19,6 +19,7 @@ #include #include +#include #include #define BIAS 0x7f @@ -66,4 +67,4 @@ __roundevenf (float x) SET_FLOAT_WORD (x, ix); return x; } -weak_alias (__roundevenf, roundevenf) +libm_alias_float (__roundeven, roundeven) diff --git a/sysdeps/ieee754/flt-32/s_roundf.c b/sysdeps/ieee754/flt-32/s_roundf.c index 4f60621..e242f12 100644 --- a/sysdeps/ieee754/flt-32/s_roundf.c +++ b/sysdeps/ieee754/flt-32/s_roundf.c @@ -20,6 +20,7 @@ #include #include +#include float @@ -60,4 +61,4 @@ __roundf (float x) SET_FLOAT_WORD (x, i0); return x; } -weak_alias (__roundf, roundf) +libm_alias_float (__round, round) diff --git a/sysdeps/ieee754/flt-32/s_setpayloadf.c b/sysdeps/ieee754/flt-32/s_setpayloadf.c index 818cd1b..6faf26b 100644 --- a/sysdeps/ieee754/flt-32/s_setpayloadf.c +++ b/sysdeps/ieee754/flt-32/s_setpayloadf.c @@ -1,4 +1,4 @@ #define SIG 0 #define FUNC __setpayloadf #include -weak_alias (__setpayloadf, setpayloadf) +libm_alias_float (__setpayload, setpayload) diff --git a/sysdeps/ieee754/flt-32/s_setpayloadf_main.c b/sysdeps/ieee754/flt-32/s_setpayloadf_main.c index 8b046d6..4f9b3b6 100644 --- a/sysdeps/ieee754/flt-32/s_setpayloadf_main.c +++ b/sysdeps/ieee754/flt-32/s_setpayloadf_main.c @@ -18,6 +18,7 @@ #include #include +#include #include #include diff --git a/sysdeps/ieee754/flt-32/s_setpayloadsigf.c b/sysdeps/ieee754/flt-32/s_setpayloadsigf.c index a622f2d..f08c877 100644 --- a/sysdeps/ieee754/flt-32/s_setpayloadsigf.c +++ b/sysdeps/ieee754/flt-32/s_setpayloadsigf.c @@ -1,4 +1,4 @@ #define SIG 1 #define FUNC __setpayloadsigf #include -weak_alias (__setpayloadsigf, setpayloadsigf) +libm_alias_float (__setpayloadsig, setpayloadsig) diff --git a/sysdeps/ieee754/flt-32/s_sincosf.c b/sysdeps/ieee754/flt-32/s_sincosf.c index 3ab92ee..4946a6e 100644 --- a/sysdeps/ieee754/flt-32/s_sincosf.c +++ b/sysdeps/ieee754/flt-32/s_sincosf.c @@ -21,6 +21,7 @@ #include #include +#include #ifndef SINCOSF # define SINCOSF_FUNC __sincosf @@ -80,5 +81,5 @@ SINCOSF_FUNC (float x, float *sinx, float *cosx) } #ifndef SINCOSF -weak_alias (__sincosf, sincosf) +libm_alias_float (__sincos, sincos) #endif diff --git a/sysdeps/ieee754/flt-32/s_sinf.c b/sysdeps/ieee754/flt-32/s_sinf.c index 916e345..3ec98f8 100644 --- a/sysdeps/ieee754/flt-32/s_sinf.c +++ b/sysdeps/ieee754/flt-32/s_sinf.c @@ -20,6 +20,7 @@ static char rcsid[] = "$NetBSD: s_sinf.c,v 1.4 1995/05/10 20:48:16 jtc Exp $"; #include #include #include +#include #ifndef SINF # define SINF_FUNC __sinf @@ -59,5 +60,5 @@ float SINF_FUNC(float x) } #ifndef SINF -weak_alias (__sinf, sinf) +libm_alias_float (__sin, sin) #endif diff --git a/sysdeps/ieee754/flt-32/s_tanf.c b/sysdeps/ieee754/flt-32/s_tanf.c index 685df8f..ba3af54 100644 --- a/sysdeps/ieee754/flt-32/s_tanf.c +++ b/sysdeps/ieee754/flt-32/s_tanf.c @@ -20,6 +20,7 @@ static char rcsid[] = "$NetBSD: s_tanf.c,v 1.4 1995/05/10 20:48:20 jtc Exp $"; #include #include #include +#include float __tanf(float x) { @@ -46,4 +47,4 @@ float __tanf(float x) -1 -- n odd */ } } -weak_alias (__tanf, tanf) +libm_alias_float (__tan, tan) diff --git a/sysdeps/ieee754/flt-32/s_tanhf.c b/sysdeps/ieee754/flt-32/s_tanhf.c index f70702b..c2b96cf 100644 --- a/sysdeps/ieee754/flt-32/s_tanhf.c +++ b/sysdeps/ieee754/flt-32/s_tanhf.c @@ -20,6 +20,7 @@ static char rcsid[] = "$NetBSD: s_tanhf.c,v 1.4 1995/05/10 20:48:24 jtc Exp $"; #include #include #include +#include static const float one=1.0, two=2.0, tiny = 1.0e-30; @@ -59,4 +60,4 @@ float __tanhf(float x) } return (jx>=0)? z: -z; } -weak_alias (__tanhf, tanhf) +libm_alias_float (__tanh, tanh) diff --git a/sysdeps/ieee754/flt-32/s_totalorderf.c b/sysdeps/ieee754/flt-32/s_totalorderf.c index 5d65420..adae207 100644 --- a/sysdeps/ieee754/flt-32/s_totalorderf.c +++ b/sysdeps/ieee754/flt-32/s_totalorderf.c @@ -18,6 +18,7 @@ #include #include +#include #include #include @@ -44,4 +45,4 @@ __totalorderf (float x, float y) iy ^= iy_sign >> 1; return ix <= iy; } -weak_alias (__totalorderf, totalorderf) +libm_alias_float (__totalorder, totalorder) diff --git a/sysdeps/ieee754/flt-32/s_totalordermagf.c b/sysdeps/ieee754/flt-32/s_totalordermagf.c index 9aaa6c4..c392fe2 100644 --- a/sysdeps/ieee754/flt-32/s_totalordermagf.c +++ b/sysdeps/ieee754/flt-32/s_totalordermagf.c @@ -18,6 +18,7 @@ #include #include +#include #include #include @@ -42,4 +43,4 @@ __totalordermagf (float x, float y) #endif return ix <= iy; } -weak_alias (__totalordermagf, totalordermagf) +libm_alias_float (__totalordermag, totalordermag) diff --git a/sysdeps/ieee754/flt-32/s_truncf.c b/sysdeps/ieee754/flt-32/s_truncf.c index 2edb03c..6dffb8f 100644 --- a/sysdeps/ieee754/flt-32/s_truncf.c +++ b/sysdeps/ieee754/flt-32/s_truncf.c @@ -20,6 +20,7 @@ #include #include +#include float @@ -49,5 +50,5 @@ __truncf (float x) return x; } #ifndef __truncf -weak_alias (__truncf, truncf) +libm_alias_float (__trunc, trunc) #endif diff --git a/sysdeps/ieee754/flt-32/s_ufromfpf.c b/sysdeps/ieee754/flt-32/s_ufromfpf.c index 3aafd58..0d2b449 100644 --- a/sysdeps/ieee754/flt-32/s_ufromfpf.c +++ b/sysdeps/ieee754/flt-32/s_ufromfpf.c @@ -2,4 +2,4 @@ #define INEXACT 0 #define FUNC __ufromfpf #include -weak_alias (__ufromfpf, ufromfpf) +libm_alias_float (__ufromfp, ufromfp) diff --git a/sysdeps/ieee754/flt-32/s_ufromfpxf.c b/sysdeps/ieee754/flt-32/s_ufromfpxf.c index 8bcdad4..81f56da 100644 --- a/sysdeps/ieee754/flt-32/s_ufromfpxf.c +++ b/sysdeps/ieee754/flt-32/s_ufromfpxf.c @@ -2,4 +2,4 @@ #define INEXACT 1 #define FUNC __ufromfpxf #include -weak_alias (__ufromfpxf, ufromfpxf) +libm_alias_float (__ufromfpx, ufromfpx)