comparison Meerwald-dir/signature-utils.h @ 24:9f20bce6184e v0.7

move directories, support netpbm 11
author Peter Meerwald-Stadler <pmeerw@pmeerw.net>
date Fri, 20 Dec 2024 13:08:59 +0100
parents Meerwald/signature-utils.h@bd669312f068
children
comparison
equal deleted inserted replaced
23:71dd4b96221b 24:9f20bce6184e
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

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.