get rid of old fashioned registers
This commit is contained in:
parent
810a7faf4e
commit
2badc98c75
@ -157,14 +157,15 @@ SearchWideAtom(wchar_t *p, Atom a) {
|
|||||||
static Atom
|
static Atom
|
||||||
LookupAtom(char *atom)
|
LookupAtom(char *atom)
|
||||||
{ /* lookup atom in atom table */
|
{ /* lookup atom in atom table */
|
||||||
register CELL hash;
|
UInt hash;
|
||||||
register unsigned char *p;
|
unsigned char *p;
|
||||||
Atom a, na;
|
Atom a, na;
|
||||||
AtomEntry *ae;
|
AtomEntry *ae;
|
||||||
|
|
||||||
/* compute hash */
|
/* compute hash */
|
||||||
p = (unsigned char *)atom;
|
p = (unsigned char *)atom;
|
||||||
hash = HashFunction(p) % AtomHashTableSize;
|
hash = HashFunction(p) % AtomHashTableSize;
|
||||||
|
|
||||||
/* we'll start by holding a read lock in order to avoid contention */
|
/* we'll start by holding a read lock in order to avoid contention */
|
||||||
READ_LOCK(HashChain[hash].AERWLock);
|
READ_LOCK(HashChain[hash].AERWLock);
|
||||||
a = HashChain[hash].Entry;
|
a = HashChain[hash].Entry;
|
||||||
|
Reference in New Issue
Block a user