version 1.12, 2002/06/01 00:56:33
|
version 1.16, 2005/05/13 12:17:32
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2005//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// The Open Group, Tivoli Systems |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
Uint32 hashCode, | Uint32 hashCode, |
const void* key) const | const void* key) const |
{ | { |
|
#ifdef PEGASUS_OS_VMS |
|
// |
|
// This is to prevent a crash when the hash |
|
// code hasn't been initialized! |
|
// |
|
if (_numChains == 0) |
|
{ |
|
return 0; |
|
} |
|
#endif |
Uint32 i = hashCode % _numChains; | Uint32 i = hashCode % _numChains; |
| |
for (_BucketBase* bucket = _chains[i]; bucket; bucket = bucket->next) | for (_BucketBase* bucket = _chains[i]; bucket; bucket = bucket->next) |