MCPcopy Create free account
hub / github.com/WheretIB/nullc / GenCodeCmdDtoI

Function GenCodeCmdDtoI

NULLC/CodeGen_X86.cpp:1657–1665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1655int (*doubleToIntPtr)(double) = DoubleToInt;
1656
1657void GenCodeCmdDtoI(VMCmd cmd)
1658{
1659 (void)cmd;
1660 EMIT_COMMENT("DTOI");
1661
1662 EMIT_OP_RPTR(o_call, sDWORD, rNONE, 1, rNONE, (unsigned)(intptr_t)&doubleToIntPtr);
1663 EMIT_OP_REG_NUM(o_add, rESP, 8);
1664 EMIT_OP_REG(o_push, rEAX);
1665}
1666
1667long long DoubleToLong(double a)
1668{

Callers

nothing calls this directly

Calls 4

EMIT_COMMENTFunction · 0.85
EMIT_OP_RPTRFunction · 0.85
EMIT_OP_REG_NUMFunction · 0.85
EMIT_OP_REGFunction · 0.85

Tested by

no test coverage detected