Skip to content

About

Bits, mascaras, rotaciones y campos empaquetados en un entero

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

gorsecrown-tools

tests

Bits, mascaras, rotaciones y campos empaquetados en un entero.

Uso

from bits import arma, campos, cuenta, indices, invierte, mascara, rota

cuenta(0b1011)           # 3
indices(0b1011)          # [0, 1, 3]
mascara(8, 8)            # 65280
rota(0b10110011, 4, 8)   # 59
invierte(0b00000001)     # 128
campos(0xb3, [4, 4])     # [11, 3]
arma([11, 3], [4, 4])    # 179

Estructura

bits.py  modulo principal
tests/   tests con pytest
docs/    notas de diseno

About

Bits, mascaras, rotaciones y campos empaquetados en un entero

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages