In a 64-bit environment, a CGFloat
is the same size as Double
. In a 32-bit environment, it is the same size as Float
. There is a constant CGFLOAT_IS_DOUBLE
, which is therefore 1
on a 64-bit system.
let bit = 32 + (32 * CGFLOAT_IS_DOUBLE)
source
to share