def _calc_padding_for_alignment(align, base):
 rmdr = (int(base) % align)
 if (rmdr == 0):
  return 0
 else:
  return (align - rmdr)

def _calc_padding_for_alignment ( align , base ) : rmdr = ( int ( base ) % align ) if ( rmdr == 0 ) : return 0 else : return ( align - rmdr )
returns byte padding required to move the base pointer into proper alignment .