Skip to content

Commit

Permalink
add extra fast path
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGraey committed Jul 18, 2022
1 parent aed3836 commit a4afb4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assembly/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ import { u256 } from "./integer/u256";
case 10: return exponent > 38;
}
}
if (exponent >= 38) return true;
return low > load<u64>(MaxBaseForExponent128 + (exponent << 3));
}

Expand Down

0 comments on commit a4afb4a

Please sign in to comment.