This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: Adding fenv.h for ARM and SPARC
- From: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- To: "aadit0402 at gmail dot com" <aadit0402 at gmail dot com>
- Cc: "newlib at sourceware dot org" <newlib at sourceware dot org>, nd <nd at arm dot com>
- Date: Mon, 14 Aug 2017 10:10:38 +0000
- Subject: RE: Adding fenv.h for ARM and SPARC
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wilco dot Dijkstra at arm dot com;
- Nodisclaimer: True
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
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