commit | aa9de267322bbf3a644da728253a224acf5a2d38 | [log] [tgz] |
---|---|---|
author | satok <satok@google.com> | Wed Apr 27 00:58:04 2011 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Apr 27 00:58:04 2011 -0700 |
tree | ade3c0ba365d4075f3c1f34283468b2346370cdf | |
parent | fd78781ced66551948dff25c0dee0ae6e159e272 [diff] | |
parent | 0b6b0a5a982c2d34d93a4a624c5ba9b4d419c16a [diff] |
Merge "Enable fast power"
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;