diff options
author | Mike Pall <mike> | 2013-02-22 01:44:17 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2013-02-22 01:44:17 +0100 |
commit | 19d565145592b45713adfd474224a1e46a533a99 (patch) | |
tree | bc0d9571abe59cfe2b977d2d3a13809526fb6181 /src/host | |
parent | e20157c6e68472e7c4d82d9ed4c0bb5be029c388 (diff) | |
download | luajit-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.h | 7 |
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 @@ | |||
3 | static const int libbc_endian = 0; | 3 | static const int libbc_endian = 0; |
4 | 4 | ||
5 | static const uint8_t libbc_code[] = { | 5 | static const uint8_t libbc_code[] = { |
6 | 0 | 6 | 0,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, |
7 | 0,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 | ||
9 | static const struct { const char *name; int ofs; } libbc_map[] = { | 10 | static 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 | ||