mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
820 B

--- nasm-0.98.36/nasmlib.c~ Thu Feb 6 02:44:09 2003
+++ nasm-0.98.36/nasmlib.c Sun Sep 7 23:23:29 2003
@@ -372,10 +372,8 @@
if (posn >= r->stepsize * LAYERSIZ(r))
return 0; /* Return 0 for undefined entries */
while (r->layers > 0) {
- ldiv_t l;
- l = ldiv (posn, r->stepsize);
- r = r->u.b.data[l.quot];
- posn = l.rem;
+ r = r->u.b.data[posn/r->stepsize];
+ posn = posn%r->stepsize;
if (!r)
return 0; /* Return 0 for undefined entries */
}
@@ -408,14 +406,12 @@
result = r;
while (r->layers > 0) {
- ldiv_t l;
struct RAA **s;
- l = ldiv (posn, r->stepsize);
- s = &r->u.b.data[l.quot];
+ s = &r->u.b.data[posn / r->stepsize];
if (!*s)
*s = real_raa_init (r->layers - 1);
r = *s;
- posn = l.rem;
+ posn = posn % r->stepsize;
}
r->u.l.data[posn] = value;