处理算术溢出UInt32(CUnsignedInt)
答
你可以在这里使用这些方法,我相信这也是不同规模
UInt32.addWithOverflow(x,y) UInt32.multiplyWithOverflow(x, y) UInt32.divideWithOverflow(x, y) UInt32.subtractWithOverflow(x, y)
他们每个人的返回大小为2元组,结果,以及是否溢出或全部Int
同样的方法不。