23 Commits

Author SHA1 Message Date
Jack Nagel
383929f336 Include more features in Hardware::CPU.features 2015-02-27 20:38:01 -05:00
Jack Nagel
1cca304f35 Make sysctl methods private rather than protected 2015-02-27 20:38:01 -05:00
Jack Nagel
889cfcc211 Drop unnecessary $?.success? check 2015-02-27 20:38:01 -05:00
Jack Nagel
1255f7b894 Move caching from sysctl_bool to sysctl_n 2015-02-27 20:38:01 -05:00
Jack Nagel
37c394f828 Add sysctl_n and sysctl_int methods to Mac hardware module 2015-02-27 20:38:01 -05:00
Jack Nagel
2d8a3ac35a Use popen wrapper
Closes Homebrew/homebrew#30678.
2014-07-05 15:41:22 -05:00
Misty De Meo
07660bb7b6 Hardware: add new .features method
This returns a list of symbols with the various CPU features supported
by the active hardware.
2014-06-21 21:59:51 -07:00
Adam Vandenberg
d4b0599a86 --config -> config 2014-04-30 19:09:29 -07:00
Jack Nagel
6f7dcb08e8 Add Hardware::CPU.aes? and Hardware::CPU.avx2? 2013-11-26 20:23:19 -06:00
Jack Nagel
cb18b9e77e Add Hardware::CPU.intel? and Hardware::CPU.ppc? 2013-11-26 20:23:19 -06:00
Jack Nagel
cb350fa9eb Simplify Hardware::CPU.is_64_bit? 2013-11-26 20:23:19 -06:00
Jack Nagel
f172413a26 Cache calls to sysctl_bool at the source 2013-11-26 20:23:19 -06:00
Misty De Meo
655c6f79b4 Hardware::CPU: add extmodel helper 2013-10-30 19:14:07 -07:00
Brian Stolz
0f612f8459 Add Hardware::CPU.ssse3? helper method.
Closes Homebrew/homebrew#23796.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-10-30 18:44:03 -07:00
Misty De Meo
b4f5be46d2 MacCPUs: distinguish between G5 32-bit and 64-bit 2013-10-03 20:05:32 -07:00
Misty De Meo
a892e52bfc Add Hardware::CPU.universal_archs 2013-08-15 22:46:56 -07:00
Misty De Meo
ef1f2b4a79 Add Hardware::CPU.arch_(32|64)_bit
This replaces hardcoding of i386/x86_64 all over the code.
2013-08-15 22:46:55 -07:00
Misty De Meo
22576e87a0 Hardware: Query sysctl for instructon sets
This may be more accurate than guessing.
2013-07-02 16:08:20 -05:00
Misty De Meo
5eeb0e79a3 Hardware::CPU (Mac): add Haswell
See Homebrew/homebrew#20935.
2013-07-01 00:44:54 -05:00
Jack Nagel
dc454aad92 Freeze optimization flags hash rather than duping it 2013-06-14 10:34:17 -05:00
Misty De Meo
3882603ba8 MacCPUs: add .avx? helper 2013-04-07 12:47:56 -05:00
Misty De Meo
2476801613 Hardware: separate out CPU values into CPU module
* CPU functions now exist in Hardware::CPU
* Added compatibility functions in compat/hardware_compat.rb
* Names are less specific to Mac hardware, e.g. CPU.family instead of
  Hardware.intel_family
* Hardware::CPU.family works for both Intel and PowerPC
* New helper methods on CPU, like .sse4? and .altivec?

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-03-23 13:40:18 -05:00
Shaun Jackman
258d70028f Portability fixes to run Homebrew on Linux systems
Closes Homebrew/homebrew#16344.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-11 18:26:25 +00:00