diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-09-22 11:18:24 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-09-22 11:18:24 -0300 |
commit | 9fae7b6d3fca02b4661aaa7c16e9fbeec8964b9b (patch) | |
tree | 03898a73c1aa5c7ae600e1ba11a514b1c50edeef /ltests.h | |
parent | 0f1f51be4b1e2fb561b2ec6dce7fe292d5b3764d (diff) | |
download | lua-9fae7b6d3fca02b4661aaa7c16e9fbeec8964b9b.tar.gz lua-9fae7b6d3fca02b4661aaa7c16e9fbeec8964b9b.tar.bz2 lua-9fae7b6d3fca02b4661aaa7c16e9fbeec8964b9b.zip |
code for string cache generalized for "associative sets" (compiler
will optimize away or inline the extra loops)
Diffstat (limited to 'ltests.h')
-rw-r--r-- | ltests.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.h,v 2.47 2014/12/26 14:44:44 roberto Exp roberto $ | 2 | ** $Id: ltests.h,v 2.48 2015/06/18 14:27:44 roberto Exp roberto $ |
3 | ** Internal Header for Debugging of the Lua Implementation | 3 | ** Internal Header for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -118,5 +118,9 @@ LUA_API void *debug_realloc (void *ud, void *block, | |||
118 | #undef LUAI_USER_ALIGNMENT_T | 118 | #undef LUAI_USER_ALIGNMENT_T |
119 | #define LUAI_USER_ALIGNMENT_T union { char b[sizeof(void*) * 8]; } | 119 | #define LUAI_USER_ALIGNMENT_T union { char b[sizeof(void*) * 8]; } |
120 | 120 | ||
121 | |||
122 | #define STRCACHE_N 23 | ||
123 | #define STRCACHE_M 5 | ||
124 | |||
121 | #endif | 125 | #endif |
122 | 126 | ||