summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorMike Pall <mike>2013-02-22 01:44:17 +0100
committerMike Pall <mike>2013-02-22 01:44:17 +0100
commit19d565145592b45713adfd474224a1e46a533a99 (patch)
treebc0d9571abe59cfe2b977d2d3a13809526fb6181 /src/host
parente20157c6e68472e7c4d82d9ed4c0bb5be029c388 (diff)
downloadluajit-19d565145592b45713adfd474224a1e46a533a99.tar.gz
luajit-19d565145592b45713adfd474224a1e46a533a99.tar.bz2
luajit-19d565145592b45713adfd474224a1e46a533a99.zip
Replace math.deg/math.rad with builtin Lua function.
Diffstat (limited to 'src/host')
-rw-r--r--src/host/buildvm_libbc.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/host/buildvm_libbc.h b/src/host/buildvm_libbc.h
index d2d83ea6..ee97836a 100644
--- a/src/host/buildvm_libbc.h
+++ b/src/host/buildvm_libbc.h
@@ -3,10 +3,13 @@
3static const int libbc_endian = 0; 3static const int libbc_endian = 0;
4 4
5static const uint8_t libbc_code[] = { 5static const uint8_t libbc_code[] = {
60 60,1,2,0,0,1,2,22,1,0,0,72,1,2,0,241,135,158,166,3,220,203,178,130,4,0,1,2,0,
70,1,2,22,1,0,0,72,1,2,0,243,244,148,165,20,198,190,199,252,3,0
7}; 8};
8 9
9static const struct { const char *name; int ofs; } libbc_map[] = { 10static const struct { const char *name; int ofs; } libbc_map[] = {
10{NULL,0} 11{"math_deg",0},
12{"math_rad",25},
13{NULL,50}
11}; 14};
12 15