Changeset 93689 in vbox for trunk/include/iprt/cpp
- Timestamp:
- Feb 11, 2022 2:00:56 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cpp/hardavlrange.h
r93685 r93689 731 731 * @param a_pAllocator Pointer to the allocator. 732 732 * @param a_pStack Pointer to stack to rewind. 733 * @param a_fLog Log is done (DEBUG builds only). 733 734 * 734 735 * @code … … 781 782 * @internal 782 783 */ 783 int i_rebalance(RTCHardAvlTreeSlabAllocator<NodeType> *a_pAllocator, HardAvlStack *a_pStack, bool fLog = false)784 { 785 RT_NOREF( fLog);784 int i_rebalance(RTCHardAvlTreeSlabAllocator<NodeType> *a_pAllocator, HardAvlStack *a_pStack, bool a_fLog = false) 785 { 786 RT_NOREF(a_fLog); 786 787 787 788 while (a_pStack->cEntries > 0) … … 842 843 *pidxNode = idxLeftNode; 843 844 #ifdef DEBUG 844 if ( fLog) RTAssertMsg2("rebalance: %#2u: op #1\n", a_pStack->cEntries);845 if (a_fLog) RTAssertMsg2("rebalance: %#2u: op #1\n", a_pStack->cEntries); 845 846 #endif 846 847 } … … 864 865 *pidxNode = idxLeftRightNode; 865 866 #ifdef DEBUG 866 if ( fLog) RTAssertMsg2("rebalance: %#2u: op #2\n", a_pStack->cEntries);867 if (a_fLog) RTAssertMsg2("rebalance: %#2u: op #2\n", a_pStack->cEntries); 867 868 #endif 868 869 } … … 896 897 *pidxNode = idxRightNode; 897 898 #ifdef DEBUG 898 if ( fLog) RTAssertMsg2("rebalance: %#2u: op #3 h=%d, *pidxNode=%#x\n", a_pStack->cEntries, pRightNode->cHeight, *pidxNode);899 if (a_fLog) RTAssertMsg2("rebalance: %#2u: op #3 h=%d, *pidxNode=%#x\n", a_pStack->cEntries, pRightNode->cHeight, *pidxNode); 899 900 #endif 900 901 RTHARDAVL_STRICT_CHECK_HEIGHTS(pRightNode, NULL, 0); … … 920 921 *pidxNode = idxRightLeftNode; 921 922 #ifdef DEBUG 922 if ( fLog) RTAssertMsg2("rebalance: %#2u: op #4 h=%d, *pidxNode=%#x\n", a_pStack->cEntries, pRightLeftNode->cHeight, *pidxNode);923 if (a_fLog) RTAssertMsg2("rebalance: %#2u: op #4 h=%d, *pidxNode=%#x\n", a_pStack->cEntries, pRightLeftNode->cHeight, *pidxNode); 923 924 #endif 924 925 } … … 931 932 { 932 933 #ifdef DEBUG 933 if ( fLog) RTAssertMsg2("rebalance: %#2u: op #5, h=%d - done\n", a_pStack->cEntries, cHeight);934 if (a_fLog) RTAssertMsg2("rebalance: %#2u: op #5, h=%d - done\n", a_pStack->cEntries, cHeight); 934 935 #endif 935 936 RTHARDAVL_STRICT_CHECK_HEIGHTS(pNode, NULL, 0); … … 941 942 } 942 943 #ifdef DEBUG 943 if ( fLog) RTAssertMsg2("rebalance: %#2u: op #5, h=%d - \n", a_pStack->cEntries, cHeight);944 if (a_fLog) RTAssertMsg2("rebalance: %#2u: op #5, h=%d - \n", a_pStack->cEntries, cHeight); 944 945 #endif 945 946 pNode->cHeight = cHeight;
Note:
See TracChangeset
for help on using the changeset viewer.