Class: Duran::MachineContext

Inherits:
DRYStruct
  • Object
show all
Defined in:
lib/duran/structs/machine_context.rb

Defined Under Namespace

Classes: XMM_t

Constant Summary collapse

NUM_XMM_SLOTS =
::Duran::ARCH == :x64 ? ( ::Duran::PLATFORM == :windows ? 6 :  16) : 8

Instance Method Summary collapse

Instance Method Details

#xmmObject



70
71
72
73
74
75
76
77
# File 'lib/duran/structs/machine_context.rb', line 70

def xmm
  off=0
  Array.new(NUM_XMM_SLOTS) do
    r = XMM_t.new(self[:xmm_stub].to_ptr+off)
    off += XMM_t.size
    r
  end
end