From 8788b9b33ec46e3f96170fb35a70a03addbf9671 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Wed, 10 Mar 2021 15:04:13 +0200 Subject: refactor && improve. Make code more reusable and generic while preparing to add uncached ops. Signed-off-by: Gediminas Jakutis --- src/util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index af819f4..f2a84f9 100644 --- a/src/util.h +++ b/src/util.h @@ -7,6 +7,11 @@ #include "defs.h" +int stream_rewind(struct stream * const restrict in); +int split(struct stream * const src, struct stream * const A, struct stream * const B); + +/* inline crap below */ + static inline int is_less_equal(const field a, const field b) __attribute__((always_inline)); static inline int is_less_equal(const field a, const field b) -- cgit v1.2.3