Re: Single-precision float version of matherr

Jozef Lawrynowicz <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <20181130124218.32e662ae@jozef-Aspire-VN7-793G>
On Thu, 29 Nov 2018 15:13:55 +0000
Jozef Lawrynowicz <[email protected]> wrote:

> I implemented <<sf_matherr>> (i.e. a single-precision float matherr), and
> <<sf_exception>> (i.e. single-precision float exception), and patched 
> sqrtf in wf_sqrt.c to use the new constructs.

Actually, I think it would be better for the user if there weren't these new
"sf_*" constructs, and instead the exception structure was modified to have
both a double and float version of arg1, arg2 and retval, each within a union
inside the struct.
This way <<matherr>> can still be used to handle errors for both float and
double math functions.

The union with the float and double version of these fields would only be used
when this behaviour is explicitly selected, so the default
behaviour would remain unchanged.

Jozef
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.