Instance Propertyswift 6.0.3Swift
nonzeroBitCount
- iOS
- 18.0+
- macOS
- 15.0+
- tvOS
- 18.0+
- visionOS
- 2.0+
- watchOS
- 11.0+
var nonzeroBitCount: Int { get }
var nonzeroBitCount: Int { get }
import Swift
@frozen struct Int128
A 128-bit signed integer type.
@frozen struct Int
A signed integer value type.
init<T>(_ source: T) where T : BinaryFloatingPoint
init<T>(_ source: T) where T : BinaryInteger
init(bitPattern: UInt128)
init<T>(clamping source: T) where T : BinaryInteger
init?<T>(exactly source: T) where T : BinaryFloatingPoint
init?<T>(exactly source: T) where T : BinaryInteger
init(from decoder: any Decoder) throws
init<T>(truncatingIfNeeded source: T) where T : BinaryInteger
static var bitWidth: Int { get }
static var max: Int128 { get }
static var min: Int128 { get }
static var zero: Int128 { get }
var byteSwapped: Int128 { get }
var customMirror: Mirror { get }
A mirror that reflects the Int128
instance.
var leadingZeroBitCount: Int { get }
var magnitude: Int128.Magnitude { get }
var trailingZeroBitCount: Int { get }
var words: UInt128.Words { get }
static func % (a: Int128, b: Int128) -> Int128
static func %= (a: inout Int128, b: Int128)
static func &* (lhs: Int128, rhs: Int128) -> Int128
static func &<<= (a: inout Int128, b: Int128)
static func &= (a: inout Int128, b: Int128)
static func &>>= (a: inout Int128, b: Int128)
static func * (a: Int128, b: Int128) -> Int128
static func *= (a: inout Int128, b: Int128)
static func + (a: Int128, b: Int128) -> Int128
static func - (a: Int128, b: Int128) -> Int128
static func / (a: Int128, b: Int128) -> Int128
static func /= (a: inout Int128, b: Int128)
static func < (a: Int128, b: Int128) -> Bool
static func == (a: Int128, b: Int128) -> Bool
static func ^= (a: inout Int128, b: Int128)
static func |= (a: inout Int128, b: Int128)
func addingReportingOverflow(_ other: Int128) -> (partialValue: Int128, overflow: Bool)
func dividedReportingOverflow(by other: Int128) -> (partialValue: Int128, overflow: Bool)
func encode(to encoder: any Encoder) throws
Encodes this value into the given encoder.
func hash(into hasher: inout Hasher)
func multipliedReportingOverflow(by other: Int128) -> (partialValue: Int128, overflow: Bool)
func remainderReportingOverflow(dividingBy other: Int128) -> (partialValue: Int128, overflow: Bool)
func subtractingReportingOverflow(_ other: Int128) -> (partialValue: Int128, overflow: Bool)
typealias IntegerLiteralType = Int128
typealias Magnitude = UInt128