Re:Base52 url shortener perfect hash function in C
by steilpass on Friday July 03, 2009 @03:51AM
(#685761)
So what does likely() do?
[ Parent
| on HN ]
Re:Base52 url shortener perfect hash function in C
by unlink on Friday July 03, 2009 @04:08AM
(#685772)
Presumably it is defined to __builtin_expect(x, 1)[0], a hint to gcc that one branch (in this case the first) of the if is more likely.
Re:Base52 url shortener perfect hash function in C
by termie on Friday July 03, 2009 @04:21AM
(#685777)
macro for gcc __builtin_expect? http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html