This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Make printf respect the rounding mode for decimal output (bug5044)
- From: Richard Henderson <rth at twiddle dot net>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 14 Sep 2012 11:47:45 -0700
- Subject: Re: Make printf respect the rounding mode for decimal output (bug5044)
- References: <Pine.LNX.4.64.1209140115260.32393@digraph.polyomino.org.uk>
On 09/13/2012 06:17 PM, Joseph S. Myers wrote:
> 2012-09-14 Joseph Myers <joseph@codesourcery.com>
>
> [BZ #5044]
> * stdio-common/printf_fp.c: Include <stdbool.h> and
> <rounding-mode.h>.
> (___printf_fp): Determine rounding using get_rounding_mode and
> round_away.
> * stdio-common/tst-printf-round.c: New file.
> * stdio-common/Makefile (tests): Add tst-printf-round.
> (link-libm): New variable.
> ($(objpfx)tst-printf-round): Depend in $(link-libm).
Looks good.
r~