========================================================================== The atan2 opcode only takes registers as parameters, so any constants must be loaded into registers first. ==========================================================================
| 5686 | // |
| 5687 | //========================================================================== |
| 5688 | ExpEmit FxATan2::ToReg(VMFunctionBuilder* build, FxExpression* val) |
| 5689 | { |
| 5690 | if (val->isConstant()) |
| 5691 | { |
| 5692 | ExpEmit reg(build, REGT_FLOAT); |
| 5693 | build->Emit(OP_LKF, reg.RegNum, build->GetConstantFloat(static_cast<FxConstant*>(val)->GetValue().GetFloat())); |
| 5694 | return reg; |
| 5695 | } |
| 5696 | return val->Emit(build); |
| 5697 | } |
| 5698 | |
| 5699 | //========================================================================== |
| 5700 | // |
nothing calls this directly
no test coverage detected