aboutsummaryrefslogtreecommitdiff
path: root/lib/std/priority_queue.zig
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-10-10 00:46:53 +0200
committerAndrew Kelley <andrew@ziglang.org>2020-10-09 22:16:48 -0400
commita31b70c4b8d0bed67463b2f54e74198baa93329f (patch)
tree7be5aefedf537b92c8860b924617e55855e9daab /lib/std/priority_queue.zig
parentfbc6a00b0a939f8752bbd571284c46ab58a8fcc4 (diff)
downloadzig-a31b70c4b8d0bed67463b2f54e74198baa93329f.tar.gz
zig-a31b70c4b8d0bed67463b2f54e74198baa93329f.zip
std: Add/Fix/Change parts of big.int
* Add an optimized squaring routine under the `sqr` name. Algorithms for squaring bigger numbers efficiently will come in a PR later. * Fix a bug where a multiplication was done twice if the threshold for the use of Karatsuba algorithm was crossed. Add a test to make sure this won't happen again. * Streamline `pow` method, take a `Const` parameter. * Minor tweaks to `pow`, avoid bit-reversing the exponent.
Diffstat (limited to 'lib/std/priority_queue.zig')
0 files changed, 0 insertions, 0 deletions