Carl Friedrich Bolz-Tereick pushed to branch branch/default at PyPy / pypy


Commits:
61122db1 by Carl Friedrich Bolz-Tereick at 2022-05-16T20:21:14+02:00
small improvement to int.bit_length for the jit: expose unwrapping and
rewrapping to tracing

- - - - -
90a0fd0f by Carl Friedrich Bolz-Tereick at 2022-05-16T22:24:11+02:00
preallocate the digit list in a plausible size in rbigint.frombytes

- - - - -
3e3e6bf4 by Carl Friedrich Bolz-Tereick at 2022-05-16T23:17:44+02:00
#3733: add a fast path for getrandbits(n) where n <= 31: this doesn't 
turn the
random bits into a bytes, then into an rbigint, only to discover that it fits
into a word-sized integer

- - - - -


4 changed files:

- pypy/module/_random/interp_random.py
- pypy/module/_random/test/test_random.py
- pypy/objspace/std/intobject.py
- rpython/rlib/rbigint.py


View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/compare/9c774bf0f681dfa4b8b1dafaed0121d4dfb0be13...3e3e6bf4f0c9f357d1c806c34de7f8733f47e6c8

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/compare/9c774bf0f681dfa4b8b1dafaed0121d4dfb0be13...3e3e6bf4f0c9f357d1c806c34de7f8733f47e6c8
You're receiving this email because of your account on foss.heptapod.net.


_______________________________________________
pypy-commit mailing list -- pypy-commit@python.org
To unsubscribe send an email to pypy-commit-le...@python.org
https://mail.python.org/mailman3/lists/pypy-commit.python.org/
Member address: arch...@mail-archive.com

Reply via email to