[PATCH 2/5] add base fenv.h and default sys/fenv.h

Kazunori Asayama asayama@sm.sony.co.jp
Tue Feb 13 16:50:00 GMT 2007


Patrick Mansfield <patmans@us.ibm.com> wrote:
> I added those, and some "#ifndef _FENV_H"

Be care. You are using the same macro _FENV_H for
libc/machine/spu/sys/fenv.h.

> Do I need to use _EXFUN for the function prototypes?

I'm not sure, but it seems preferable to do so.

BTW, I don't know how the fenv functions should behave in
multi-threading environment, i.e., should the fenv functions affect
only the current thread ? If so, I suppose that fenv status should be
managed by using _reent structure and that reentrant versions of fenv
functions should be also declared in fenv.h...

--
(ASAYAMA Kazunori
  (asayama@sm.sony.co.jp))
t



More information about the Newlib mailing list