From 0b6b0a5a982c2d34d93a4a624c5ba9b4d419c16a Mon Sep 17 00:00:00 2001 From: satok Date: Wed, 27 Apr 2011 16:29:27 +0900 Subject: [PATCH] Enable fast power Change-Id: I00a91381f63cde62d9e7cf7e17f75869294cf2df --- native/src/unigram_dictionary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/src/unigram_dictionary.cpp b/native/src/unigram_dictionary.cpp index cd2f141cf..20a185219 100644 --- a/native/src/unigram_dictionary.cpp +++ b/native/src/unigram_dictionary.cpp @@ -429,7 +429,7 @@ inline static void multiplyIntCapped(const int multiplier, int *base) { } inline static int powerIntCapped(const int base, const int n) { - if (false && base == 2) { + if (base == 2) { return n < 31 ? 1 << n : S_INT_MAX; } else { int ret = base;