Skip to content

ULong

[Source]

primitive val ULong is
  UnsignedInteger[ULong val] val

Implements


Constructors

create

[Source]

new val create(
  value: ULong val)
: ULong val^

Parameters

Returns


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)]

[Source]

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)
: ULong val^

Parameters

  • a: A

Returns


min_value

[Source]

new val min_value()
: ULong val^

Returns


max_value

[Source]

new val max_value()
: ULong val^

Returns


Public Functions

next_pow2

[Source]

fun box next_pow2()
: ULong val

Returns


abs

[Source]

fun box abs()
: ULong val

Returns


bit_reverse

[Source]

fun box bit_reverse()
: ULong val

Returns


bswap

[Source]

fun box bswap()
: ULong val

Returns


popcount

[Source]

fun box popcount()
: ULong val

Returns


clz

[Source]

fun box clz()
: ULong val

Returns


ctz

[Source]

fun box ctz()
: ULong val

Returns


clz_unsafe

[Source]

Unsafe operation. If this is 0, the result is undefined.

fun box clz_unsafe()
: ULong val

Returns


ctz_unsafe

[Source]

Unsafe operation. If this is 0, the result is undefined.

fun box ctz_unsafe()
: ULong val

Returns


bitwidth

[Source]

fun box bitwidth()
: ULong val

Returns


bytewidth

[Source]

fun box bytewidth()
: USize val

Returns


min

[Source]

fun box min(
  y: ULong val)
: ULong val

Parameters

Returns


max

[Source]

fun box max(
  y: ULong val)
: ULong val

Parameters

Returns


hash

[Source]

fun box hash()
: USize val

Returns


addc

[Source]

fun box addc(
  y: ULong val)
: (ULong val , Bool val)

Parameters

Returns


subc

[Source]

fun box subc(
  y: ULong val)
: (ULong val , Bool val)

Parameters

Returns


mulc

[Source]

fun box mulc(
  y: ULong val)
: (ULong val , Bool val)

Parameters

Returns


divc

[Source]

fun box divc(
  y: ULong val)
: (ULong val , Bool val)

Parameters

Returns


remc

[Source]

fun box remc(
  y: ULong val)
: (ULong val , Bool val)

Parameters

Returns


add_partial

[Source]

fun box add_partial(
  y: ULong val)
: ULong val ?

Parameters

Returns


sub_partial

[Source]

fun box sub_partial(
  y: ULong val)
: ULong val ?

Parameters

Returns


mul_partial

[Source]

fun box mul_partial(
  y: ULong val)
: ULong val ?

Parameters

Returns


div_partial

[Source]

fun box div_partial(
  y: ULong val)
: ULong val ?

Parameters

Returns


rem_partial

[Source]

fun box rem_partial(
  y: ULong val)
: ULong val ?

Parameters

Returns


divrem_partial

[Source]

fun box divrem_partial(
  y: ULong val)
: (ULong val , ULong val) ?

Parameters

Returns


shl

[Source]

fun box shl(
  y: ULong val)
: ULong val

Parameters

Returns


shr

[Source]

fun box shr(
  y: ULong val)
: ULong val

Parameters

Returns


fld

[Source]

fun box fld(
  y: ULong val)
: ULong val

Parameters

Returns


fldc

[Source]

fun box fldc(
  y: ULong val)
: (ULong val , Bool val)

Parameters

Returns


fld_partial

[Source]

fun box fld_partial(
  y: ULong val)
: ULong val ?

Parameters

Returns


fld_unsafe

[Source]

fun box fld_unsafe(
  y: ULong val)
: ULong val

Parameters

Returns


mod

[Source]

fun box mod(
  y: ULong val)
: ULong val

Parameters

Returns


modc

[Source]

fun box modc(
  y: ULong val)
: (ULong val , Bool val)

Parameters

Returns


mod_partial

[Source]

fun box mod_partial(
  y: ULong val)
: ULong val ?

Parameters

Returns


mod_unsafe

[Source]

fun box mod_unsafe(
  y: ULong val)
: ULong val

Parameters

Returns


shl_unsafe

[Source]

fun box shl_unsafe(
  y: ULong val)
: ULong val

Parameters

Returns


shr_unsafe

[Source]

fun box shr_unsafe(
  y: ULong val)
: ULong val

Parameters

Returns


rotl

[Source]

fun box rotl(
  y: ULong val)
: ULong val

Parameters

Returns


rotr

[Source]

fun box rotr(
  y: ULong val)
: ULong val

Parameters

Returns


string

[Source]

fun box string()
: String iso^

Returns


add_unsafe

[Source]

fun box add_unsafe(
  y: ULong val)
: ULong val

Parameters

Returns


sub_unsafe

[Source]

fun box sub_unsafe(
  y: ULong val)
: ULong val

