src/cpu/x86/vm/vm_version_x86.hpp

changeset 2269
ae065c367d93
parent 2144
a83b0246bb77
child 2314
f95d63e2154a
     1.1 --- a/src/cpu/x86/vm/vm_version_x86.hpp	Sat Oct 30 13:08:23 2010 -0700
     1.2 +++ b/src/cpu/x86/vm/vm_version_x86.hpp	Tue Nov 02 09:00:37 2010 -0700
     1.3 @@ -446,6 +446,10 @@
     1.4    static bool supports_lzcnt()    { return (_cpuFeatures & CPU_LZCNT) != 0; }
     1.5    static bool supports_sse4a()    { return (_cpuFeatures & CPU_SSE4A) != 0; }
     1.6  
     1.7 +  // Intel Core and newer cpus have fast IDIV instruction (excluding Atom).
     1.8 +  static bool has_fast_idiv()     { return is_intel() && cpu_family() == 6 &&
     1.9 +                                           supports_sse3() && _model != 0x1C; }
    1.10 +
    1.11    static bool supports_compare_and_exchange() { return true; }
    1.12  
    1.13    static const char* cpu_features()           { return _features_str; }

mercurial