Simplify Hardware::CPU.is_64_bit?
This commit is contained in:
parent
f172413a26
commit
cb350fa9eb
@ -77,10 +77,7 @@ module MacCPUs
|
|||||||
end
|
end
|
||||||
|
|
||||||
def bits
|
def bits
|
||||||
return @bits if defined? @bits
|
@bits ||= sysctl_bool("hw.cpu64bit_capable") ? 64 : 32
|
||||||
|
|
||||||
is_64_bit = sysctl_bool("hw.cpu64bit_capable")
|
|
||||||
@bits ||= is_64_bit ? 64 : 32
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def arch_32_bit
|
def arch_32_bit
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user