Jump to content

belette

Member
  • Posts

    0
  • Joined

  • Last visited

belette's Achievements

  1. Hello, I need to implement a hashing function in my mod. This requires a working modulo operator, and some bit shift, bitwise and/or, etc. At the moment, modulo is not working correctly for large numbers (see `2^38 % 100`). Since Kahlua is based on Lua 5.1, there's also no bitwise operators built-in, and no library available. We also don't have access to Java operators. I currently implemented my own functions and they're obviously much slower than what is available in Java natively. Would it be possible to create and expose bitShiftLeft(), bitShiftRight(), bitAnd(), bitOr(), bitXor(), bitNot() and Modulo() in the LuaManager.GlobalObject?
×
×
  • Create New...