Mercurial > hg > graal-jvmci-8
diff src/share/vm/libadt/vectset.cpp @ 1983:c760f78e0a53
7003125: precompiled.hpp is included when precompiled headers are not used
Summary: Added an ifndef DONT_USE_PRECOMPILED_HEADER to precompiled.hpp. Set up DONT_USE_PRECOMPILED_HEADER when compiling with Sun Studio or when the user specifies USE_PRECOMPILED_HEADER=0. Fixed broken include dependencies.
Reviewed-by: coleenp, kvn
author | stefank |
---|---|
date | Wed, 01 Dec 2010 15:04:06 +0100 |
parents | f95d63e2154a |
children | 3763ca6579b7 |
line wrap: on
line diff
--- a/src/share/vm/libadt/vectset.cpp Thu Dec 02 14:00:03 2010 -0500 +++ b/src/share/vm/libadt/vectset.cpp Wed Dec 01 15:04:06 2010 +0100 @@ -249,13 +249,13 @@ const VectorSet &s = *(set.asVectorSet()); // NOTE: The intersection is never any larger than the smallest set. - register uint small = ((size<s.size)?size:s.size); - register uint32 *u1 = data; // Pointer to the destination data - register uint32 *u2 = s.data; // Pointer to the source data - for( uint i=0; i<small; i++) // For data in set - if( *u1++ & *u2++ ) // If any elements in common - return 0; // Then not disjoint - return 1; // Else disjoint + register uint small_size = ((size<s.size)?size:s.size); + register uint32 *u1 = data; // Pointer to the destination data + register uint32 *u2 = s.data; // Pointer to the source data + for( uint i=0; i<small_size; i++) // For data in set + if( *u1++ & *u2++ ) // If any elements in common + return 0; // Then not disjoint + return 1; // Else disjoint } //------------------------------operator<--------------------------------------