MCPcopy Create free account
hub / github.com/ZDoom/Raze / EncodeRegType

Function EncodeRegType

source/common/scripting/backend/codegen.cpp:491–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489//==========================================================================
490
491int EncodeRegType(ExpEmit reg)
492{
493 int regtype = reg.RegType;
494 if (reg.Fixed && reg.Target)
495 {
496 regtype |= REGT_ADDROF;
497 }
498 if (reg.Konst)
499 {
500 regtype |= REGT_KONST;
501 }
502 else if (reg.RegCount == 2)
503 {
504 regtype |= REGT_MULTIREG2;
505 }
506 else if (reg.RegCount == 3)
507 {
508 regtype |= REGT_MULTIREG3;
509 }
510 else if (reg.RegCount == 4)
511 {
512 regtype |= REGT_MULTIREG4;
513 }
514 return regtype;
515}
516
517
518//==========================================================================

Callers 4

AddParameterMethod · 0.85
EmitCallMethod · 0.85
CheckEmitCastMethod · 0.85
EmitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected