Skip to content

Int

graph BT
N1["Int"] -->|inherits| N2["IntegralNumber"];
N2["IntegralNumber"] -->|inherits| N3["Number"];
N3["Number"] -->|inherits| N4["Stringable"];
N4["Stringable"] -->|inherits| N5["Any"];

Characteristics

Quality Value
Inherits IntegralNumber
Extends N/A
Decorators #sealed; #Gambol.layout.c;
Is enum false
Is sealed true
Is extern false
Is abstract false
Is generator false
Has value semantics false
Has stored properties true
Should register destructor true
Has atomic memory false
Is copy assignable false
Is zero initializable false

Functions

parse

parse (str String, base Int32 = -1) -> Int

Subscript

[s @Self, idx ULen] -> Bool

Methods

construct

construct (s strictly @Self) -> Self

sign

#Gambol.function.alwaysinline
sign (s @Self) -> Int

abs

#Gambol.function.alwaysinline
abs (s @Self) -> Int

trem

#Gambol.function.alwaysinline
trem (s @Self, o @Self) -> Int

frem

#Gambol.function.alwaysinline
frem (s @Self, o @Self) -> Int

erem

#Gambol.function.alwaysinline
erem (s @Self, o @Self) -> Int

tdiv

#Gambol.function.alwaysinline
tdiv (s @Self, o @Self) -> Int

fdiv

#Gambol.function.alwaysinline
fdiv (s @Self, o @Self) -> Int

ediv

#Gambol.function.alwaysinline
ediv (s @Self, o @Self) -> Int

tdivrem

#Gambol.function.alwaysinline
tdivrem (s @Self, o @Self) -> Int, Int

fdivrem

#Gambol.function.alwaysinline
fdivrem (s @Self, o @Self) -> Int, Int

edivrem

#Gambol.function.alwaysinline
edivrem (s @Self, o @Self) -> Int, Int

str

str (s @Self, base: Int8 = 10, width: Len = 1) -> String

hash

#Gambol.function.alwaysinline
#strict
hash (s @Self, hasher strictly @ (Pointer, Len) -> Nil) -> Nil

complement_bit

#Gambol.function.alwaysinline
complement_bit (s @Self, idx ULen) -> Nil

count_ones

#Gambol.function.alwaysinline
count_ones (s @Self) -> ULen

scan_for

#Gambol.function.alwaysinline
scan_for (s @Self, val Bool, start_idx ULen = 0) -> ULen

Unary Operators

~

#Gambol.function.alwaysinline
~ (s @Self) -> Int

-

#Gambol.function.alwaysinline
- (s @Self) -> Int

Binary Operators

==

#Gambol.function.alwaysinline
== (s @Self, o @Self) -> Bool

<

#Gambol.function.alwaysinline
< (s @Self, o @Self) -> Bool

<=

#Gambol.function.alwaysinline
<= (s @Self, o @Self) -> Bool

>

#Gambol.function.alwaysinline
> (s @Self, o @Self) -> Bool

>=

#Gambol.function.alwaysinline
>= (s @Self, o @Self) -> Bool

+

#Gambol.function.alwaysinline
+ (s @Self, o @Self) -> Int

+=

#Gambol.function.alwaysinline
+= (s @Self, o @Self) -> Self

-

#Gambol.function.alwaysinline
- (s @Self, o @Self) -> Int

-=

#Gambol.function.alwaysinline
-= (s @Self, o @Self) -> Self

*

#Gambol.function.alwaysinline
* (s @Self, o @Self) -> Int

*=

#Gambol.function.alwaysinline
*= (s @Self, o @Self) -> Self

/

#Gambol.function.alwaysinline
/ (s @Self, o @Self) -> Int

/=

#Gambol.function.alwaysinline
/= (s @Self, o @Self) -> Self

%

#Gambol.function.alwaysinline
% (s @Self, o @Self) -> Int

%=

#Gambol.function.alwaysinline
%= (s @Self, o @Self) -> Self

&

#Gambol.function.alwaysinline
& (s @Self, o @Self) -> Int

&=

#Gambol.function.alwaysinline
&= (s @Self, o @Self) -> Self

|

#Gambol.function.alwaysinline
| (s @Self, o @Self) -> Int

|=

#Gambol.function.alwaysinline
|= (s @Self, o @Self) -> Self

^

#Gambol.function.alwaysinline
^ (s @Self, o @Self) -> Int

^=

#Gambol.function.alwaysinline
^= (s @Self, o @Self) -> Self

>>

#Gambol.function.alwaysinline
>> (s @Self, count ULen) -> Int

>>=

#Gambol.function.alwaysinline
>>= (s @Self, count ULen) -> Self

>>>

#Gambol.function.alwaysinline
>>> (s @Self, count ULen) -> Int

>>>=

#Gambol.function.alwaysinline
>>>= (s @Self, count ULen) -> Self

<<

#Gambol.function.alwaysinline
<< (s @Self, count ULen) -> Int

<<=

#Gambol.function.alwaysinline
<<= (s @Self, count ULen) -> Self

Casts To

  • Int8
  • Int16
  • Int32
  • Int64
  • Int128
  • Int256
  • Int512
  • UInt8
  • UInt16
  • UInt32
  • UInt64
  • UInt128
  • UInt256
  • UInt512
  • NInt
  • UNInt
  • Float
  • Float32
  • Float64
  • NFloat
  • Bool

Properties

__mpz_t

__mpz_t MPZInternal__

__is_initialized

__is_initialized Bool