summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-05-30 02:29:57 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-05-30 02:29:57 +0000
commit3fd125f2e44a05e49caee06836333c4f06313d3c (patch)
tree6c6fcd833bfb90f44faa727722ad6cf2f84cf25d /sys
parent72b813e2cdb35ee7642df1c26ec253df7b027942 (diff)
use shift, save on long div (which is expensive on certain archs)
Diffstat (limited to 'sys')
-rw-r--r--sys/lib/libsa/cd9660.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/libsa/cd9660.c b/sys/lib/libsa/cd9660.c
index 9acd4156a3a..8ae85269424 100644
--- a/sys/lib/libsa/cd9660.c
+++ b/sys/lib/libsa/cd9660.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd9660.c,v 1.6 1997/11/09 19:37:20 millert Exp $ */
+/* $OpenBSD: cd9660.c,v 1.7 1998/05/30 02:29:56 mickey Exp $ */
/* $NetBSD: cd9660.c,v 1.1 1996/09/30 16:01:19 ws Exp $ */
/*
@@ -305,7 +305,7 @@ cd9660_read(f, start, size, resid)
while (size) {
if (fp->off < 0 || fp->off >= fp->size)
break;
- bno = fp->off / ISO_DEFAULT_BLOCK_SIZE + fp->bno;
+ bno = (fp->off >> ISO_DEFAULT_BLOCK_SHIFT) + fp->bno;
if (fp->off & (ISO_DEFAULT_BLOCK_SIZE - 1)
|| size < ISO_DEFAULT_BLOCK_SIZE)
dp = buf;