annotate Meerwald/signature.h @ 5:8191b855cd5e

Added tag v0.5 for changeset 9cf6ec970448
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Tue, 14 Aug 2007 21:13:29 +0200
parents acb6967ee76d
children bd669312f068
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
1 #ifndef SIGNATURE_H
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
2 #define SIGNATURE_H
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
3
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
4 #include "wm.h"
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
5
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
6 #define NSIGNATURE 4096
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
7 #define NBITSIGNATURE (NSIGNATURE * 8)
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
8
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
9 int n_signature;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
10 int nbit_signature;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
11 int n_signature1;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
12 int nbit_signature1;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
13 int n_signature2;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
14 int nbit_signature2;
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
15
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
16 char signature[NSIGNATURE];
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
17 char signature1[NSIGNATURE];
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
18 char signature2[NSIGNATURE];
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
19
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
20 void init_signature_bits();
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
21 int get_signature_bit(int n);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
22 void set_signature_bit(int n, int v);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
23
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
24 void init_signature1_bits();
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
25 int get_signature1_bit(int n);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
26 void set_signature1_bit(int n, int v);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
27
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
28 void init_signature2_bits();
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
29 int get_signature2_bit(int n);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
30 void set_signature2_bit(int n, int v);
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
31
3
acb6967ee76d update to 0.5
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents: 0
diff changeset
32 int binstr_to_sig(const char *binstr);
acb6967ee76d update to 0.5
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents: 0
diff changeset
33 int binstr_to_sig1(const char *binstr);
acb6967ee76d update to 0.5
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents: 0
diff changeset
34 int binstr_to_sig2(const char *binstr);
acb6967ee76d update to 0.5
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents: 0
diff changeset
35 int sig_to_binstr(char *binstr);
acb6967ee76d update to 0.5
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents: 0
diff changeset
36 int sig1_to_binstr(char *binstr);
acb6967ee76d update to 0.5
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents: 0
diff changeset
37 int sig2_to_binstr(char *binstr);
acb6967ee76d update to 0.5
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents: 0
diff changeset
38
0
Peter Meerwald <pmeerw@cosy.sbg.ac.at>
parents:
diff changeset
39 #endif

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