0
|
1 #ifndef SIGNATURE_H
|
|
2 #define SIGNATURE_H
|
|
3
|
|
4 #include "wm.h"
|
|
5
|
|
6 #define NSIGNATURE 4096
|
|
7 #define NBITSIGNATURE (NSIGNATURE * 8)
|
|
8
|
|
9 int n_signature;
|
|
10 int nbit_signature;
|
|
11 int n_signature1;
|
|
12 int nbit_signature1;
|
|
13 int n_signature2;
|
|
14 int nbit_signature2;
|
|
15
|
|
16 char signature[NSIGNATURE];
|
|
17 char signature1[NSIGNATURE];
|
|
18 char signature2[NSIGNATURE];
|
|
19
|
|
20 void init_signature_bits();
|
|
21 int get_signature_bit(int n);
|
|
22 void set_signature_bit(int n, int v);
|
|
23
|
|
24 void init_signature1_bits();
|
|
25 int get_signature1_bit(int n);
|
|
26 void set_signature1_bit(int n, int v);
|
|
27
|
|
28 void init_signature2_bits();
|
|
29 int get_signature2_bit(int n);
|
|
30 void set_signature2_bit(int n, int v);
|
|
31
|
3
|
32 int binstr_to_sig(const char *binstr);
|
|
33 int binstr_to_sig1(const char *binstr);
|
|
34 int binstr_to_sig2(const char *binstr);
|
|
35 int sig_to_binstr(char *binstr);
|
|
36 int sig1_to_binstr(char *binstr);
|
|
37 int sig2_to_binstr(char *binstr);
|
|
38
|
0
|
39 #endif
|