Convert [UInt8] to Int

You could do the calculation better with:

let (q, r) = Self.bitwidth.quotientAndRemainder(dividingBy: 8)
return q + r.signum()