Module refinery.units.blockwise.shr

Expand source code Browse git
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from refinery.units.blockwise import BinaryOperation


class shr(BinaryOperation):
    """
    Shift the bits of each block right, filling with zero bits.
    """
    @staticmethod
    def operate(a, b): return a >> b
    @staticmethod
    def inplace(a, b): a >>= b

Classes

class shr (argument, bigendian=False, blocksize=None)

Shift the bits of each block right, filling with zero bits.

Expand source code Browse git
class shr(BinaryOperation):
    """
    Shift the bits of each block right, filling with zero bits.
    """
    @staticmethod
    def operate(a, b): return a >> b
    @staticmethod
    def inplace(a, b): a >>= b

Ancestors

Class variables

var required_dependencies
var optional_dependencies

Static methods

def operate(a, b)
Expand source code Browse git
@staticmethod
def operate(a, b): return a >> b
def inplace(a, b)
Expand source code Browse git
@staticmethod
def inplace(a, b): a >>= b

Inherited members