mirror of https://github.com/rusefi/lua.git
new names for bit functions (mimicking assembler)
This commit is contained in:
parent
6098e06e09
commit
572e5e6b28
22
lbitlib.c
22
lbitlib.c
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: lbitlib.c,v 1.7 2010/10/25 14:32:36 roberto Exp roberto $
|
** $Id: lbitlib.c,v 1.8 2010/10/25 20:31:11 roberto Exp roberto $
|
||||||
** Standard library for bitwise operations
|
** Standard library for bitwise operations
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -134,16 +134,16 @@ static int b_ror (lua_State *L) {
|
||||||
|
|
||||||
|
|
||||||
static const luaL_Reg bitlib[] = {
|
static const luaL_Reg bitlib[] = {
|
||||||
{"band", b_and},
|
{"AND", b_and},
|
||||||
{"btest", b_test},
|
{"TEST", b_test},
|
||||||
{"bor", b_or},
|
{"OR", b_or},
|
||||||
{"bxor", b_xor},
|
{"XOR", b_xor},
|
||||||
{"bnot", b_not},
|
{"NOT", b_not},
|
||||||
{"lshift", b_lshift},
|
{"SHL", b_lshift},
|
||||||
{"arshift", b_arshift},
|
{"SAR", b_arshift},
|
||||||
{"rshift", b_rshift},
|
{"SHR", b_rshift},
|
||||||
{"rol", b_rol},
|
{"ROL", b_rol},
|
||||||
{"ror", b_ror},
|
{"ROR", b_ror},
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue