File tree Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 8
8
},
9
9
"LIBC_CONF_PRINTF_DISABLE_WRITE_INT" : {
10
10
"value" : true
11
+ },
12
+ "LIBC_CONF_PRINTF_FLOAT_TO_STR_USE_MEGA_LONG_DOUBLE_TABLE" : {
13
+ "value" : false
11
14
}
12
15
}
13
16
}
Original file line number Diff line number Diff line change 11
11
"LIBC_CONF_PRINTF_DISABLE_WRITE_INT" : {
12
12
"value" : false ,
13
13
"doc" : " Disable handling of %n in printf format string."
14
+ },
15
+ "LIBC_CONF_PRINTF_FLOAT_TO_STR_USE_MEGA_LONG_DOUBLE_TABLE" : {
16
+ "value" : true ,
17
+ "doc" : " Use large table for better printf long double performance."
14
18
}
15
19
}
16
20
}
Original file line number Diff line number Diff line change @@ -29,3 +29,4 @@ to learn about the defaults for your platform and target.
29
29
- ``LIBC_CONF_PRINTF_DISABLE_FLOAT ``: Disable printing floating point values in printf and friends.
30
30
- ``LIBC_CONF_PRINTF_DISABLE_INDEX_MODE ``: Disable index mode in the printf format string.
31
31
- ``LIBC_CONF_PRINTF_DISABLE_WRITE_INT ``: Disable handling of %n in printf format string.
32
+ - ``LIBC_CONF_PRINTF_FLOAT_TO_STR_USE_MEGA_LONG_DOUBLE_TABLE ``: Use large table for better printf long double performance.
Original file line number Diff line number Diff line change @@ -363,6 +363,9 @@ endif()
363
363
if (LIBC_CONF_PRINTF_DISABLE_WRITE_INT)
364
364
list (APPEND printf_copts "-DLIBC_COPT_PRINTF_DISABLE_WRITE_INT" )
365
365
endif ()
366
+ if (LIBC_CONF_PRINTF_FLOAT_TO_STR_USE_MEGA_LONG_DOUBLE_TABLE)
367
+ list (APPEND printf_copts "-DLIBC_COPT_FLOAT_TO_STR_USE_MEGA_LONG_DOUBLE_TABLE" )
368
+ endif ()
366
369
367
370
if (LLVM_LIBC_FULL_BUILD)
368
371
list (APPEND printf_deps
Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ add_object_library(
92
92
libc.src.__support.integer_to_string
93
93
libc.src.__support.float_to_string
94
94
COMPILE_OPTIONS
95
- -DLIBC_COPT_FLOAT_TO_STR_USE_MEGA_LONG_DOUBLE_TABLE
96
95
${printf_copts}
97
96
)
98
97
You can’t perform that action at this time.
0 commit comments