Source file structure for fenv.h support

Howland, Craig D. - US via newlib newlib@sourceware.org
Tue Jul 30 23:00:00 GMT 2019


________________________________
From: Joel Sherrill <joel@rtems.org>
Sent: Tuesday, July 30, 2019 6:21 PM
To: Howland, Craig D. - US
Cc: newlib@sourceware.org
Subject: Re: Source file structure for fenv.h support

On Tue, Jul 30, 2019 at 1:35 PM Howland, Craig D. - US via newlib <newlib@sourceware.org<mailto:newlib@sourceware.org>> wrote
> ...
> Good idea. Put them in libm/math as individual files?
     New directory, libc/fenv, would follow present convention.  Yes,
individual files to make both for less overhead when linking as well as
being easier to replace each placeholder function with a real one.


> I question libc/fenv since these are supposed to be in libm but agree
> on a new subdirectory

In libm is fine with me if they are supposed to be there, but who says libm?
(I've never seen a definition allocating where.  POSIX doesn't seem to that I can find.  The Linux man pages do show -lm needed, so past convention is a suitable reason, but I'm curious as to if there is a "standard" that defines the mapping of C and/or POSIX functions to a library name.  I expected to find it in POSIX and was surprised not to.)



More information about the Newlib mailing list