Improving precision of number to zt-string conversion, adding search for the shortest representation of number during the conversion.

This commit is contained in:
Ruben Ayrapetyan
2014-10-24 19:15:31 +04:00
parent 4f68e43b7d
commit e4629cca51
5 changed files with 326 additions and 161 deletions
+6
View File
@@ -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)