From dba22c7aea8da5eeddd51ce653af9ddcbf212bb1 Mon Sep 17 00:00:00 2001 From: "Stephen R. van den Berg" <srb@cuci.nl> Date: Wed, 10 Sep 2014 14:57:13 +0200 Subject: [PATCH] Compilerhints. --- src/stralloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stralloc.c b/src/stralloc.c index aa3af8f3f6..ddfe9635d0 100644 --- a/src/stralloc.c +++ b/src/stralloc.c @@ -233,7 +233,7 @@ static INLINE int find_magnitude2(const p_wchar2 *s, ptrdiff_t len) static INLINE unsigned min_magnitude(const unsigned c) { - return c<256 ? 0 : c<65536 ? 1 : 2; + return LIKELY(c<256) ? 0 : LIKELY(c<65536) ? 1 : 2; } void low_set_index(struct pike_string *s, ptrdiff_t pos, int value) -- GitLab