diff options
author | 1998-05-30 02:29:56 +0000 | |
---|---|---|
committer | 1998-05-30 02:29:56 +0000 | |
commit | 0f6affb4588414183e5c83d74d539f4ac5f227d4 (patch) | |
tree | b53147afc3f58d7c9f0d850ecff9ce0472ddd545 /sys/lib/libsa | |
parent | define ISO_DEFAULT_BLOCK_SHIFT and redefine ISO_DEFAULT_BLOCK_SIZE through it (diff) | |
download | wireguard-openbsd-0f6affb4588414183e5c83d74d539f4ac5f227d4.tar.xz wireguard-openbsd-0f6affb4588414183e5c83d74d539f4ac5f227d4.zip |
use shift, save on long div (which is expensive on certain archs)
Diffstat (limited to 'sys/lib/libsa')
-rw-r--r-- | sys/lib/libsa/cd9660.c | 4 |
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; |