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