mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-12 05:13:50 +08:00
jvm.h (_Jv_HashCode): New hash code.
2000-08-15 Andrew Haley <aph@cygnus.com> * include/jvm.h (_Jv_HashCode): New hash code. From-SVN: r35744
This commit is contained in:
parent
43db0363f1
commit
3a593d5fb0
@ -1,3 +1,7 @@
|
||||
2000-08-15 Andrew Haley <aph@cygnus.com>
|
||||
|
||||
* include/jvm.h (_Jv_HashCode): New hash code.
|
||||
|
||||
2000-08-15 Tom Tromey <tromey@cygnus.com>
|
||||
|
||||
* java/io/ByteArrayOutputStream.java: Merged with Classpath.
|
||||
|
@ -163,7 +163,9 @@ void _Jv_RunMain (const char* name, int argc, const char **argv);
|
||||
inline jint
|
||||
_Jv_HashCode (jobject obj)
|
||||
{
|
||||
return (jint) obj;
|
||||
// This was chosen to yield relatively well distributed results on
|
||||
// both 32- and 64-bit architectures.
|
||||
return (jint) ((unsigned long long) obj % 0x7fffffff);
|
||||
}
|
||||
|
||||
// Return a raw pointer to the elements of an array given the array
|
||||
|
Loading…
Reference in New Issue
Block a user