Class: AsmJIT::Imm

Inherits:
Operand show all
Defined in:
ext/asmjit/asmjit.cc

Class Method Summary collapse

Methods inherited from Operand

#inspect, #to_s

Class Method Details

.new(val) ⇒ Object



252
253
254
255
256
257
258
# File 'ext/asmjit/asmjit.cc', line 252

static VALUE imm_new(VALUE _self, VALUE val) {
    Imm imm = Imm(NUM2LL(val));

    OperandWrapper *wrapper = static_cast<OperandWrapper *>(xmalloc(sizeof(OperandWrapper)));
    wrapper->opnd = imm;
    return TypedData_Wrap_Struct(_self, &operand_type, wrapper);
}