mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
66fa30828a
Similarly to what has been done for printf-like functions, more specifically to the internal implementation in __vfprintf_internal, this patch extends __vstrfmon_l_internal to deal with long double values with binary128 format (as a third format option and reusing the float128 implementation). Tested for powerpc64le, powerpc64, x86_64, and with build-many-glibcs. Reviewed-by: Paul E. Murphy <murphyp@linux.ibm.com>
21 lines
610 B
C
21 lines
610 B
C
#include <stdlib/monetary.h>
|
|
#ifndef _ISOMAC
|
|
#include <stdarg.h>
|
|
|
|
extern ssize_t
|
|
__vstrfmon_l_internal (char *s, size_t maxsize, locale_t loc,
|
|
const char *format, va_list ap,
|
|
unsigned int flags)
|
|
attribute_hidden;
|
|
|
|
/* Flags for __vstrfmon_l_internal.
|
|
|
|
STRFMON_LDBL_IS_DBL is a one-bit mask for the flags parameter that
|
|
indicates whether long double values are to be handled as having the
|
|
same format as double, in which case the flag should be set to one,
|
|
or as another format, otherwise. */
|
|
#define STRFMON_LDBL_IS_DBL 0x0001
|
|
#define STRFMON_LDBL_USES_FLOAT128 0x0002
|
|
|
|
#endif
|