Int32

Int32 is an abstract type that can be used to store the full 32 bits of an integer. The type 'int32 means that the value is a real int32. The type #int32 means (int | 'int32) and accept then the both kind of integers.

'int32 int32_new(#int32|float) Allocate an int32 from any integer int int32_to_int(#int32) Return the int value if it can be represented using 31 bits. Error either float int32_to_float(#int32) Return the float value of the integer. int int32_compare(#int32, #int32) Compare two integers #int32 int32_ushr(#int32, #int32) Perform unsigned right bits-shifting #int32 int32_add(#int32, #int32) Add two integers #int32 int32_sub(#int32, #int32) Subtract two integers #int32 int32_mul(#int32, #int32) Multiply two integers #int32 int32_div(#int32, #int32) Divide two integers. Error on division by 0 #int32 int32_shl(#int32, #int32) Perform left bit-shifting #int32 int32_shr(#int32, #int32) Perform right bit-shifting #int32 int32_mod(#int32, #int32) Return the modulo of one integer by the other. Error on modulo by 0 #int32 int32_neg(#int32) Return the negative value of an integer #int32 int32_complement(#int32) Return the one-complement bitwised integer #int32 int32_or(#int32, #int32) Return the bitwise or of two integers #int32 int32_and(#int32, #int32) Return the bitwise and of two integers #int32 int32_xor(#int32, #int32) Return the bitwise xor of two integers #int32 int32_address(any) Return the address of the value. The address should not be considered constant. It is not unique either unless you are sure you are running on a 32-bit platform.

© 2019 Haxe Foundation | Contribute to this page