Improving precision of number to zt-string conversion, adding search for the shortest representation of number during the conversion.
This commit is contained in:
@@ -160,6 +160,7 @@ else
|
||||
OPTION_LIBC := raw
|
||||
endif
|
||||
|
||||
# float64 mode
|
||||
ifeq ($(filter float64,$(TARGET_MODS)), float64)
|
||||
ifeq ($(OPTION_MCU),enable)
|
||||
$(error MCU target doesn\'t support float64)
|
||||
@@ -170,6 +171,11 @@ else
|
||||
OPTION_FLOAT64 := disable
|
||||
endif
|
||||
|
||||
# Enabling float64 mode for unittests
|
||||
ifeq ($(filter-out $(TESTS_TARGET),$(TARGET_MODE)),)
|
||||
OPTION_FLOAT64 := enable
|
||||
endif
|
||||
|
||||
ifeq ($(filter sanitize,$(TARGET_MODS)), sanitize)
|
||||
ifeq ($(OPTION_LIBC),musl)
|
||||
$(error ASAN and LIBC_MUSL are mutually exclusive)
|
||||
|
||||
Reference in New Issue
Block a user