File src/plugins/built_in/abstract_objects/stub/ao_other.luadoc

Functions

get_userdata_address (userdata) Returns the address of a userdata
math_and (a, b) Returns a and b (bitwise and)
math_log2 (x) Returns the base-2 logarithm of x
math_not (a) Returns not a (bitwise not)
math_or (a, b) Returns a or b (bitwise or)
math_shiftl (shift, number, a) Shift to left by shift bits the binary representation of a number
math_shiftr (shift, number, a) Shift to right by shift bits the binary representation of a number
math_xor (a, b) Returns a xor b (bitwise xor)


Functions

get_userdata_address (userdata)
Returns the address of a userdata

Parameters

  • userdata:

Return value:

address
math_and (a, b)
Returns a and b (bitwise and)

Parameters

  • a: first number
  • b: second number

Return value:

a and b
math_log2 (x)
Returns the base-2 logarithm of x

Parameters

  • x: a number (FP)

Return value:

log2(x) (FP number)
math_not (a)
Returns not a (bitwise not)

Parameters

  • a: a number

Return value:

not a
math_or (a, b)
Returns a or b (bitwise or)

Parameters

  • a: first number
  • b: second number

Return value:

a or b
math_shiftl (shift, number, a)
Shift to left by shift bits the binary representation of a number

Parameters

  • shift: shifting bits
  • number:
  • a: a number

Return value:

shifted value
math_shiftr (shift, number, a)
Shift to right by shift bits the binary representation of a number

Parameters

  • shift: shifting bits
  • number:
  • a: a number

Return value:

shifted value
math_xor (a, b)
Returns a xor b (bitwise xor)

Parameters

  • a: first number
  • b: second number

Return value:

a xor b

Valid XHTML 1.0!