MacCPUs: add .avx? helper

This commit is contained in:
Misty De Meo 2013-04-07 12:47:40 -05:00
parent 8bd619e03b
commit 3882603ba8

View File

@ -77,6 +77,11 @@ module MacCPUs
type == :ppc && family != :g3
end
def avx?
pre_sandy = [:core, :core2, :penryn, :nehalem, :arrandale].include? family
type == :intel && !pre_sandy
end
def sse3?
type == :intel
end