OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a557c9a
)
(hash_ptr): Renamed from hash_int.
author
rms
<rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Oct 1992 08:16:20 +0000
(08:16 +0000)
committer
rms
<rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Oct 1992 08:16:20 +0000
(08:16 +0000)
(compare_ptrs): Renamed from compare_ints.
Do not cast args to int; just compare.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2611
138bc75d
-0d04-0410-961f-
82ee72b054a4
gcc/objc/hash.h
patch
|
blob
|
history
diff --git
a/gcc/objc/hash.h
b/gcc/objc/hash.h
index
e48c650
..
b7c53f2
100644
(file)
--- a/
gcc/objc/hash.h
+++ b/
gcc/objc/hash.h
@@
-154,7
+154,7
@@
void *hash_value_for_key (cache_ptr cache, const void *key);
except for those likely to be 0 due to alignment.) */
static inline unsigned int
-hash_
int
(cache_ptr cache, const void *key)
+hash_
ptr
(cache_ptr cache, const void *key)
{
return ((unsigned int)key / sizeof (void *)) & cache->mask;
}
@@
-178,11
+178,11
@@
hash_string (cache_ptr cache, const void *key)
}
-/* Compare two
integers
. */
+/* Compare two
pointers for equality
. */
static inline int
-compare_
int
s (const void *k1, const void *k2)
+compare_
ptr
s (const void *k1, const void *k2)
{
- return !(
(int)k1 - (int)
k2);
+ return !(
k1 -
k2);
}