summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp8266/tutorial/filesystem.rst
diff options
context:
space:
mode:
authorAlessandro Gatti <a.gatti@frob.it>2025-06-10 07:01:17 +0200
committerDamien George <damien@micropython.org>2025-07-01 15:34:29 +1000
commit703d5acbadd0234aa9c8cbb9aaba7a42aca99fc4 (patch)
tree19e43f9c3fd7b6307b7ec73b01922f1991cff37b /docs/esp8266/tutorial/filesystem.rst
parent1eb27e11f3bf8e5e0ee13191ef1e9c30b00f9ead (diff)
downloadmicropython-703d5acbadd0234aa9c8cbb9aaba7a42aca99fc4.tar.gz
micropython-703d5acbadd0234aa9c8cbb9aaba7a42aca99fc4.zip
py/misc: Introduce macros to check values' bits size.
This commit adds two macros that lets check whether a given value can fit an arbitrary number of bits, either as a signed or as an unsigned number. The native emitter code backends perform a lot of bit size checks to see if a particular code sequence can be emitted instead of a generic one, and each platform backend has its own ad-hoc macros (usually one per bit count and signedness). With these macros there's a single way to perform those checks, plus there's no more chance for off-by-one mask length errors when dealing with signed numbers. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'docs/esp8266/tutorial/filesystem.rst')
0 files changed, 0 insertions, 0 deletions