Merge fixes in r10.10
[jpcrr.git] / lua / signedtest.lua
blobce4df1e73f72c8f26a1ed8e959c3501430549287
1 print("bit.signextend(0x85, 6)=" .. bit.tohex(bit.signextend(0x85, 6)));
2 print("bit.signextend(0x85, 7)=" .. bit.tohex(bit.signextend(0x85, 7)));
3 print("bit.signextend(0x85, 8)=" .. bit.tohex(bit.signextend(0x85, 8)));
4 print("bit.tosigned(0x85, 6)=" .. bit.tosigned(0x85, 6));
5 print("bit.tosigned(0x85, 7)=" .. bit.tosigned(0x85, 7));
6 print("bit.tosigned(0x85, 8)=" .. bit.tosigned(0x85, 8));