Discussion 解説
For example, the number -8 has three trailing zeros. 例えば、数-8は後に続くゼロを3つ持ちます。
let x = Int8(bitPattern: 0b1111_1000)
// x == -8
// x.trailingZeroBitCount == 3
Availability
Technology
var trailingZeroBitCount: Int
{ get }
For example, the number -8 has three trailing zeros. 例えば、数-8は後に続くゼロを3つ持ちます。
let x = Int8(bitPattern: 0b1111_1000)
// x == -8
// x.trailingZeroBitCount == 3
static var bitWidth : Int
var bitWidth : Int
var nonzeroBitCount : Int
var leadingZeroBitCount : Int
var words: Int.Words
struct Int.Words