Make strtod respect the rounding mode (bug 14518)

Richard Henderson rth@twiddle.net
Thu Aug 30 19:56:00 GMT 2012


On 08/29/2012 04:45 PM, Joseph S. Myers wrote:
> * This patch does not update the alpha port.  alpha maintainers may
>   wish to add a definition of _FPU_GETCW to fpu_control.h, or to add
>   bits/rounding-mode.h for alpha (I don't know why its fpu_control.h
>   doesn't define _FPU_GETCW when it has the other macros needed).

I'm not sure why we implement as much of fpu_control.h as we do.
It's somewhat unfortunate that it exists in its current form at
all, because it's all very biased toward binary compatibility with
the x86 fpcr format.

While I *could* commit a patch like the following, I'd like an
opinion on whether the existing defines could be trashed and the
file re-imagined as something more friendly for native.  Given
of course that at present there cannot be any users since the
actual _FPU_G/SETCW macros do not exist.

Or whether the file should be trashed and I'll just implement
bits/rounding-mode.h.  Which honestly seems like it'd be the
most efficient for the use in question.


r~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-alpha-Implement-_FPU_GETCW-and-_FPU_SETCW.patch
Type: text/x-patch
Size: 6834 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120830/23131018/attachment.bin>


More information about the Libc-alpha mailing list