diff options
author | 2021-03-10 15:04:13 +0200 | |
---|---|---|
committer | 2021-03-10 15:33:58 +0200 | |
commit | 8788b9b33ec46e3f96170fb35a70a03addbf9671 (patch) | |
tree | 44b620061ca427f436e89c7beb80022febde1e58 /src/util.h | |
parent | d7e2af2582660e3ed4ce824c33a21ffbf9ed4c6f (diff) | |
download | algos-ld1-8788b9b33ec46e3f96170fb35a70a03addbf9671.tar.gz algos-ld1-8788b9b33ec46e3f96170fb35a70a03addbf9671.tar.bz2 algos-ld1-8788b9b33ec46e3f96170fb35a70a03addbf9671.zip |
refactor && improve.
Make code more reusable and generic while preparing to add uncached ops.
Signed-off-by: Gediminas Jakutis <gediminas@varciai.lt>
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |