aboutsummaryrefslogtreecommitdiff
path: root/src/lj_str.h
diff options
context:
space:
mode:
authorMike Pall <mike>2013-03-25 16:41:13 +0100
committerMike Pall <mike>2013-03-25 16:41:13 +0100
commit59329cfbbf1362bc17f5a13c10a1c3b9557321ef (patch)
tree2f9753b74eeddcc4850dc2c19f423623e0122198 /src/lj_str.h
parent3b0b3afbb1357cbf206b56a46cd03955b201fa4b (diff)
downloadluajit-59329cfbbf1362bc17f5a13c10a1c3b9557321ef.tar.gz
luajit-59329cfbbf1362bc17f5a13c10a1c3b9557321ef.tar.bz2
luajit-59329cfbbf1362bc17f5a13c10a1c3b9557321ef.zip
Optimize and refactor printing of numbers to buffers.
Diffstat (limited to 'src/lj_str.h')
-rw-r--r--src/lj_str.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lj_str.h b/src/lj_str.h
index 6317e794..61666a2a 100644
--- a/src/lj_str.h
+++ b/src/lj_str.h
@@ -20,8 +20,9 @@ LJ_FUNC void LJ_FASTCALL lj_str_free(global_State *g, GCstr *s);
20#define lj_str_newlit(L, s) (lj_str_new(L, "" s, sizeof(s)-1)) 20#define lj_str_newlit(L, s) (lj_str_new(L, "" s, sizeof(s)-1))
21 21
22/* Type conversions. */ 22/* Type conversions. */
23LJ_FUNC MSize LJ_FASTCALL lj_str_bufnum(char *s, cTValue *o); 23LJ_FUNC char * LJ_FASTCALL lj_str_bufint(char *buf, int32_t k);
24LJ_FUNC MSize LJ_FASTCALL lj_str_bufptr(char *p, const void *v); 24LJ_FUNC char * LJ_FASTCALL lj_str_bufnum(char *p, cTValue *o);
25LJ_FUNC char * LJ_FASTCALL lj_str_bufptr(char *p, const void *v);
25LJ_FUNC const char *lj_str_buftv(char *buf, cTValue *o, MSize *lenp); 26LJ_FUNC const char *lj_str_buftv(char *buf, cTValue *o, MSize *lenp);
26LJ_FUNCA GCstr * LJ_FASTCALL lj_str_fromnum(lua_State *L, const lua_Number *np); 27LJ_FUNCA GCstr * LJ_FASTCALL lj_str_fromnum(lua_State *L, const lua_Number *np);
27LJ_FUNC GCstr * LJ_FASTCALL lj_str_fromint(lua_State *L, int32_t k); 28LJ_FUNC GCstr * LJ_FASTCALL lj_str_fromint(lua_State *L, int32_t k);