From owner-freebsd-arm@freebsd.org Thu Aug 18 09:18:03 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02402BBC383 for ; Thu, 18 Aug 2016 09:18:03 +0000 (UTC) (envelope-from kevans91@ksu.edu) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0081.outbound.protection.outlook.com [104.47.40.81]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8CD7218AD; Thu, 18 Aug 2016 09:18:01 +0000 (UTC) (envelope-from kevans91@ksu.edu) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ksu.edu; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=xI5THWVb9hd5QPRPxjpwZLfJ3LvMW7BWnfYQcPeXbdw=; b=BTxxQLUYCkmSa+DzaRTJBpaChkDAGN+AIUmeUHmi4hPSs5mdAm5FlrOmEahDURC+coGvZB0vi4iTXMf5QQ/MB7GjhfY0NQej9QOTP2sDBwX55aAiUdIIoqObdPYEcV+g1O+J7aR6JFnanRDEORykxhz8bSNiNpYxyFzs5LFUWt0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kevans91@ksu.edu; Received: from mail-qt0-f169.google.com (209.85.216.169) by BY1PR0501MB1318.namprd05.prod.outlook.com (10.160.200.155) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.587.5; Thu, 18 Aug 2016 04:41:41 +0000 Received: by mail-qt0-f169.google.com with SMTP id 52so3357765qtq.3; Wed, 17 Aug 2016 21:41:40 -0700 (PDT) X-Gm-Message-State: AEkoouuK87kyJd+2lIVFKGn/+jmCsHXlPmXrTZBdyDVgixJs0trH/WusmZcMLcxtJ9X+ebJCHM3Bu8yvby3k8w== X-Received: by 10.200.53.24 with SMTP id y24mr263585qtb.16.1471495293230; Wed, 17 Aug 2016 21:41:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.41.4 with HTTP; Wed, 17 Aug 2016 21:41:12 -0700 (PDT) From: Kyle Evans Date: Wed, 17 Aug 2016 23:41:12 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: libm long double functions on ARMv6. To: CC: , Content-Type: text/plain; charset="UTF-8" X-Originating-IP: [209.85.216.169] X-ClientProxiedBy: DM3PR13CA0030.namprd13.prod.outlook.com (10.164.193.40) To BY1PR0501MB1318.namprd05.prod.outlook.com (10.160.200.155) X-MS-Office365-Filtering-Correlation-Id: b6d17e73-7632-487e-368c-08d3c721f2c3 X-Microsoft-Exchange-Diagnostics: 1; BY1PR0501MB1318; 2:TlmFcntzOI1aQ4MCjHfzJ2cAJ0w2ZOa2dxe4lp1ZseR7e8EZiikYxBFBvc26uYBR5NCorEGzASRCuWSZBa+kQXzgw4q89jSYkz0mqa+fpzGuvNa8R1ASUFxLhH3wUA9WnwIL5MXiQEoFN5kcn6Eli0PMq8DUop5wveNK4siItYFb6qIh/ehRwiUbH9wTi/09; 3:HN/I1QeABzUTKjbSvjqBmv0mdXuAOLyFaM69PuCW9fB01ouhxcAkkSrtZX05wjzCaWYlQr8MEyHXue6X39SV4/gB/z0IFuWuL5NAlZphKUqdvCA5ZHc+jW0wisKYmJ8U; 25:FAvidtVRZRBZPb+dOe5qGixvRdHX4utRr3iTUqmKWbDBOloHaG6o7Tj3OeC+HF017lgEBSB+BN0hBNJKhZFlv0QXidf3ztzNstOCwAjo0+CjKnNsCabkVL29pTTamDvk2goWQ5+keksdeYZ8kpi7YDgROv+8Bj0bRGKQrF5IEKNj8R/d+xaaA2UnNzH+xJPUCjx3bG42EoXXt0Yb7vVRuwS59ErKdvm0Mkjht2llVj6tov3BRD34UmcJzOvnxEy8eRMvf/sxzG/2Ky24ZDyWpvMMbYU7YP0hLkZ2DbnKCjRfBOvaSd3XPPT0zAwG9zpp9gFR7z9hS7Th+0d/ss8H3KTOxs3Bdu3Q8Tkft1swRJk06++XDHPzEG0iFsARjFCyNrW0rbk0CXiq494nBvErW0IM7NiLAFwoG7ym1gWKrg8= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0501MB1318; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0501MB1318; 31:pIPfYOxANKm+cOqwwkq6OSiGWCD/R1TZWPTPhSTSMJ8mx2B8ElVRA9ZM+pbhNmSj26LNVqVDdC3I5sAfOSWar7w32fuUyovcqJh8DfdmzOKI5FylxFPfp1/x2L8T5j9fHkVI8u8S7bSoCYGwbklXLTo2Rzmmoy9ZYzC+wLrHtkczT9BFQPJmDhS/A6SVDjVfVJFDnMxWspZotxCanvhCxHwMUDDDzuYwThajRp4CZ0A=; 20:NZxAp0uq1nqdkWPqoZ0KaIm7aPlgsUL7byw2JCagMpeFwDOZfBl5+GqSMcI9gAGL8x6ee1yjZa4Bbf02sdiE8UAbcm/N5PO+9QO2ZNAhImxREtkwlL4PGRy58HIlHf2wMK8C2zEPrh6NBCWGtFT+VfTnuTCOxHjhcOGydBbONNbA6h0zVEtQF74CDbtyWK+3Eh1Ak1A4JHGbratDq46Ml/eLTazHQcQHz/59qlYyclzoUK/VfOjMiyOhMu1moYS3zYWi4LxJrzBCIrro5VhoVOyIbykMM1D1RtdzpQdRZr0/x1e6WP/Tq0mkK4Y9BFwoFxmFYrXbZw9MVAopqS79oO3sQGJ2foyApqRy4MyhK6eSchOAQulc25/gBvH0r7Pyij0936z1MB5CXqRcDiaZZpEgSAEiYRZy3oDCSFLrI5DI/KTSRp/JePcOhS3P8WgZN8gOY/8q5f2xlqqa3SktU92R5/8smo12r6nc232Ec9z/9voztXzPZQwg7JZXmHoI X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:BY1PR0501MB1318; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0501MB1318; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0501MB1318; 4:iopgdQsR/ErGLXRWwR3+Q7wGmUWKt9YbOujUajomufv8T5S8WzNtcfFHeiOWC7TxWxTh184/xqtuBoyJTHu44Ju7a45qf/NAgUuImjyTcOg2v9iFxqEHFG1hRr/PrQRgpiC+QpPFFyVBOW1fTJQQlu78PEtxjQfsD7puD/+84idXh+gbwTWze/dQ0iu1OS0cFQ1d2nUYRcooX9chf3O8iqN78sygoudpcBVRE/fLfyyDTz0XwMHlgsxdTT4ZGMaQHSdSQIEC4nL7+HDl3fdb90Wbl56NRW2vU1+RwvuqIP1ZTIC/FSUs2v1q6Uz2U5xuOSfZSnBUyQpCj2RVgiPxgBjQdcJ9R0w5J0sAsbDuCbKARDtfvEeNFt3FdjDNQhlNeyOkNQCnj9J0/rupVwEJrA== X-Forefront-PRVS: 0038DE95A2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(199003)(189002)(61726006)(450100001)(86362001)(75432002)(19580395003)(69596002)(68736007)(6116002)(106356001)(89122001)(50466002)(586003)(2351001)(9896002)(90282001)(9686002)(105586002)(3846002)(8676002)(81166006)(2906002)(7846002)(47776003)(23676002)(66066001)(15975445007)(4326007)(59536001)(7736002)(305945005)(101416001)(122856001)(61266001)(42186005)(81156014)(92566002)(50986999)(189998001)(93516999)(88552002)(54356999)(97736004)(5820100001)(63696999)(110136002)(55446002)(67856001)(55456009); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0501MB1318; H:mail-qt0-f169.google.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: ksu.edu does not designate permitted sender hosts) X-Microsoft-Exchange-Diag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ossTenant-OriginalArrivalTime: 18 Aug 2016 04:41:41.0069 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0501MB1318 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Aug 2016 09:18:03 -0000 Alright, apologies for the noise. I answered my own question- went through the `long double` functions from msun/Makefile:101, and found that `fmodl` seems to be the only one that is not properly aliased. The issue at [1] (r199422) seems to be relevant, so I'm CC'ing both emaste@ and ngie@ as interested parties, also hoping for some $0.02USD. I'm inlining a proposed patch at the end of this e-mail to match what is currently done for all of the other `long double` functions on these platforms where long double == double. [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199422 diff --git a/lib/msun/src/e_fmod.c b/lib/msun/src/e_fmod.c index 720aa03..a3578a1 100644 --- a/lib/msun/src/e_fmod.c +++ b/lib/msun/src/e_fmod.c @@ -130,3 +130,8 @@ __ieee754_fmod(double x, double y) } return x; /* exact output */ } + +#if LDBL_MANT_DIG == 53 +__weak_reference(fmod, fmodl); +#endif