Adding fenv.h for ARM and SPARC

Wilco Dijkstra Wilco.Dijkstra@arm.com
Mon Aug 14 10:26:00 GMT 2017


Aditya wrote:
> I do not have any idea about introducing softfloat in newlib and how
> this should be implemented in newlib. NetBSD uses softfloat and
> implemented fenv support for spu arch in different way as compare to
> implementation of fenv methods in newlib for spu arch.
>
> Would anyone please suggest me where and how to add fenv support for newlib.

When you use software floating point there is no need for fenv. The rounding
mode is fixed and there are no exceptions. You could do an empty (no-effect)
implementation but it wouldn't work with software that changes rounding mode
or tests/sets exception flags.

Wilco


More information about the Newlib mailing list