tools/android/elf_compression/compress_section.py
def MatchVaddrAlignment(vaddr, offset, align=ADDRESS_ALIGN):
  """Align vaddr to comply with ELF standard binary alignment.

  Increases vaddr until the following is true:
    vaddr % align == offset % align

  Args:
    vaddr: virtual address to be aligned.
    offset: file offset to be aligned.
    align: alignment value.

  Returns:
    Aligned virtual address, bigger or equal than the vaddr.
  """
  delta = offset % align - vaddr % align
  if delta < 0:
    delta += align
  return vaddr + delta
Align vaddr to comply with ELF standard binary alignment.

  Increases vaddr until the following is true:
    vaddr % align == offset % align

  Args:
    vaddr: virtual address to be aligned.
    offset: file offset to be aligned.
    align: alignment value.

  Returns:
    Aligned virtual address, bigger or equal than the vaddr.
  
Align vaddr to comply with ELF standard binary alignment.
Increases vaddr until the following is true:
vaddr % align == offset % align
Align vaddr to comply with ELF standard binary alignment . Increases vaddr until the following is true : vaddr % align == offset % align
def MatchVaddrAlignment(vaddr, offset, align=ADDRESS_ALIGN):
  delta = offset % align - vaddr % align
  if delta < 0:
    delta += align
  return vaddr + delta
def MatchVaddrAlignment ( vaddr , offset , align = ADDRESS_ALIGN ) : delta = offset % align - vaddr % align if delta < 0 : delta += align return vaddr + delta
Align vaddr to comply with ELF standard binary alignment.
Align vaddr to comply with ELF standard binary alignment .
"""Align vaddr to comply with ELF standard binary alignment.

  Increases vaddr until the following is true:
    vaddr % align == offset % align

  Args:
    vaddr: virtual address to be aligned.
    offset: file offset to be aligned.
    align: alignment value.

  Returns:
    Aligned virtual address, bigger or equal than the vaddr.
  """
Aligned virtual address, bigger or equal than the vaddr.
Aligned virtual address bigger or equal than the vaddr .
vaddr
virtual address to be aligned.
virtual address to be aligned .
offset
file offset to be aligned.
file offset to be aligned .
align
None