cvs commit: src/lib/libc/stdio floatio.h vfprintf.c

David Schultz das at FreeBSD.org
Sat Apr 5 14:11:45 PST 2003


das         2003/04/05 14:11:42 PST

  FreeBSD src repository

  Modified files:
    lib/libc/stdio       floatio.h vfprintf.c 
  Log:
  Rework the floating point code in printf().  Significant changes:
  
  - We used to round long double arguments to double.  Now we print
    them properly.
  
  - Bugs involving '%F', corner cases of '#' and 'g' format
    specifiers, and the '.*' precision specifier have been
    fixed.
  
  - Added support for the "'" specifier to print thousands' grouping
    characters in a locale-dependent manner.
  
  - Implement the __vfprintf() side of hexadecimal floating point
    support.  All that is still needed is a routine to convert the
    mantissa to hex digits one nibble at a time in the style of ultoa().
  
  Reviewed by:    silence on standards@
  
  Revision  Changes    Path
  1.4       +2 -0      src/lib/libc/stdio/floatio.h
  1.54      +189 -151  src/lib/libc/stdio/vfprintf.c


More information about the cvs-src mailing list