module DL::PackInfo

Constants

ALIGN_MAP
PACK_MAP
SIZE_MAP

Public Class Methods

align(addr, align) click to toggle source
# File ext/dl/lib/dl/pack.rb, line 52
def align(addr, align)
  d = addr % align
  if( d == 0 )
    addr
  else
    addr + (align - d)
  end
end

Private Instance Methods

align(addr, align) click to toggle source
# File ext/dl/lib/dl/pack.rb, line 52
def align(addr, align)
  d = addr % align
  if( d == 0 )
    addr
  else
    addr + (align - d)
  end
end