MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / rotateLeft

Function rotateLeft

Engine/source/platform/platformMemory.cpp:472–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470
471#if !defined(TORQUE_DISABLE_MEMORY_MANAGER)
472static void rotateLeft(TreeNode *hdr)
473{
474 TreeNode *temp = hdr->right;
475 hdr->right = temp->left;
476 if(temp->left != NIL)
477 temp->left->parent = hdr;
478 temp->parent = hdr->parent;
479 if(temp->parent == NIL)
480 gFreeTreeRoot = temp;
481 else if(hdr == hdr->parent->left)
482 hdr->parent->left = temp;
483 else
484 hdr->parent->right = temp;
485 temp->left = hdr;
486 hdr->parent = temp;
487}
488#endif
489
490#if !defined(TORQUE_DISABLE_MEMORY_MANAGER)

Callers 2

treeInsertFunction · 0.85
treeRemoveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected