mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
7003125: precompiled.hpp is included when precompiled headers are not used
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
This commit is contained in:
parent
18a6408d84
commit
4a33afe6c4
22 changed files with 85 additions and 21 deletions
|
@ -249,13 +249,13 @@ int VectorSet::disjoint(const Set &set) const
|
|||
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<--------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue