struct Test { let computed: Int init(a: Int, b: Int, c: Int, d: Int, e: Int = 0, f: Int = 0, g: Int = 0, h: Int = 0) { var value: Int = (a << 56) value |= (b << 48) value |= (c << 40) value |= (d << 32) value |= (e << 24) value |= (f << 16) value |= (g << 8) value |= h computed = value } }