protoverse

A metaverse protocol
git clone git://jb55.com/protoverse
Log | Files | Refs | README | LICENSE

commit 7d3a18e4fed1a969370443df4507eda890fc77f0
parent d8edfcef44b3eaf5cf040d8fa13e241ffe596a5c
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 16 Jul 2021 10:42:30 -0700

add likely macro for good measure

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/cursor.h | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/cursor.h b/src/cursor.h @@ -9,7 +9,8 @@ #include <assert.h> #include <string.h> -#define unlikely(x) __builtin_expect((x),0) +#define unlikely(x) __builtin_expect((x),0) +#define likely(x) __builtin_expect((x),1) struct cursor { unsigned char *start;