Fuzion Logo
flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

u128

🌌u128

u128 -- 128-bit unsigned integer values

§div(other u128)
 => 
u128
:
Object

private division and remainder with crash in case of div-by-zero

create hash code from this number

u128 -- 128-bit unsigned integer values

find the highest 1 bit in this integer and return integer with
this single bit set or 0 if this is 0.

bitwise and, or and xor operations

division and remainder with check for div-by-zero

comparison

shift operations (unsigned)

u128 -- 128-bit unsigned integer values

NYI: max is redefined here only to solve repeated inheritance conflict. Since max inherited
from hasInterval is abstract, fz should not complain about this conflict.

§mod(other u128)
 => 
u128
:
Object

count the number of 1 bits in the binary representation of this
integer.

would addtion thiz + other cause an overflow or underflow?

would multiplication thiz * other cause an overflow or underflow?

would subtraction thiz - other cause an overflow or underflow?

neg, add, sub, mul with wrap-around semantics

redef thiz => u128.this -- NYI: This causes a type error when using C backend

count the number of trailing zeros in this integer.

would negation -thiz cause an overflow?