summaryrefslogtreecommitdiff
path: root/gcc/objc/hash.c
diff options
context:
space:
mode:
authordennisg <dennisg@138bc75d-0d04-0410-961f-82ee72b054a4>1991-11-24 01:20:02 +0000
committerdennisg <dennisg@138bc75d-0d04-0410-961f-82ee72b054a4>1991-11-24 01:20:02 +0000
commit8ac4e72f79429a6792de6074f1f1e8a1d2b33810 (patch)
tree836d3acae69df5ea2bf944f57884da45262826f6 /gcc/objc/hash.c
parentd78a6512236ff6a4e2a72270a985ca9bdfbcd2fd (diff)
downloadgcc-8ac4e72f79429a6792de6074f1f1e8a1d2b33810.tar.gz
changed shorts back to ints.
the efficiency gained didn't out weight the grossness of the code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc/hash.c')
-rw-r--r--gcc/objc/hash.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/objc/hash.c b/gcc/objc/hash.c
index 3bef4f8535d..36b735c0046 100644
--- a/gcc/objc/hash.c
+++ b/gcc/objc/hash.c
@@ -16,10 +16,14 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- $Header: /usr/user/dennis_glatting/ObjC/c-runtime/lib/RCS/hash.c,v 0.6 1991/11/21 22:27:06 dennisg Exp dennisg $
+ $Header: /usr/user/dennis_glatting/ObjC/c-runtime/lib/RCS/hash.c,v 0.7 1991/11/23 22:18:29 dennisg Exp dennisg $
$Author: dennisg $
- $Date: 1991/11/21 22:27:06 $
+ $Date: 1991/11/23 22:18:29 $
$Log: hash.c,v $
+ * Revision 0.7 1991/11/23 22:18:29 dennisg
+ * deleted hashIndex() and moved it to hash-inline.h
+ * converted hash_value_for_key() to a inline and moved it to hash-inline.h.
+ *
* Revision 0.6 1991/11/21 22:27:06 dennisg
* changed hash value calculation.
* func name changed from hashValue() to hashIndex(). the
@@ -117,7 +121,7 @@ void hash_delete( Cache_t theCache ) {
void hash_add( Cache_t* theCache, void* aKey, void* aValue ) {
- u_short indx = hashIndex( *theCache, aKey );
+ u_int indx = hashIndex( *theCache, aKey );
CacheNode_t aCacheNode = calloc( 1, sizeof( CacheNode ));
@@ -189,7 +193,7 @@ void hash_add( Cache_t* theCache, void* aKey, void* aValue ) {
void hash_remove( Cache_t theCache, void* aKey ) {
- u_short indx = hashIndex( theCache, aKey );
+ u_int indx = hashIndex( theCache, aKey );
CacheNode_t aCacheNode = ( *theCache->theNodeTable )[ indx ];