comparison src/cpu/x86/vm/vm_version_x86.cpp @ 681:fbde8ec322d0

6761600: Use sse 4.2 in intrinsics Summary: Use SSE 4.2 in intrinsics for String.{compareTo/equals/indexOf} and Arrays.equals. Reviewed-by: kvn, never, jrose
author cfang
date Tue, 31 Mar 2009 14:07:08 -0700
parents c771b7f43bbf
children 93c14e5562c4
comparison
equal deleted inserted replaced
676:d3676b4cb78c 681:fbde8ec322d0
406 if( supports_sse4_2() && supports_ht() ) { // Newest Intel cpus 406 if( supports_sse4_2() && supports_ht() ) { // Newest Intel cpus
407 if( FLAG_IS_DEFAULT(UseUnalignedLoadStores) && UseXMMForArrayCopy ) { 407 if( FLAG_IS_DEFAULT(UseUnalignedLoadStores) && UseXMMForArrayCopy ) {
408 UseUnalignedLoadStores = true; // use movdqu on newest Intel cpus 408 UseUnalignedLoadStores = true; // use movdqu on newest Intel cpus
409 } 409 }
410 } 410 }
411 if( supports_sse4_2() && UseSSE >= 4 ) {
412 if( FLAG_IS_DEFAULT(UseSSE42Intrinsics)) {
413 UseSSE42Intrinsics = true;
414 }
415 }
411 } 416 }
412 } 417 }
413 418
414 // Use population count instruction if available. 419 // Use population count instruction if available.
415 if (supports_popcnt()) { 420 if (supports_popcnt()) {