mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Enable fast power"
This commit is contained in:
commit
aa9de26732
@ -429,7 +429,7 @@ inline static void multiplyIntCapped(const int multiplier, int *base) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline static int powerIntCapped(const int base, const int n) {
|
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;
|
return n < 31 ? 1 << n : S_INT_MAX;
|
||||||
} else {
|
} else {
|
||||||
int ret = base;
|
int ret = base;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user