diff options
author | Michael Jones <71531609+michaelrj-google@users.noreply.github.com> | 2024-02-27 11:03:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 11:03:20 -0800 |
commit | 8e3b60540c81354b321018a47bf159ca9b52d776 (patch) | |
tree | dd2d41ebf6b76a11fec321cee59d0962114b76bf /libc/config | |
parent | 13fd4bf4e53391aab3cdfd922e9ceb4ad1225d1e (diff) | |
download | llvm-8e3b60540c81354b321018a47bf159ca9b52d776.zip llvm-8e3b60540c81354b321018a47bf159ca9b52d776.tar.gz llvm-8e3b60540c81354b321018a47bf159ca9b52d776.tar.bz2 |
[libc] Add fixed point support to printf (#82707)
This patch adds the r, R, k, and K conversion specifiers to printf, with
accompanying tests. They are guarded behind the
LIBC_COPT_PRINTF_DISABLE_FIXED_POINT flag as well as automatic fixed
point support detection.
Diffstat (limited to 'libc/config')
-rw-r--r-- | libc/config/config.json | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/config/config.json b/libc/config/config.json index 6a208cc..b73c47b 100644 --- a/libc/config/config.json +++ b/libc/config/config.json @@ -15,6 +15,10 @@ "LIBC_CONF_PRINTF_FLOAT_TO_STR_USE_MEGA_LONG_DOUBLE_TABLE": { "value": false, "doc": "Use large table for better printf long double performance." + }, + "LIBC_CONF_PRINTF_DISABLE_FIXED_POINT": { + "value": false, + "doc": "Disable printing fixed point values in printf and friends." } }, "string": { |