Documented all methods and functions.

This commit is contained in:
Rhinemann 2023-06-27 17:53:18 +03:00
parent 32cf1e8712
commit 6afb9151fe
1 changed files with 4 additions and 4 deletions

View File

@ -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)