mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 13:30:06 +00:00
a5b15bdec8
The 'mode' argument to __vfscanf_internal allows the selection of the long double format for all long double arguments requested by the format string. Currently, there are two possibilities: long double with the same format as double or long double as something else. The 'something else' format varies between architectures, and on powerpc64le, it means IBM Extended Precision format. In preparation for the third option of long double format on powerpc64le, this patch uses the new mode mask, SCANF_LDBL_USES_FLOAT128, which tells __vfscanf_internal to call __strtof128_internal, instead of __strtold_internal, and save the output into a _Float128 variable. Tested for powerpc64le. Reviewed-By: Paul E. Murphy <murphyp@linux.ibm.com>
11 lines
234 B
C
11 lines
234 B
C
#define CHAR char
|
|
#define L(x) x
|
|
#define FSCANF fscanf
|
|
#define SSCANF sscanf
|
|
#define SCANF scanf
|
|
#define VFSCANF vfscanf
|
|
#define VSSCANF vsscanf
|
|
#define VSCANF vscanf
|
|
#define STRCPY strcpy
|
|
#include <test-scanf-ldbl-compat-template.c>
|