tools/android/elf_compression/compress_section.py
def AlignUp(addr, page_size=ADDRESS_ALIGN):
  """Rounds up given address to be aligned to page_size.

  Args:
    addr: int. Virtual address to be aligned.
    page_size: int. Page size to be used for the alignment.
  """
  if addr % page_size != 0:
    addr += page_size - (addr % page_size)
  return addr
Rounds up given address to be aligned to page_size.

  Args:
    addr: int. Virtual address to be aligned.
    page_size: int. Page size to be used for the alignment.
  
Rounds up given address to be aligned to page_size.
Rounds up given address to be aligned to page_size .
def AlignUp(addr, page_size=ADDRESS_ALIGN):
  if addr % page_size != 0:
    addr += page_size - (addr % page_size)
  return addr
def AlignUp ( addr , page_size = ADDRESS_ALIGN ) : if addr % page_size != 0 : addr += page_size - ( addr % page_size ) return addr
Rounds up given address to be aligned to page_size.
Rounds up given address to be aligned to page_size .
"""Rounds up given address to be aligned to page_size.

  Args:
    addr: int. Virtual address to be aligned.
    page_size: int. Page size to be used for the alignment.
  """
addr
int. Virtual address to be aligned.
int . Virtual address to be aligned .
page_size
int. Page size to be used for the alignment.
int . Page size to be used for the alignment .