MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / rotateRight

Function rotateRight

Engine/source/platform/platformMemory.cpp:491–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489
490#if !defined(TORQUE_DISABLE_MEMORY_MANAGER)
491static void rotateRight(TreeNode *hdr)
492{
493 TreeNode *temp = hdr->left;
494 hdr->left = temp->right;
495 if(temp->right != NIL)
496 temp->right->parent = hdr;
497 temp->parent = hdr->parent;
498 if(temp->parent == NIL)
499 gFreeTreeRoot = temp;
500 else if(hdr == hdr->parent->left)
501 hdr->parent->left = temp;
502 else
503 hdr->parent->right = temp;
504 temp->right = hdr;
505 hdr->parent = temp;
506}
507#endif
508
509#if !defined(TORQUE_DISABLE_MEMORY_MANAGER)

Callers 2

treeInsertFunction · 0.85
treeRemoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected