codingforfan
Sorry, we encountered an error while displaying this content. If you're a user, please try again later. If you're an administrator, take a look in your Flarum log files for more information.
doujiang24
Sorry, we encountered an error while displaying this content. If you're a user, please try again later. If you're an administrator, take a look in your Flarum log files for more information.
agentzh
Hello!
On Wed, Jun 8, 2016 at 3:14 AM, codingforfan wrote:
> 看到luajit2.1已经支持64bit位运算了,然后升级了下luajit,貌似并不管用呢,求解?
>
> http://luajit.org/sponsors.html#sponsorship_bit64
>
> 或者有其他方法来支持64bit的位运算么?
>
可以。通过 int64_t 或者 uint64_t 类型的 FFI cdata 类型。比如:
$ luajit -e 'local bit = require "bit" print(bit.lshift(0xffffffffffLL, 1))'
2199023255550LL
Regards,
-agentzh
codingforfan
Sorry, we encountered an error while displaying this content. If you're a user, please try again later. If you're an administrator, take a look in your Flarum log files for more information.
jianchen2580
Sorry, we encountered an error while displaying this content. If you're a user, please try again later. If you're an administrator, take a look in your Flarum log files for more information.
yuansheng
Sorry, we encountered an error while displaying this content. If you're a user, please try again later. If you're an administrator, take a look in your Flarum log files for more information.