can't link against math.h
sgk at troutmask.apl.washington.edu
Thu Oct 26 03:17:19 UTC 2017
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.
More information about the freebsd-ports