Mercurial > hg > wm
comparison Meerwald/signature-utils.h @ 20:bd669312f068
suppress warnings, fix link errors
author | Peter Meerwald-Stadler <pmeerw@pmeerw.net> |
---|---|
date | Sat, 28 Jan 2023 23:54:58 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
19:0fffb6f03ebf | 20:bd669312f068 |
---|---|
1 #ifndef SIGNATURE_UTILS_H | |
2 #define SIGNATURE_UTILS_H | |
3 | |
4 #define NSIGNATURE 4096 | |
5 #define NBITSIGNATURE (NSIGNATURE * 8) | |
6 | |
7 extern int n_signature; | |
8 extern int nbit_signature; | |
9 extern int n_signature1; | |
10 extern int nbit_signature1; | |
11 extern int n_signature2; | |
12 extern int nbit_signature2; | |
13 | |
14 extern char signature[NSIGNATURE]; | |
15 extern char signature1[NSIGNATURE]; | |
16 extern char signature2[NSIGNATURE]; | |
17 | |
18 void init_signature_bits(); | |
19 int get_signature_bit(int n); | |
20 void set_signature_bit(int n, int v); | |
21 | |
22 void init_signature1_bits(); | |
23 int get_signature1_bit(int n); | |
24 void set_signature1_bit(int n, int v); | |
25 | |
26 void init_signature2_bits(); | |
27 int get_signature2_bit(int n); | |
28 void set_signature2_bit(int n, int v); | |
29 | |
30 int binstr_to_sig(const char *binstr); | |
31 int binstr_to_sig1(const char *binstr); | |
32 int binstr_to_sig2(const char *binstr); | |
33 int sig_to_binstr(char *binstr); | |
34 int sig1_to_binstr(char *binstr); | |
35 int sig2_to_binstr(char *binstr); | |
36 | |
37 #endif |