SignedInteger[A: SignedInteger[A, B] val, B: UnsignedInteger[B] val]¶
Implements¶
- Integer[A] val
Constructors¶
create¶
Parameters¶
- value: A
Returns¶
- Real[A] val^
from[B: ((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[B] val)]¶
new val from[B: ((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[B] val)](
a: B)
: Real[A] val^
Parameters¶
- a: B
Returns¶
- Real[A] val^
min_value¶
Returns¶
- Real[A] val^
max_value¶
Returns¶
- Real[A] val^
Public Functions¶
abs¶
Returns¶
- B
shl¶
Parameters¶
- y: B
Returns¶
- A
shr¶
Parameters¶
- y: B
Returns¶
- A
shl_unsafe¶
Unsafe operation. If bits differing from the final sign bit are shifted-out, the result is undefined.
Parameters¶
- y: B
Returns¶
- A
shr_unsafe¶
Unsafe operation. If non-zero bits are shifted-out, the result is undefined.
Parameters¶
- y: B
Returns¶
- A
popcount¶
Returns¶
- B
clz¶
Returns¶
- B
ctz¶
Returns¶
- B
clz_unsafe¶
Unsafe operation. If this is 0, the result is undefined.
Returns¶
- B
ctz_unsafe¶
Unsafe operation. If this is 0, the result is undefined.
Returns¶
- B
bitwidth¶
Returns¶
- B
bytewidth¶
Returns¶
- USize val
string¶
Returns¶
- String iso^
add_unsafe¶
Parameters¶
- y: A
Returns¶
- A
sub_unsafe¶
Parameters¶
- y: A
Returns¶
- A
mul_unsafe¶
Parameters¶
- y: A
Returns¶
- A
div_unsafe¶
Parameters¶
- y: A
Returns¶
- A
divrem_unsafe¶
Parameters¶
- y: A
Returns¶
- (A , A)
rem_unsafe¶
Parameters¶
- y: A
Returns¶
- A
fld_unsafe¶
Parameters¶
- y: A
Returns¶
- A
mod_unsafe¶
Parameters¶
- y: A
Returns¶
- A
add_partial¶
Parameters¶
- y: A
Returns¶
- A ?
sub_partial¶
Parameters¶
- y: A
Returns¶
- A ?
mul_partial¶
Parameters¶
- y: A
Returns¶
- A ?
div_partial¶
Parameters¶
- y: A
Returns¶
- A ?
rem_partial¶
Parameters¶
- y: A
Returns¶
- A ?
divrem_partial¶
Parameters¶
- y: A
Returns¶
- (A , A) ?
fld_partial¶
Parameters¶
- y: A
Returns¶
- A ?
mod_partial¶
Parameters¶
- y: A
Returns¶
- A ?
neg_unsafe¶
Returns¶
- A
addc¶
Parameters¶
- y: A
Returns¶
- (A , Bool val)
subc¶
Parameters¶
- y: A
Returns¶
- (A , Bool val)
mulc¶
Parameters¶
- y: A
Returns¶
- (A , Bool val)
divc¶
Parameters¶
- y: A
Returns¶
- (A , Bool val)
remc¶
Parameters¶
- y: A
Returns¶
- (A , Bool val)
fldc¶
Parameters¶
- y: A
Returns¶
- (A , Bool val)
modc¶
Parameters¶
- y: A
Returns¶
- (A , Bool val)
op_and¶
Parameters¶
- y: A
Returns¶
- A
op_or¶
Parameters¶
- y: A
Returns¶
- A
op_xor¶
Parameters¶
- y: A
Returns¶
- A
op_not¶
Returns¶
- A
bit_reverse¶
Returns¶
- A
bswap¶
Returns¶
- A
add¶
Parameters¶
- y: A
Returns¶
- A
sub¶
Parameters¶
- y: A
Returns¶
- A
mul¶
Parameters¶
- y: A
Returns¶
- A
div¶
Parameters¶
- y: A
Returns¶
- A
divrem¶
Parameters¶
- y: A
Returns¶
- (A , A)
rem¶
Parameters¶
- y: A
Returns¶
- A
neg¶
Returns¶
- A
fld¶
Parameters¶
- y: A
Returns¶
- A
mod¶
Parameters¶
- y: A
Returns¶
- A
eq¶
Parameters¶
- y: box->A
Returns¶
- Bool val
ne¶
Parameters¶
- y: box->A
Returns¶
- Bool val
lt¶
Parameters¶
- y: box->A
Returns¶
- Bool val
le¶
Parameters¶
- y: box->A
Returns¶
- Bool val
ge¶
Parameters¶
- y: box->A
Returns¶
- Bool val
gt¶
Parameters¶
- y: box->A
Returns¶
- Bool val
min¶
Parameters¶
- y: A
Returns¶
- A
max¶
Parameters¶
- y: A
Returns¶
- A
hash¶
Returns¶
- USize val
hash64¶
Returns¶
- U64 val
i8¶
Returns¶
- I8 val
i16¶
Returns¶
- I16 val
i32¶
Returns¶
- I32 val
i64¶
Returns¶
- I64 val
i128¶
Returns¶
- I128 val
ilong¶
Returns¶
- ILong val
isize¶
Returns¶
- ISize val
u8¶
Returns¶
- U8 val
u16¶
Returns¶
- U16 val
u32¶
Returns¶
- U32 val
u64¶
Returns¶
- U64 val
u128¶
Returns¶
- U128 val
ulong¶
Returns¶
- ULong val
usize¶
Returns¶
- USize val
f32¶
Returns¶
- F32 val
f64¶
Returns¶
- F64 val
i8_unsafe¶
Returns¶
- I8 val
i16_unsafe¶
Returns¶
- I16 val
i32_unsafe¶
Returns¶
- I32 val
i64_unsafe¶
Returns¶
- I64 val
i128_unsafe¶
Returns¶
- I128 val
ilong_unsafe¶
Returns¶
- ILong val
isize_unsafe¶
Returns¶
- ISize val
u8_unsafe¶
Returns¶
- U8 val
u16_unsafe¶
Returns¶
- U16 val
u32_unsafe¶
Returns¶
- U32 val
u64_unsafe¶
Returns¶
- U64 val
u128_unsafe¶
Returns¶
- U128 val
ulong_unsafe¶
Returns¶
- ULong val
usize_unsafe¶
Returns¶
- USize val
f32_unsafe¶
Returns¶
- F32 val
f64_unsafe¶
Returns¶
- F64 val
compare¶
Parameters¶
- that: box->A