Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Bitwise operations on Gideros Mobile — Gideros Forum

Bitwise operations on Gideros Mobile

omeromer Member
edited November 2012 in Plugins
I am looking for a solution for bitwise operations on Gideros Mobile.

I checked that,
require "bit"
is not working on Gideros.

I need http://bitop.luajit.org/ compatible a plugin on Gideros.
How can I convert this library for Gideros Mobile?
Tagged:

Comments

  • There's this that might fit the bill, it's written entirely in Lua:

    https://github.com/davidm/lua-bit-numberlua

    Likes: omer

    +1 -1 (+1 / -0 )Share on Facebook
  • atilimatilim Maintainer
    edited November 2012
    Also we're providing the bitop (http://bitop.luajit.org) as a plugin with the Gideros installation. But it's not enabled by default. You can look at the directory {Gideros Installation}/All Plugins/BitOp/

    Likes: omer

    +1 -1 (+1 / -0 )Share on Facebook
  • Thanks for kindly answers for moopf and atilim.
    Atilim, how can I enable bitop on projects?
    Can I recompile Gideros Player for mac and iphone to enable bitop?
    Must I add bitop.dylip for xcode projects?
  • atilimatilim Maintainer
    Accepted Answer
    For desktop player on Mac, copy "/Applications/Gideros Studio/All Plugins/BitOp/bin/Mac OS/bitop.dylib" to "/Applications/Gideros Studio/Plugins" and restart the desktop player.

    For iOS, add bit.c and bit_stub.cpp in the folder "/Applications/Gideros Studio/All Plugins/BitOp/source" to the Xcode project and redeploy the iOS player.

    And after these steps, use
    require "bit"
    to check everything is ok.

    Likes: omer

    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.