diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-02-24 11:14:44 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-02-24 11:14:44 -0300 |
commit | 59c88f846d1dcd901a4420651aedf27816618923 (patch) | |
tree | 0e76a066c383cbc99cc2f60b8b4f97c5df45e479 /ldo.h | |
parent | c03c527fd207b4ad8f5a8e0f4f2c176bd227c979 (diff) | |
download | lua-59c88f846d1dcd901a4420651aedf27816618923.tar.gz lua-59c88f846d1dcd901a4420651aedf27816618923.tar.bz2 lua-59c88f846d1dcd901a4420651aedf27816618923.zip |
Broadening the use of branch hints
More uses of macros 'likely'/'unlikely' (renamed to
'l_likely'/'l_unlikely'), both in range (extended to the
libraries) and in scope (extended to hooks, stack growth).
Diffstat (limited to 'ldo.h')
-rw-r--r-- | ldo.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -23,7 +23,7 @@ | |||
23 | ** at every check. | 23 | ** at every check. |
24 | */ | 24 | */ |
25 | #define luaD_checkstackaux(L,n,pre,pos) \ | 25 | #define luaD_checkstackaux(L,n,pre,pos) \ |
26 | if (L->stack_last - L->top <= (n)) \ | 26 | if (l_unlikely(L->stack_last - L->top <= (n))) \ |
27 | { pre; luaD_growstack(L, n, 1); pos; } \ | 27 | { pre; luaD_growstack(L, n, 1); pos; } \ |
28 | else { condmovestack(L,pre,pos); } | 28 | else { condmovestack(L,pre,pos); } |
29 | 29 | ||