| 1030 | |
| 1031 | |
| 1032 | void CStat::updateRepartition(T_dynamicalRepartition* P_tabReport, |
| 1033 | int P_sizeOfTab, |
| 1034 | unsigned long P_value) |
| 1035 | { |
| 1036 | if(P_tabReport == nullptr) { |
| 1037 | return; |
| 1038 | } |
| 1039 | |
| 1040 | for (int i = 0; i < P_sizeOfTab - 1; i++) { |
| 1041 | if (P_value < P_tabReport[i].borderMax) { |
| 1042 | P_tabReport[i].nbInThisBorder++; |
| 1043 | return; |
| 1044 | } |
| 1045 | } |
| 1046 | |
| 1047 | /* If this is not true, we never should have gotten here. */ |
| 1048 | assert(P_value >= P_tabReport[P_sizeOfTab-1].borderMax); |
| 1049 | P_tabReport[P_sizeOfTab-1].nbInThisBorder ++; |
| 1050 | } |
| 1051 | |
| 1052 | void CStat::resetRepartition(T_dynamicalRepartition* P_tabReport, |
| 1053 | int P_sizeOfTab) |
nothing calls this directly
no outgoing calls
no test coverage detected