Documented all methods and functions.
This commit is contained in:
parent
32cf1e8712
commit
6afb9151fe
|
@ -171,14 +171,14 @@ def binary_subtraction(minuend: BasicRegister, subtrahend: BasicRegister) -> Bas
|
|||
# return first_register, second_register
|
||||
|
||||
|
||||
def align_registers(*args: BasicRegister) -> tuple[BasicRegister, ...]:
|
||||
def align_registers(*registers: BasicRegister) -> tuple[BasicRegister, ...]:
|
||||
"""
|
||||
Aligns registers by the length of the bigger one.
|
||||
|
||||
:param args: Basic registers to align.
|
||||
:param BasicRegister registers: Registers to align.
|
||||
|
||||
:return: Aligned registers.
|
||||
:rtype: tuple[BasicRegister, ...]
|
||||
"""
|
||||
required_size: int = max(map(len, args))
|
||||
return tuple(reg.adjusted_by_size(required_size) for reg in args)
|
||||
required_size: int = max(map(len, registers))
|
||||
return tuple(reg.adjusted_by_size(required_size) for reg in registers)
|
||||
|
|
Loading…
Reference in New Issue