MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / Summa

Function Summa

sourcecommon/utils.cpp:1137–1142  ·  view source on GitHub ↗

--------------------------------------------------------------------------- ������ ����������� ����� ������� ������ N �� ������ P

Source from the content-addressed store, hash-verified

1135//---------------------------------------------------------------------------
1136// ������ ����������� ����� ������� ������ N �� ������ P
1137BYTE Summa(void * P, WORD N)
1138{
1139 BYTE S = 0;
1140 for(int i=0; i<N; i++) S += ((BYTE *)P)[i];
1141 return S;
1142}
1143//---------------------------------------------------------------------------
1144BYTE FromBCD(BYTE val)
1145{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected