hotspot/src/cpu/x86/vm/vm_version_x86.hpp
changeset 7115 32300e243300
parent 6459 3d75ed40a975
child 7397 5b173b4ca846
--- a/hotspot/src/cpu/x86/vm/vm_version_x86.hpp	Sat Oct 30 13:08:23 2010 -0700
+++ b/hotspot/src/cpu/x86/vm/vm_version_x86.hpp	Tue Nov 02 09:00:37 2010 -0700
@@ -446,6 +446,10 @@
   static bool supports_lzcnt()    { return (_cpuFeatures & CPU_LZCNT) != 0; }
   static bool supports_sse4a()    { return (_cpuFeatures & CPU_SSE4A) != 0; }
 
+  // Intel Core and newer cpus have fast IDIV instruction (excluding Atom).
+  static bool has_fast_idiv()     { return is_intel() && cpu_family() == 6 &&
+                                           supports_sse3() && _model != 0x1C; }
+
   static bool supports_compare_and_exchange() { return true; }
 
   static const char* cpu_features()           { return _features_str; }