commit | 0b6b0a5a982c2d34d93a4a624c5ba9b4d419c16a | [log] [tgz] |
---|---|---|
author | satok <satok@google.com> | Wed Apr 27 16:29:27 2011 +0900 |
committer | satok <satok@google.com> | Wed Apr 27 16:29:27 2011 +0900 |
tree | e24e6e1729c19637cc7a8cd99f39a2f8adcba4b5 | |
parent | dbe882ac0894c00d673f9c97e08a6654e57d63f5 [diff] |
Enable fast power Change-Id: I00a91381f63cde62d9e7cf7e17f75869294cf2df
diff --git a/native/src/unigram_dictionary.cpp b/native/src/unigram_dictionary.cpp index cd2f141..20a1852 100644 --- a/native/src/unigram_dictionary.cpp +++ b/native/src/unigram_dictionary.cpp
@@ -429,7 +429,7 @@ } 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;