Skip to main content

float128

Standard library class internal.core.float128 View source
class float128
@tuple
class float128
Constructors 10
__new__
@pure @llvm
__new__(self: float) -> float128
%0 = fpext double %self to fp128
ret fp128 %0
__new__
@overload
__new__(what: float128) -> float128
__new__
@overload
__new__() -> float128
__new__
__new__(what) -> float128
Added by internal.ops
__new__
__new__(what: bool) -> float128
Added by internal.ops
__new__
@pure @llvm
__new__[N: Literal[int]](what: Int[N]) -> float128
Added by internal.ops
%0 = sitofp i{=N} %what to fp128
ret fp128 %0
__new__
@pure @llvm
__new__[N: Literal[int]](what: UInt[N]) -> float128
Added by internal.ops
%0 = uitofp i{=N} %what to fp128
ret fp128 %0
__new__
@pure @llvm
__new__(what: float32) -> float128
Added by internal.ops
%0 = fpext float %what to fp128
ret fp128 %0
__new__
@pure @llvm
__new__(what: float16) -> float128
Added by internal.ops
%0 = fpext half %what to fp128
ret fp128 %0
__new__
@pure @llvm
__new__(what: bfloat16) -> float128
Added by internal.ops
%0 = fpext bfloat %what to fp128
ret fp128 %0
Methods 2
cdiv
cdiv(self: Self, other: float128) -> float128
cmod
cmod(self: Self, other: float128) -> float128
Special methods 32
__repr__
__repr__(self: Self) -> str
__format__
__format__(self: Self, format_spec: str) -> str
__copy__
__copy__(self: Self) -> float128
__deepcopy__
__deepcopy__(self: Self) -> float128
__int__
@pure @llvm
__int__(self: Self) -> int
%0 = fptosi fp128 %self to i64
ret i64 %0
__float__
@pure @llvm
__float__(self: Self) -> float
%0 = fptrunc fp128 %self to double
ret double %0
__bool__
@pure @llvm
__bool__(self: Self) -> bool
%0 = fcmp une fp128 %self, 0xL00000000000000000000000000000000
%1 = zext i1 %0 to i8
ret i8 %1
__pos__
__pos__(self: Self) -> float128
__neg__
@pure @llvm
__neg__(self: Self) -> float128
%0 = fneg fp128 %self
ret fp128 %0
__add__
@commutative
@pure @llvm
__add__(a: float128, b: float128) -> float128
%tmp = fadd fp128 %a, %b
ret fp128 %tmp
__add__(self: Self, b: float)
Added by internal.ops
__add__(self: Self, b: float32)
Added by internal.ops
__add__(self: Self, b: float16)
Added by internal.ops
__add__(self: Self, b: bfloat16)
Added by internal.ops
__add__(self: Self, b: Int)
Added by internal.ops
__add__(self: Self, b: UInt)
Added by internal.ops
__add__(self: Self, b: bool)
Added by internal.ops
__sub__
@pure @llvm
__sub__(a: float128, b: float128) -> float128
%tmp = fsub fp128 %a, %b
ret fp128 %tmp
__sub__(self: Self, b: float)
Added by internal.ops
__sub__(self: Self, b: float32)
Added by internal.ops
__sub__(self: Self, b: float16)
Added by internal.ops
__sub__(self: Self, b: bfloat16)
Added by internal.ops
__sub__(self: Self, b: Int)
Added by internal.ops
__sub__(self: Self, b: UInt)
Added by internal.ops
__sub__(self: Self, b: bool)
Added by internal.ops
__mul__
@commutative
@pure @llvm
__mul__(a: float128, b: float128) -> float128
%tmp = fmul fp128 %a, %b
ret fp128 %tmp
__mul__(self: Self, b: float)
Added by internal.ops
__mul__(self: Self, b: float32)
Added by internal.ops
__mul__(self: Self, b: float16)
Added by internal.ops
__mul__(self: Self, b: bfloat16)
Added by internal.ops
__mul__(self: Self, b: Int)
Added by internal.ops
__mul__(self: Self, b: UInt)
Added by internal.ops
__mul__(self: Self, b: bool)
Added by internal.ops
__floordiv__
__floordiv__(self: Self, other: float128) -> float128
__floordiv__(self: Self, b: float)
Added by internal.ops
__floordiv__(self: Self, b: float32)
Added by internal.ops
__floordiv__(self: Self, b: float16)
Added by internal.ops
__floordiv__(self: Self, b: bfloat16)
Added by internal.ops
__floordiv__(self: Self, b: Int)
Added by internal.ops
__floordiv__(self: Self, b: UInt)
Added by internal.ops
__floordiv__(self: Self, b: bool)
Added by internal.ops
__truediv__
__truediv__(self: Self, other: float128) -> float128
__truediv__(self: Self, b: float)
Added by internal.ops
__truediv__(self: Self, b: float32)
Added by internal.ops
__truediv__(self: Self, b: float16)
Added by internal.ops
__truediv__(self: Self, b: bfloat16)
Added by internal.ops
__truediv__(self: Self, b: Int)
Added by internal.ops
__truediv__(self: Self, b: UInt)
Added by internal.ops
__truediv__(self: Self, b: bool)
Added by internal.ops
__mod__
__mod__(self: Self, other: float128) -> float128
__mod__(self: Self, b: float)
Added by internal.ops
__mod__(self: Self, b: float32)
Added by internal.ops
__mod__(self: Self, b: float16)
Added by internal.ops
__mod__(self: Self, b: bfloat16)
Added by internal.ops
__mod__(self: Self, b: Int)
Added by internal.ops
__mod__(self: Self, b: UInt)
Added by internal.ops
__mod__(self: Self, b: bool)
Added by internal.ops
__divmod__
__divmod__(self: Self, other: float128) -> Tuple[(float128, float128)]
__divmod__(self: Self, b: float)
Added by internal.ops
__divmod__(self: Self, b: float32)
Added by internal.ops
__divmod__(self: Self, b: float16)
Added by internal.ops
__divmod__(self: Self, b: bfloat16)
Added by internal.ops
__divmod__(self: Self, b: Int)
Added by internal.ops
__divmod__(self: Self, b: UInt)
Added by internal.ops
__divmod__(self: Self, b: bool)
Added by internal.ops
__eq__
@pure @llvm
__eq__(a: float128, b: float128) -> bool
%tmp = fcmp oeq fp128 %a, %b
%res = zext i1 %tmp to i8
ret i8 %res
__eq__(self: Self, b: float)
Added by internal.ops
__eq__(self: Self, b: float32)
Added by internal.ops
__eq__(self: Self, b: float16)
Added by internal.ops
__eq__(self: Self, b: bfloat16)
Added by internal.ops
__eq__(self: Self, b: Int)
Added by internal.ops
__eq__(self: Self, b: UInt)
Added by internal.ops
__eq__(self: Self, b: bool)
Added by internal.ops
__ne__
@pure @llvm
__ne__(a: float128, b: float128) -> bool
%tmp = fcmp une fp128 %a, %b
%res = zext i1 %tmp to i8
ret i8 %res
__ne__(self: Self, b: float)
Added by internal.ops
__ne__(self: Self, b: float32)
Added by internal.ops
__ne__(self: Self, b: float16)
Added by internal.ops
__ne__(self: Self, b: bfloat16)
Added by internal.ops
__ne__(self: Self, b: Int)
Added by internal.ops
__ne__(self: Self, b: UInt)
Added by internal.ops
__ne__(self: Self, b: bool)
Added by internal.ops
__lt__
@pure @llvm
__lt__(a: float128, b: float128) -> bool
%tmp = fcmp olt fp128 %a, %b
%res = zext i1 %tmp to i8
ret i8 %res
__lt__(self: Self, b: float)
Added by internal.ops
__lt__(self: Self, b: float32)
Added by internal.ops
__lt__(self: Self, b: float16)
Added by internal.ops
__lt__(self: Self, b: bfloat16)
Added by internal.ops
__lt__(self: Self, b: Int)
Added by internal.ops
__lt__(self: Self, b: UInt)
Added by internal.ops
__lt__(self: Self, b: bool)
Added by internal.ops
__gt__
@pure @llvm
__gt__(a: float128, b: float128) -> bool
%tmp = fcmp ogt fp128 %a, %b
%res = zext i1 %tmp to i8
ret i8 %res
__gt__(self: Self, b: float)
Added by internal.ops
__gt__(self: Self, b: float32)
Added by internal.ops
__gt__(self: Self, b: float16)
Added by internal.ops
__gt__(self: Self, b: bfloat16)
Added by internal.ops
__gt__(self: Self, b: Int)
Added by internal.ops
__gt__(self: Self, b: UInt)
Added by internal.ops
__gt__(self: Self, b: bool)
Added by internal.ops
__le__
@pure @llvm
__le__(a: float128, b: float128) -> bool
%tmp = fcmp ole fp128 %a, %b
%res = zext i1 %tmp to i8
ret i8 %res
__le__(self: Self, b: float)
Added by internal.ops
__le__(self: Self, b: float32)
Added by internal.ops
__le__(self: Self, b: float16)
Added by internal.ops
__le__(self: Self, b: bfloat16)
Added by internal.ops
__le__(self: Self, b: Int)
Added by internal.ops
__le__(self: Self, b: UInt)
Added by internal.ops
__le__(self: Self, b: bool)
Added by internal.ops
__ge__
@pure @llvm
__ge__(a: float128, b: float128) -> bool
%tmp = fcmp oge fp128 %a, %b
%res = zext i1 %tmp to i8
ret i8 %res
__ge__(self: Self, b: float)
Added by internal.ops
__ge__(self: Self, b: float32)
Added by internal.ops
__ge__(self: Self, b: float16)
Added by internal.ops
__ge__(self: Self, b: bfloat16)
Added by internal.ops
__ge__(self: Self, b: Int)
Added by internal.ops
__ge__(self: Self, b: UInt)
Added by internal.ops
__ge__(self: Self, b: bool)
Added by internal.ops
__abs__
@pure @llvm
__abs__(a: float128) -> float128
declare fp128 @llvm.fabs.f128(fp128 %a)
%tmp = call fp128 @llvm.fabs.f128(fp128 %a)
ret fp128 %tmp
__floor__
@pure @llvm
__floor__(a: float128) -> float128
declare fp128 @llvm.floor.f128(fp128 %a)
%tmp = call fp128 @llvm.floor.f128(fp128 %a)
ret fp128 %tmp
__ceil__
@pure @llvm
__ceil__(a: float128) -> float128
declare fp128 @llvm.ceil.f128(fp128 %a)
%tmp = call fp128 @llvm.ceil.f128(fp128 %a)
ret fp128 %tmp
__trunc__
@pure @llvm
__trunc__(a: float128) -> float128
declare fp128 @llvm.trunc.f128(fp128 %a)
%tmp = call fp128 @llvm.trunc.f128(fp128 %a)
ret fp128 %tmp
__pow__
@pure @llvm
__pow__(a: float128, b: float128) -> float128
declare fp128 @llvm.pow.f128(fp128 %a, fp128 %b)
%tmp = call fp128 @llvm.pow.f128(fp128 %a, fp128 %b)
ret fp128 %tmp
__pow__(self: Self, b: float)
Added by internal.ops
__pow__(self: Self, b: float32)
Added by internal.ops
__pow__(self: Self, b: float16)
Added by internal.ops
__pow__(self: Self, b: bfloat16)
Added by internal.ops
__pow__(self: Self, b: Int)
Added by internal.ops
__pow__(self: Self, b: UInt)
Added by internal.ops
__pow__(self: Self, b: bool)
Added by internal.ops
__hash__
__hash__(self: Self) -> int
__match__
__match__(self: Self, obj: float128) -> bool
__complex__
__complex__(self: Self) -> complex
__pickle__
__pickle__(self: Self, jar: Jar)
Added by pickle
__unpickle__
__unpickle__(jar: Jar) -> float128
Added by pickle