aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac/hardware.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/os/mac/hardware.rb b/Library/Homebrew/os/mac/hardware.rb
index e70ce7b8a..c5e803261 100644
--- a/Library/Homebrew/os/mac/hardware.rb
+++ b/Library/Homebrew/os/mac/hardware.rb
@@ -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