Skip to content

Int256

graph BT
N1["Int256"] -->|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 #extern;
Is enum false
Is sealed false
Is extern true
Is abstract false
Is generator false
Has value semantics true
Has stored properties false
Should register destructor false
Has atomic memory true
Is copy assignable true
Is zero initializable true

Const Expressions

size

const! size = 256

Functions

min

#Gambol.function.alwaysinline
#default
min () -> Int256

max

#Gambol.function.alwaysinline
#default
max () -> Int256

Methods

construct

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

sign

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

abs

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

trem

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

tdiv

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

frem

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

fdiv

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

erem

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

ediv

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

tdivrem

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

fdivrem

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

edivrem

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

str

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

reverse_bits

#Gambol.function.alwaysinline
#default
reverse_bits (s @Self) -> Int256

swap_bytes

#Gambol.function.alwaysinline
#default
swap_bytes (s @Self) -> Int256

count_ones

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

funnel_shift_left

#Gambol.function.alwaysinline
#default
funnel_shift_left (a @Self, b @Self, c @Self) -> Int256

funnel_shift_right

#Gambol.function.alwaysinline
#default
funnel_shift_right (a @Self, b @Self, c @Self) -> Int256

count_leading_zeros

#Gambol.function.alwaysinline
#default
count_leading_zeros (s @Self) -> Int256

count_trailing_zeros

#Gambol.function.alwaysinline
#default
count_trailing_zeros (s @Self) -> Int256

Unary Operators

~

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

-

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

Binary Operators

=

#default
= (s @Self, o @Self) -> Self

==

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

<

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

<=

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

>

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

>=

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

+

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

+=

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

-

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

-=

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

*

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

*=

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

%

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

%=

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

/

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

/=

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

&

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

&=

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

|

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

|=

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

^

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

^=

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

>>

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

>>=

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

>>>

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

>>>=

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

<<

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

<<=

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

Casts To

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