use a shift instead of a divide.
This commit is contained in:
parent
f4bd34ec5f
commit
6d1680019c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: microtime.s,v 1.19 2001/05/21 06:13:12 perry Exp $ */
|
||||
/* $NetBSD: microtime.s,v 1.20 2001/07/17 13:52:24 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993 The Regents of the University of California.
|
||||
|
@ -40,7 +40,7 @@
|
|||
/* LINTSTUB: include <sys/time.h> */
|
||||
|
||||
#define IRQ_BIT(irq_num) (1 << ((irq_num) % 8))
|
||||
#define IRQ_BYTE(irq_num) ((irq_num) / 8)
|
||||
#define IRQ_BYTE(irq_num) ((irq_num) >> 3)
|
||||
|
||||
/* LINTSTUB: Func: void microtime(struct timeval *tv) */
|
||||
ENTRY(microtime)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vector.s,v 1.46 2000/01/20 03:19:27 enami Exp $ */
|
||||
/* $NetBSD: vector.s,v 1.47 2001/07/17 13:52:25 mrg Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -55,7 +55,7 @@
|
|||
*/
|
||||
|
||||
#define IRQ_BIT(irq_num) (1 << ((irq_num) % 8))
|
||||
#define IRQ_BYTE(irq_num) ((irq_num) / 8)
|
||||
#define IRQ_BYTE(irq_num) ((irq_num) >> 3)
|
||||
|
||||
#ifdef ICU_SPECIAL_MASK_MODE
|
||||
|
||||
|
|
Loading…
Reference in New Issue