This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
IEEE128 binary float to decimal float conversion routines
- From: "Paul E. Murphy" <murphyp at linux dot vnet dot ibm dot com>
- To: joseph at codesourcery dot com, "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Cc: Steve Munroe <sjmunroe at us dot ibm dot com>, Tulio Magno Quites Machado Filho <tuliom at linux dot vnet dot ibm dot com>, Michael R Meissner <mrmeissn at us dot ibm dot com>
- Date: Mon, 16 Nov 2015 11:48:05 -0600
- Subject: IEEE128 binary float to decimal float conversion routines
- Authentication-results: sourceware.org; auth=none
Hi Joseph,
I think there may have been a question as to where the
conversion routines between IEEE 128 binary float and
decimal float should live.
Observing existing precedent and machinery, I think
the appropriate place to house them is within libdfp.
The conversion routines between the existing types
reside in here already. Examining the source, we (IBM)
would be adding the following:
__{dpd,bid}_extend {sd,dd,td} <-> kf
__{dpd,bid}_trunc {sd,dd,td} <-> kf
Similarly, it looks like __int128 support never got added:
__{dpd,bid}_fix {sd,dd,td} -> {ti,unsigned ti}
__{dpd,bid}_float {ti, unsigned ti} -> {sd,dd,td}
Thanks,
Paul