diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-09-01 13:56:46 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-09-01 13:56:46 +0200 |
commit | 22f703cab05b7cd368f4de9e03991b7664dc5022 (patch) | |
tree | 6f4d50beaa42328e24b1c6b56b6ec059e4ef21a5 /target/randix.h |
Initial import of argyll version 1.5.1-8debian/1.5.1-8
Diffstat (limited to 'target/randix.h')
-rw-r--r-- | target/randix.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/target/randix.h b/target/randix.h new file mode 100644 index 0000000..b4c36c0 --- /dev/null +++ b/target/randix.h @@ -0,0 +1,41 @@ + +#ifndef RANDIX_H +/* + * Argyll Color Correction System + * + * Random array indexing class + * + * Author: Graeme W. Gill + * Date: 16/10/96 + * + * Copyright 1996, Graeme W. Gill + * All rights reserved. + * + * This material is licenced under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 :- + * see the License.txt file for licencing details. + */ + +struct _randix { +/* private: */ + int tbit; /* Top bit mask */ + int mask; /* Overall mask */ + int xorm; /* Xor value */ + int length; /* Length needed */ + int ss; /* Current value */ + +/* public: */ + /* return the next in the sequence */ + int (*next)(struct _randix *p); + + /* Destroy ourselves */ + void (*del)(struct _randix *p); + + }; typedef struct _randix randix; + +/* Creator */ +/* Counts withing range 0 to length-1 */ +extern randix *new_randix(int length, int start); + + +#define RANDIX_H +#endif /* RANDIX_H */ |