Parameters

Returns


mul_unsafe

[Source]

fun box mul_unsafe(
  y: ULong val)
: ULong val

Parameters

Returns


div_unsafe

[Source]

fun box div_unsafe(
  y: ULong val)
: ULong val

Parameters

Returns


divrem_unsafe

[Source]

fun box divrem_unsafe(
  y: ULong val)
: (ULong val , ULong val)

Parameters

Returns


rem_unsafe

[Source]

fun box rem_unsafe(
  y: ULong val)
: ULong val

Parameters

Returns


neg_unsafe

[Source]

fun box neg_unsafe()
: ULong val

Returns


op_and

[Source]

fun box op_and(
  y: ULong val)
: ULong val

Parameters

Returns


op_or

[Source]

fun box op_or(
  y: ULong val)
: ULong val

Parameters

Returns


op_xor

[Source]

fun box op_xor(
  y: ULong val)
: ULong val

Parameters

Returns


op_not

[Source]

fun box op_not()
: ULong val

Returns


add

[Source]

fun box add(
  y: ULong val)
: ULong val

Parameters

Returns


sub

[Source]

fun box sub(
  y: ULong val)
: ULong val

Parameters

Returns


mul

[Source]

fun box mul(
  y: ULong val)
: ULong val

Parameters

Returns


div

[Source]

fun box div(
  y: ULong val)
: ULong val

Parameters

Returns


divrem

[Source]

fun box divrem(
  y: ULong val)
: (ULong val , ULong val)

Parameters

Returns


rem

[Source]

fun box rem(
  y: ULong val)
: ULong val

Parameters

Returns


neg

[Source]

fun box neg()
: ULong val

Returns


eq

[Source]

fun box eq(
  y: ULong val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  y: ULong val)
: Bool val

Parameters

Returns


lt

[Source]

fun box lt(
  y: ULong val)
: Bool val

Parameters

Returns


le

[Source]

fun box le(
  y: ULong val)
: Bool val

Parameters

Returns


ge

[Source]

fun box ge(
  y: ULong val)
: Bool val

Parameters

Returns


gt

[Source]

fun box gt(
  y: ULong val)
: Bool val

Parameters

Returns


hash64

[Source]

fun box hash64()
: U64 val

Returns


i8

[Source]

fun box i8()
: I8 val

Returns


i16

[Source]

fun box i16()
: I16 val

Returns


i32

[Source]

fun box i32()
: I32 val

Returns


i64

[Source]

fun box i64()
: I64 val

Returns


i128

[Source]

fun box i128()
: I128 val

Returns


ilong

[Source]

fun box ilong()
: ILong val

Returns


isize

[Source]

fun box isize()
: ISize val

Returns


u8

[Source]

fun box u8()
: U8 val

Returns


u16

[Source]

fun box u16()
: U16 val

Returns


u32

[Source]

fun box u32()
: U32 val

Returns


u64

[Source]

fun box u64()
: U64 val

Returns


u128

[Source]

fun box u128()
: U128 val

Returns


ulong

[Source]

fun box ulong()
: ULong val

Returns


usize

[Source]

fun box usize()
: USize val

Returns


f32

[Source]

fun box f32()
: F32 val

Returns


f64

[Source]

fun box f64()
: F64 val

Returns


i8_unsafe

[Source]

fun box i8_unsafe()
: I8 val

Returns


i16_unsafe

[Source]

fun box i16_unsafe()
: I16 val

Returns


i32_unsafe

[Source]

fun box i32_unsafe()
: I32 val

Returns


i64_unsafe

[Source]

fun box i64_unsafe()
: I64 val

Returns


i128_unsafe

[Source]

fun box i128_unsafe()
: I128 val

Returns


ilong_unsafe

[Source]

fun box ilong_unsafe()
: ILong val

Returns


isize_unsafe

[Source]

fun box isize_unsafe()
: ISize val

Returns


u8_unsafe

[Source]

fun box u8_unsafe()
: U8 val

Returns


u16_unsafe

[Source]

fun box u16_unsafe()
: U16 val

Returns


u32_unsafe

[Source]

fun box u32_unsafe()
: U32 val

Returns


u64_unsafe

[Source]

fun box u64_unsafe()
: U64 val

Returns


u128_unsafe

[Source]

fun box u128_unsafe()
: U128 val

Returns


ulong_unsafe

[Source]

fun box ulong_unsafe()
: ULong val

Returns


usize_unsafe

[Source]

fun box usize_unsafe()
: USize val

Returns


f32_unsafe

[Source]

fun box f32_unsafe()
: F32 val

Returns


f64_unsafe

[Source]

fun box f64_unsafe()
: F64 val

Returns


compare

[Source]

fun box compare(
  that: ULong val)
: (Less val | Equal val | Greater val)

Parameters

Returns