From cc05f3d8a5100af6415f9520813e3326f7ffd69f Mon Sep 17 00:00:00 2001 From: eramos Date: Mon, 13 Apr 2020 03:35:59 +0200 Subject: [PATCH] Changes to migrate to 32 bit arch (armv7l) --- include/anna/core/functions.hpp | 16 ---------------- source/core/functions.cpp | 2 +- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/include/anna/core/functions.hpp b/include/anna/core/functions.hpp index 3c37227..382a625 100644 --- a/include/anna/core/functions.hpp +++ b/include/anna/core/functions.hpp @@ -103,22 +103,6 @@ struct functions { */ static std::string asString(const unsigned int number) throw(); - /** - \param number Numero a convertir. - @return Un literal con el numero sin signo convertido a cadena decimal. - */ - static std::string asString(const unsigned long long int number) throw() { - return asString((U64)number); - } - - /** - \param number Numero a convertir. - @return Un literal con el numero sin signo convertido a cadena decimal. - */ - static std::string asString(const long long int number) throw() { - return asString((S64)number); - } - /** Devuelve un literal con tel numero convertido a cadena decimal @return Un literal con el numero signo convertido a cadena decimal. diff --git a/source/core/functions.cpp b/source/core/functions.cpp index 567fb71..613a021 100644 --- a/source/core/functions.cpp +++ b/source/core/functions.cpp @@ -384,7 +384,7 @@ throw(RuntimeException) { */ int functions::log2(const unsigned int v) throw() { - static const char LogTable256[] = { + static const signed char LogTable256[] = { -1, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, -- 2.20.1