From 790d6dcfc531005a5d7ca2f79460d593d61bb1a0 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Mon, 17 Feb 2020 00:10:12 +0200 Subject: now sets proper stride. Signed-off-by: Gediminas Jakutis --- src/io.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/io.h') diff --git a/src/io.h b/src/io.h index 79216f2..b7c0ebd 100644 --- a/src/io.h +++ b/src/io.h @@ -2,15 +2,28 @@ #define ALGOS_IO_H_INCLUDED #include +#include struct stream { size_t n; size_t stride; + ssize_t last_idx; int fd; int out; char *name; }; +/* for array implementation */ +struct entry_a { + uint64_t val; +}; + +/* for linked list implementation */ +struct entry_l { + uint32_t i; /* "pointer" to the next element. */ + uint64_t val; +}; + int stream_open(struct stream *in); int stream_close(struct stream *in); -- cgit v1.2.3