From 010777db09c731b68bee6cd1de43e440039c3f81 Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Tue, 22 Sep 2015 16:17:43 +0200 Subject: [PATCH] [poincare] use native_int_t when appropriate --- poincare/src/integer.cpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/poincare/src/integer.cpp b/poincare/src/integer.cpp index e629b6873..7c2876d78 100644 --- a/poincare/src/integer.cpp +++ b/poincare/src/integer.cpp @@ -8,12 +8,17 @@ #define MAX(a,b) ((a)>(b)?a:b) #define NATIVE_UINT_BIT_COUNT (8*sizeof(native_uint_t)) -#define INTEGER_IMMEDIATE_LIMIT 32 +/* +const Integer Integer::Zero = { + m_numberOfDigits = 0, + m_digits = nullptr +}; +*/ uint8_t log2(native_uint_t v) { assert(NATIVE_UINT_BIT_COUNT < 256); // Otherwise uint8_t isn't OK for (uint8_t i=0; i