This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Adding fenv.h for ARM and SPARC


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]