bool

Standard library class
class bool
@tuple
class bool
Constructors 2
__new__
__new__()
__new__
@overload
__new__(what)
Special methods 34
__to_py__
__to_py__(self)
__from_py__
__from_py__(b: cobj)
__add__
@commutative
__add__(self, b: float)
Added by internal.ops
__add__(self, b: float128)
Added by internal.ops
__add__(self, b: float32)
Added by internal.ops
__add__(self, b: float16)
Added by internal.ops
__add__(self, b: bfloat16)
Added by internal.ops
__add__(self, b: Int)
Added by internal.ops
__add__(self, b: UInt)
Added by internal.ops
__add__(self, other: bool)
__sub__
__sub__(self, b: float)
Added by internal.ops
__sub__(self, b: float128)
Added by internal.ops
__sub__(self, b: float32)
Added by internal.ops
__sub__(self, b: float16)
Added by internal.ops
__sub__(self, b: bfloat16)
Added by internal.ops
__sub__(self, b: Int)
Added by internal.ops
__sub__(self, b: UInt)
Added by internal.ops
__sub__(self, other: bool)
__mul__
@commutative
__mul__(self, b: float)
Added by internal.ops
__mul__(self, b: float128)
Added by internal.ops
__mul__(self, b: float32)
Added by internal.ops
__mul__(self, b: float16)
Added by internal.ops
__mul__(self, b: bfloat16)
Added by internal.ops
__mul__(self, b: Int)
Added by internal.ops
__mul__(self, b: UInt)
Added by internal.ops
__mul__(self, other: bool)
__floordiv__
__floordiv__(self, b: float)
Added by internal.ops
__floordiv__(self, b: float128)
Added by internal.ops
__floordiv__(self, b: float32)
Added by internal.ops
__floordiv__(self, b: float16)
Added by internal.ops
__floordiv__(self, b: bfloat16)
Added by internal.ops
__floordiv__(self, b: Int)
Added by internal.ops
__floordiv__(self, b: UInt)
Added by internal.ops
__floordiv__(self, other: bool)
__truediv__
__truediv__(self, b: float)
Added by internal.ops
__truediv__(self, b: float128)
Added by internal.ops
__truediv__(self, b: float32)
Added by internal.ops
__truediv__(self, b: float16)
Added by internal.ops
__truediv__(self, b: bfloat16)
Added by internal.ops
__truediv__(self, b: Int)
Added by internal.ops
__truediv__(self, b: UInt)
Added by internal.ops
__truediv__(self, other: bool)
__mod__
__mod__(self, b: float)
Added by internal.ops
__mod__(self, b: float128)
Added by internal.ops
__mod__(self, b: float32)
Added by internal.ops
__mod__(self, b: float16)
Added by internal.ops
__mod__(self, b: bfloat16)
Added by internal.ops
__mod__(self, b: Int)
Added by internal.ops
__mod__(self, b: UInt)
Added by internal.ops
__mod__(self, other: bool)
__divmod__
__divmod__(self, b: float)
Added by internal.ops
__divmod__(self, b: float128)
Added by internal.ops
__divmod__(self, b: float32)
Added by internal.ops
__divmod__(self, b: float16)
Added by internal.ops
__divmod__(self, b: bfloat16)
Added by internal.ops
__divmod__(self, b: Int)
Added by internal.ops
__divmod__(self, b: UInt)
Added by internal.ops
__divmod__(self, other: bool)
__pow__
__pow__(self, b: float)
Added by internal.ops
__pow__(self, b: float128)
Added by internal.ops
__pow__(self, b: float32)
Added by internal.ops
__pow__(self, b: float16)
Added by internal.ops
__pow__(self, b: bfloat16)
Added by internal.ops
__pow__(self, b: Int)
Added by internal.ops
__pow__(self, b: UInt)
Added by internal.ops
__pow__(self, other: bool)
__eq__
__eq__(self, b: float)
Added by internal.ops
__eq__(self, b: float128)
Added by internal.ops
__eq__(self, b: float32)
Added by internal.ops
__eq__(self, b: float16)
Added by internal.ops
__eq__(self, b: bfloat16)
Added by internal.ops
__eq__(self, b: Int)
Added by internal.ops
__eq__(self, b: UInt)
Added by internal.ops
@pure @llvm
__eq__(self, other: bool)
%0 = icmp eq i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__ne__
__ne__(self, b: float)
Added by internal.ops
__ne__(self, b: float128)
Added by internal.ops
__ne__(self, b: float32)
Added by internal.ops
__ne__(self, b: float16)
Added by internal.ops
__ne__(self, b: bfloat16)
Added by internal.ops
__ne__(self, b: Int)
Added by internal.ops
__ne__(self, b: UInt)
Added by internal.ops
@pure @llvm
__ne__(self, other: bool)
%0 = icmp ne i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__lt__
__lt__(self, b: float)
Added by internal.ops
__lt__(self, b: float128)
Added by internal.ops
__lt__(self, b: float32)
Added by internal.ops
__lt__(self, b: float16)
Added by internal.ops
__lt__(self, b: bfloat16)
Added by internal.ops
__lt__(self, b: Int)
Added by internal.ops
__lt__(self, b: UInt)
Added by internal.ops
@pure @llvm
__lt__(self, other: bool)
%0 = icmp ult i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__gt__
__gt__(self, b: float)
Added by internal.ops
__gt__(self, b: float128)
Added by internal.ops
__gt__(self, b: float32)
Added by internal.ops
__gt__(self, b: float16)
Added by internal.ops
__gt__(self, b: bfloat16)
Added by internal.ops
__gt__(self, b: Int)
Added by internal.ops
__gt__(self, b: UInt)
Added by internal.ops
@pure @llvm
__gt__(self, other: bool)
%0 = icmp ugt i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__le__
__le__(self, b: float)
Added by internal.ops
__le__(self, b: float128)
Added by internal.ops
__le__(self, b: float32)
Added by internal.ops
__le__(self, b: float16)
Added by internal.ops
__le__(self, b: bfloat16)
Added by internal.ops
__le__(self, b: Int)
Added by internal.ops
__le__(self, b: UInt)
Added by internal.ops
@pure @llvm
__le__(self, other: bool)
%0 = icmp ule i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__ge__
__ge__(self, b: float)
Added by internal.ops
__ge__(self, b: float128)
Added by internal.ops
__ge__(self, b: float32)
Added by internal.ops
__ge__(self, b: float16)
Added by internal.ops
__ge__(self, b: bfloat16)
Added by internal.ops
__ge__(self, b: Int)
Added by internal.ops
__ge__(self, b: UInt)
Added by internal.ops
@pure @llvm
__ge__(self, other: bool)
%0 = icmp uge i8 %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__to_gpu__
__to_gpu__(self, cache: AllocCache)
Added by internal.gpu
__from_gpu__
__from_gpu__(self, other: bool)
Added by internal.gpu
__from_gpu_new__
__from_gpu_new__(other: bool)
Added by internal.gpu
__pickle__
__pickle__(self, jar: Jar)
Added by pickle
__unpickle__
__unpickle__(jar: Jar)
Added by pickle
__repr__
__repr__(self)
__copy__
__copy__(self)
__deepcopy__
__deepcopy__(self)
__bool__
__bool__(self)
__hash__
__hash__(self)
__lshift__
__lshift__(self, other: bool)
__rshift__
__rshift__(self, other: bool)
__invert__
@pure @llvm
__invert__(self)
%0 = trunc i8 %self to i1
%1 = xor i1 %0, true
%2 = zext i1 %1 to i8
ret i8 %2
__and__
@pure @commutative @associative @llvm
__and__(self, other: bool)
%0 = and i8 %self, %other
ret i8 %0
__or__
@pure @commutative @associative @llvm
__or__(self, other: bool)
%0 = or i8 %self, %other
ret i8 %0
__xor__
@pure @commutative @associative @llvm
__xor__(self, other: bool)
%0 = xor i8 %self, %other
ret i8 %0
__int__
@pure @llvm
__int__(self)
%0 = zext i8 %self to i64
ret i64 %0
__float__
@pure @llvm
__float__(self)
%0 = uitofp i8 %self to double
ret double %0