original_docstring: returns a list of addresses that result from applying the given mask
docstring: returns a list of addresses that result from applying the given mask
docstring_tokens: returns a list of addresses that result from applying the given mask
code: def derive_registers(mask, address):
      """returns a list of addresses that result from applying the given mask"""
      base = address & mask.static | mask.enable
      floating = tuple(enumerate(mask.floating))
      for permutation in range(2**len(floating)):
          factors = [f[1] for f in floating if (2**f[0]) & permutation]
          yield reduce(operator.ior, factors, base)
code_tokens: def derive_registers ( mask , address ) : base = address & mask . static | mask . enable floating = tuple ( enumerate ( mask . floating ) ) for permutation in range ( 2 ** len ( floating ) ) : factors = [ f [ 1 ] for f in floating if ( 2 ** f [ 0 ] ) & permutation ] yield reduce ( operator . ior , factors , base )
short_docstring: returns a list of addresses that result from applying the given mask
short_docstring_tokens: returns a list of addresses that result from applying the given mask
comment: """returns a list of addresses that result from applying the given mask"""