Lines Matching refs:addr
85 static void vcdkaupdate(Vcdcache_t* ka, ssize_t addr)
87 static void vcdkaupdate(ka, addr)
89 ssize_t addr;
94 { ka->c_near[ka->n] = addr;
99 ka->c_same[addr % (ka->s_same*256)] = addr;
105 ssize_t vcdkasetaddr(Vcdcache_t* ka, ssize_t addr, ssize_t here, ssize_t* mode)
107 ssize_t vcdkasetaddr(ka, addr, here, mode)
109 ssize_t addr; /* matching address to be encoded */
116 bestd = addr;
121 d = here-addr;
131 { if((d = addr - ka->c_near[i]) < 0)
140 if(ka->s_same > 0 && ka->c_same[d = addr%(ka->s_same*256)] == addr)
146 done: vcdkaupdate(ka, addr);
154 ssize_t vcdkagetaddr(Vcdcache_t* ka, Vcio_t* addr, ssize_t here, ssize_t mode)
156 ssize_t vcdkagetaddr(ka, addr, here, mode)
158 Vcio_t* addr;
166 a = vciogetu(addr);
168 a = here - vciogetu(addr);
171 a = ka->c_near[m] + vciogetu(addr);
173 a = ka->c_same[vciogetc(addr) + m*256];