16 lines
846 B
Plaintext
16 lines
846 B
Plaintext
//---------------------------------------------------------------------------
|
|
#ifndef mathToolsH
|
|
#define mathToolsH
|
|
//---------------------------------------------------------------------------
|
|
typedef unsigned int uint4;
|
|
typedef unsigned char uint1;
|
|
//---------------------------------------------------------------------------
|
|
bool testBit(const unsigned char *mas,const unsigned char pos); //ïðîâåðêà çíà÷åíèÿ áèòà
|
|
void setBit(unsigned char *mas,const unsigned char pos,bool val);//óñòàíîâèòü çàäàííûé áèò â 1 èëè â 0
|
|
|
|
uint1 setBitVal(uint1 bit,uint1 pos,bool val); //<Óñòàíîâèò çííà÷åíèå áèòà â çàäàííóþ ïîçèöèþ
|
|
bool getBitVal(uint1 bit,uint1 pos); //<Âåðí¸ò çíà÷åíèå áèòà íà çàäàííîé ïîçèöèè
|
|
long getBaudRate(long s);
|
|
int MaxI4_2(int v1,int v2);
|
|
//------------------------------------------------------------------------------
|
|
#endif |