From 56f20e30636c16fd14205ba7c29cf8089caa1260 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Sun, 14 Mar 2021 03:16:02 +0200 Subject: revert higher-than-64-bits support. Too much hassle to actually pretty-print that crap out. Signed-off-by: Gediminas Jakutis --- src/util.h | 38 -------------------------------------- 1 file changed, 38 deletions(-) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index f2a84f9..9299f52 100644 --- a/src/util.h +++ b/src/util.h @@ -10,42 +10,4 @@ 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) -{ - int ret; - -/* all sizes fitting in a primitive type */ -#if entry_field_size <= 64 - - ret = a <= b; - -/* composite of two 64bit */ -#elif entry_field_size == 128 - - if (unlikely(a.high == b.high)) { - ret = a.low <= b.low; - } else { - ret = a.high < b.high; - } - -/* composite of four 64bit */ -#elif entry_field_size == 256 - if (likely(a.high != b.high)) { - ret = a.high < b.high; - } else if (likely(a.midhigh != b.midhigh)){ - ret = a.midhigh < b.midhigh; - } else if (likely(a.midlow != b.midlow)){ - ret = a.midlow < b.midlow; - } else { - ret = a.low <= b.low; - } -#endif - - return ret; -} - #endif /* ALGOS_UTIL_H_INCLUDED */ -- cgit v1.2.3