forked from liexusong/php-beast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbit.h
25 lines (18 loc) · 1.08 KB
/
bit.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*****************************************************************************
* *
* --------------------------------- bit.h -------------------------------- *
* *
*****************************************************************************/
#ifndef BIT_H
#define BIT_H
/*****************************************************************************
* *
* --------------------------- Public Interface --------------------------- *
* *
*****************************************************************************/
int bit_get(const unsigned char *bits, int pos);
void bit_set(unsigned char *bits, int pos, int state);
void bit_xor(const unsigned char *bits1, const unsigned char *bits2, unsigned
char *bitsx, int size);
void bit_rot_left(unsigned char *bits, int size, int count);
#endif