From owner-freebsd-ports@freebsd.org Thu Oct 26 03:17:19 2017 Return-Path: Delivered-To: freebsd-ports@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 1D4B4E39F83 for ; Thu, 26 Oct 2017 03:17:19 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E213668AEC for ; Thu, 26 Oct 2017 03:17:18 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id v9Q3HHAw002644 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 25 Oct 2017 20:17:17 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id v9Q3HHSK002643; Wed, 25 Oct 2017 20:17:17 -0700 (PDT) (envelope-from sgk) Date: Wed, 25 Oct 2017 20:17:17 -0700 From: Steve Kargl To: "Montgomery-Smith, Stephen" Cc: "freebsd-ports@freebsd.org" Subject: Re: can't link against math.h Message-ID: <20171026031717.GA2599@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <3f62d46a-8f6f-f8fb-e62b-31f3f530e409@missouri.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3f62d46a-8f6f-f8fb-e62b-31f3f530e409@missouri.edu> User-Agent: Mutt/1.7.2 (2016-11-26) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 03:17:19 -0000 On Thu, Oct 26, 2017 at 03:00:48AM +0000, Montgomery-Smith, Stephen wrote: > On 10/25/2017 09:05 PM, blubee blubeeme wrote: > > I wrote a simple test program to test and see if math.h has the function: > > exp10f > > > Does FreeBSD math.h have expf10 and if so, how do I link against it? > > _______________________________________________ > > I think exp10f is a Linux only function. In its man page, it says it is > a GNU extension. > No. It is part of ISO/IEC TS 18661-4. Information technology -- Programming languages, their environments, and system software interfaces -- Floating-point extensions for C Part 4: Supplementary functions Look for n1950.pdf on the web. I've implemented sinpi[fl], cospi[fl], and tanpi[fl], and sent my code to freebsd-numerics. Bruce has suggested a number of improves, but I have lacked the time to fix the code. -- Steve 20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4 20161221 https://www.youtube.com/watch?v=IbCHE-hONow