float128
class float128
Constructors
10
__new__(self: float) -> float128
Added by
internal.types.float%0 = fpext double %self to fp128
ret fp128 %0
__new__[N: Literal[int]](what: Int[N]) -> float128
Added by
internal.ops%0 = sitofp i{=N} %what to fp128
ret fp128 %0
__new__[N: Literal[int]](what: UInt[N]) -> float128
Added by
internal.ops%0 = uitofp i{=N} %what to fp128
ret fp128 %0
__new__(what: float32) -> float128
Added by
internal.ops%0 = fpext float %what to fp128
ret fp128 %0
__new__(what: bfloat16) -> float128
Added by
internal.ops%0 = fpext bfloat %what to fp128
ret fp128 %0
Methods
2
Special methods
32
__float__(self: Self) -> float
Added by
internal.types.float%0 = fptrunc fp128 %self to double
ret double %0
__bool__(self: Self) -> bool
Added by
internal.types.float%0 = fcmp une fp128 %self, 0xL00000000000000000000000000000000
%1 = zext i1 %0 to i8
ret i8 %1
__add__(a: float128, b: float128) -> float128
Added by
internal.types.float%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__(a: float128, b: float128) -> float128
Added by
internal.types.float%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__(a: float128, b: float128) -> float128
Added by
internal.types.float%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__(self: Self, other: float128) -> float128
Added by
internal.types.float__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__(self: Self, other: float128) -> float128
Added by
internal.types.float__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__(self: Self, other: float128) -> float128
Added by
internal.types.float__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__(self: Self, other: float128) -> Tuple[(float128, float128)]
Added by
internal.types.float__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__(a: float128, b: float128) -> bool
Added by
internal.types.float%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__(a: float128, b: float128) -> bool
Added by
internal.types.float%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__(a: float128, b: float128) -> bool
Added by
internal.types.float%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__(a: float128, b: float128) -> bool
Added by
internal.types.float%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__(a: float128, b: float128) -> bool
Added by
internal.types.float%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__(a: float128, b: float128) -> bool
Added by
internal.types.float%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__(a: float128) -> float128
Added by
internal.types.floatdeclare fp128 @llvm.fabs.f128(fp128 %a)
%tmp = call fp128 @llvm.fabs.f128(fp128 %a)
ret fp128 %tmp
__floor__(a: float128) -> float128
Added by
internal.types.floatdeclare fp128 @llvm.floor.f128(fp128 %a)
%tmp = call fp128 @llvm.floor.f128(fp128 %a)
ret fp128 %tmp
__ceil__(a: float128) -> float128
Added by
internal.types.floatdeclare fp128 @llvm.ceil.f128(fp128 %a)
%tmp = call fp128 @llvm.ceil.f128(fp128 %a)
ret fp128 %tmp
__trunc__(a: float128) -> float128
Added by
internal.types.floatdeclare fp128 @llvm.trunc.f128(fp128 %a)
%tmp = call fp128 @llvm.trunc.f128(fp128 %a)
ret fp128 %tmp
__pow__(a: float128, b: float128) -> float128
Added by
internal.types.floatdeclare 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