U128 [Src]
primitive val U128 is
_UnsignedInteger[U128 val] val
Implements
- _UnsignedInteger[U128 val] val
Constructors
create [Src]
new val create(
value: U128 val)
: U128 val^
Parameters
- value: U128 val
Returns
- U128 val^
from [Src] [A: ((I8 val | I16 val | I32 val | I64 val | I128 val | ILong val | ISize val | U8 val | U16 val | U32 val | U64 val | U128 val | ULong val | USize val | F32 val | F64 val) & Real[A] val)]
new val from[A: ((I8 val | I16 val | I32 val |
I64 val | I128 val | ILong val |
ISize val | U8 val | U16 val |
U32 val | U64 val | U128 val |
ULong val | USize val | F32 val |
F64 val) & Real[A] val)](
a: A)
: U128 val^
Parameters
- a: A
Returns
- U128 val^
min_value [Src]
new val min_value()
: U128 val^
Returns
- U128 val^
max_value [Src]
new val max_value()
: U128 val^
Returns
- U128 val^
Public Functions
next_pow2 [Src]
fun box next_pow2()
: U128 val
Returns
- U128 val
abs [Src]
fun box abs()
: U128 val
Returns
- U128 val
bswap [Src]
fun box bswap()
: U128 val
Returns
- U128 val
popcount [Src]
fun box popcount()
: U128 val
Returns
- U128 val
clz [Src]
fun box clz()
: U128 val
Returns
- U128 val
ctz [Src]
fun box ctz()
: U128 val
Returns
- U128 val
clz_unsafe [Src]
Unsafe operation. If this is 0, the result is undefined.
fun box clz_unsafe()
: U128 val
Returns
- U128 val
ctz_unsafe [Src]
Unsafe operation. If this is 0, the result is undefined.
fun box ctz_unsafe()
: U128 val
Returns
- U128 val
bitwidth [Src]
fun box bitwidth()
: U128 val
Returns
- U128 val
min [Src]
fun box min(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
max [Src]
fun box max(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
hash [Src]
fun box hash()
: U64 val
Returns
- U64 val
string [Src]
fun box string()
: String iso^
Returns
- String iso^
mul [Src]
fun box mul(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
divmod [Src]
fun box divmod(
y: U128 val)
: (U128 val , U128 val)
Parameters
- y: U128 val
Returns
div [Src]
fun box div(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
mod [Src]
fun box mod(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
mul_unsafe [Src]
Unsafe operation. If the operation overflows, the result is undefined.
fun box mul_unsafe(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
divmod_unsafe [Src]
Unsafe operation. If y is 0, the result is undefined. If the operation overflows, the result is undefined.
fun box divmod_unsafe(
y: U128 val)
: (U128 val , U128 val)
Parameters
- y: U128 val
Returns
div_unsafe [Src]
Unsafe operation. If y is 0, the result is undefined. If the operation overflows, the result is undefined.
fun box div_unsafe(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
mod_unsafe [Src]
Unsafe operation. If y is 0, the result is undefined. If the operation overflows, the result is undefined.
fun box mod_unsafe(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
f32 [Src]
fun box f32()
: F32 val
Returns
- F32 val
f64 [Src]
fun box f64()
: F64 val
Returns
- F64 val
f32_unsafe [Src]
Unsafe operation. If the value doesn't fit in the destination type, the result is undefined.
fun box f32_unsafe()
: F32 val
Returns
- F32 val
f64_unsafe [Src]
Unsafe operation. If the value doesn't fit in the destination type, the result is undefined.
fun box f64_unsafe()
: F64 val
Returns
- F64 val
shl
fun box shl(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
shr
fun box shr(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
shl_unsafe
fun box shl_unsafe(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
shr_unsafe
fun box shr_unsafe(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
rotl
fun box rotl(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
rotr
fun box rotr(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
add_unsafe
fun box add_unsafe(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
sub_unsafe
fun box sub_unsafe(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
neg_unsafe
fun box neg_unsafe()
: U128 val
Returns
- U128 val
op_and
fun box op_and(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
op_or
fun box op_or(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
op_xor
fun box op_xor(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
op_not
fun box op_not()
: U128 val
Returns
- U128 val
add
fun box add(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
sub
fun box sub(
y: U128 val)
: U128 val
Parameters
- y: U128 val
Returns
- U128 val
neg
fun box neg()
: U128 val
Returns
- U128 val
eq
fun box eq(
y: U128 val)
: Bool val
Parameters
- y: U128 val
Returns
- Bool val
ne
fun box ne(
y: U128 val)
: Bool val
Parameters
- y: U128 val
Returns
- Bool val
lt
fun box lt(
y: U128 val)
: Bool val
Parameters
- y: U128 val
Returns
- Bool val
le
fun box le(
y: U128 val)
: Bool val
Parameters
- y: U128 val
Returns
- Bool val
ge
fun box ge(
y: U128 val)
: Bool val
Parameters
- y: U128 val
Returns
- Bool val
gt
fun box gt(
y: U128 val)
: Bool val
Parameters
- y: U128 val
Returns
- Bool val
i8
fun box i8()
: I8 val
Returns
- I8 val
i16
fun box i16()
: I16 val
Returns
- I16 val
i32
fun box i32()
: I32 val
Returns
- I32 val
i64
fun box i64()
: I64 val
Returns
- I64 val
i128
fun box i128()
: I128 val
Returns
- I128 val
ilong
fun box ilong()
: ILong val
Returns
- ILong val
isize
fun box isize()
: ISize val
Returns
- ISize val
u8
fun box u8()
: U8 val
Returns
- U8 val
u16
fun box u16()
: U16 val
Returns
- U16 val
u32
fun box u32()
: U32 val
Returns
- U32 val
u64
fun box u64()
: U64 val
Returns
- U64 val
u128
fun box u128()
: U128 val
Returns
- U128 val
ulong
fun box ulong()
: ULong val
Returns
- ULong val
usize
fun box usize()
: USize val
Returns
- USize val
i8_unsafe
fun box i8_unsafe()
: I8 val
Returns
- I8 val
i16_unsafe
fun box i16_unsafe()
: I16 val
Returns
- I16 val
i32_unsafe
fun box i32_unsafe()
: I32 val
Returns
- I32 val
i64_unsafe
fun box i64_unsafe()
: I64 val
Returns
- I64 val
i128_unsafe
fun box i128_unsafe()
: I128 val
Returns
- I128 val
ilong_unsafe
fun box ilong_unsafe()
: ILong val
Returns
- ILong val
isize_unsafe
fun box isize_unsafe()
: ISize val
Returns
- ISize val
u8_unsafe
fun box u8_unsafe()
: U8 val
Returns
- U8 val
u16_unsafe
fun box u16_unsafe()
: U16 val
Returns
- U16 val
u32_unsafe
fun box u32_unsafe()
: U32 val
Returns
- U32 val
u64_unsafe
fun box u64_unsafe()
: U64 val
Returns
- U64 val
u128_unsafe
fun box u128_unsafe()
: U128 val
Returns
- U128 val
ulong_unsafe
fun box ulong_unsafe()
: ULong val
Returns
- ULong val
usize_unsafe
fun box usize_unsafe()
: USize val
Returns
- USize val
compare
fun box compare(
that: U128 val)
: (Less val | Equal val | Greater val)
Parameters
- that: U128 val