Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sgimips/sgimips Change one more multiplication to a...



details:   https://anonhg.NetBSD.org/src/rev/62c013260f2a
branches:  trunk
changeset: 557574:62c013260f2a
user:      sekiya <sekiya%NetBSD.org@localhost>
date:      Mon Jan 12 11:30:24 2004 +0000

description:
Change one more multiplication to a bit shift.  Pointed out by pooka@.

diffstat:

 sys/arch/sgimips/sgimips/ip2x.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d019dbae4500 -r 62c013260f2a sys/arch/sgimips/sgimips/ip2x.c
--- a/sys/arch/sgimips/sgimips/ip2x.c   Mon Jan 12 10:25:06 2004 +0000
+++ b/sys/arch/sgimips/sgimips/ip2x.c   Mon Jan 12 11:30:24 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip2x.c,v 1.5 2004/01/12 03:26:08 sekiya Exp $  */
+/*     $NetBSD: ip2x.c,v 1.6 2004/01/12 11:30:24 sekiya Exp $  */
 
 /*
  * Copyright (c) 2001, 2002 Rafal K. Boni
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip2x.c,v 1.5 2004/01/12 03:26:08 sekiya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip2x.c,v 1.6 2004/01/12 11:30:24 sekiya Exp $");
 
 #include "opt_cputype.h"
 #include "opt_machtypes.h"
@@ -247,7 +247,7 @@
        mstat &= mmask;
 
        for (i = 0; i < 8; i++) {
-               intnum = i + 16 + (which * 8);
+               intnum = i + 16 + (which << 3);
                if (mstat & (1 << i)) {
                        if (intrtab[intnum].ih_fun != NULL)
                                ret |= (intrtab[intnum].ih_fun)



Home | Main Index | Thread Index | Old Index