projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
likely/unlikely branch prediction
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
lttv
/
hook.h
diff --git
a/ltt/branches/poly/lttv/lttv/hook.h
b/ltt/branches/poly/lttv/lttv/hook.h
index 502ac5c8732b4b337fd9f4b6db3e2492fd1e62b7..7da21346f2c2cd3f82b55e3e658bed53b0ed49f6 100644
(file)
--- a/
ltt/branches/poly/lttv/lttv/hook.h
+++ b/
ltt/branches/poly/lttv/lttv/hook.h
@@
-144,10
+144,10
@@
unsigned lttv_hooks_by_id_max_id(LttvHooksById *h);
/* Get the list of hooks for an id, NULL if none exists */
/* Get the list of hooks for an id, NULL if none exists */
-inline LttvHooks *lttv_hooks_by_id_get(LttvHooksById *h, unsigned id)
+
static
inline LttvHooks *lttv_hooks_by_id_get(LttvHooksById *h, unsigned id)
{
LttvHooks *ret;
{
LttvHooks *ret;
- if(
id < h->len
) ret = h->pdata[id];
+ if(
likely(id < h->len)
) ret = h->pdata[id];
else ret = NULL;
return ret;
else ret = NULL;
return ret;
This page took
0.02624 seconds
and
4
git commands to generate.