Replaced add64, add64u and add64ul with operators.

Change-Id: Ia537f83e15cb686f1b81b34d73596f4298b0a924
This commit is contained in:
Gerard
2013-11-13 13:11:33 +00:00
committed by Ben Gras
parent 288e6864c8
commit f1b0deacf3
21 changed files with 33 additions and 53 deletions
+3 -3
View File
@@ -185,9 +185,9 @@ int fs_breadwrite(void)
if (rdwt_err < 0) break;
/* Update counters and pointers. */
nrbytes -= chunk; /* bytes yet to be read */
cum_io += chunk; /* bytes read so far */
position = add64ul(position, chunk); /* position within the file */
nrbytes -= chunk; /* bytes yet to be read */
cum_io += chunk; /* bytes read so far */
position += chunk; /* position within the file */
}
fs_m_out.RES_SEEK_POS_LO = ex64lo(position);
+3 -3
View File
@@ -119,9 +119,9 @@ int fs_bread(void)
if (rdwt_err < 0) break;
/* Update counters and pointers. */
nrbytes -= chunk; /* bytes yet to be read */
cum_io += chunk; /* bytes read so far */
position= add64ul(position, chunk); /* position within the file */
nrbytes -= chunk; /* bytes yet to be read */
cum_io += chunk; /* bytes read so far */
position += chunk; /* position within the file */
}
fs_m_out.RES_SEEK_POS_LO = ex64lo(position);
+1 -1
View File
@@ -108,7 +108,7 @@ int read_vds(
/* I dont need to save anything about it */
vol_ok = TRUE;
offset = add64u(offset,ISO9660_MIN_BLOCK_SIZE);
offset += ISO9660_MIN_BLOCK_SIZE;
}
if (vol_ok == FALSE)
+3 -3
View File
@@ -194,9 +194,9 @@ int fs_breadwrite(void)
if (lmfs_rdwt_err() < 0) break;
/* Update counters and pointers. */
nrbytes -= chunk; /* bytes yet to be read */
cum_io += chunk; /* bytes read so far */
position = add64ul(position, chunk); /* position within the file */
nrbytes -= chunk; /* bytes yet to be read */
cum_io += chunk; /* bytes read so far */
position += chunk; /* position within the file */
}
fs_m_out.RES_SEEK_POS_LO = ex64lo(position);
+1 -1
View File
@@ -615,7 +615,7 @@ int actual_lseek(message *m_out, int seekfd, int seekwhence, off_t offset)
}
if (offset >= 0)
newpos = add64ul(pos, offset);
newpos = pos + offset;
else
newpos = sub64ul(pos, -offset);
+1 -1
View File
@@ -181,7 +181,7 @@ int read_write(struct fproc *rfp, int rw_flag, struct filp *f,
suspend_reopen);
if (r >= 0) {
cum_io = r;
position = add64ul(position, r);
position += r;
r = OK;
}
} else if (S_ISBLK(vp->v_mode)) { /* Block special files. */