-/* $OpenBSD: machdep.c,v 1.32 2000/03/23 09:59:52 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.33 2000/04/11 02:44:12 pjanzen Exp $ */
/* $NetBSD: machdep.c,v 1.61 1996/12/07 01:54:49 cgd Exp $ */
/*
*tvp = time;
#ifdef notdef
tvp->tv_usec += clkread();
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
#endif
if (tvp->tv_sec == lasttime.tv_sec &&
tvp->tv_usec <= lasttime.tv_usec &&
- (tvp->tv_usec = lasttime.tv_usec + 1) > 1000000) {
+ (tvp->tv_usec = lasttime.tv_usec + 1) >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
-/* $OpenBSD: machdep.c,v 1.37 2000/03/23 09:59:53 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.38 2000/04/11 02:44:23 pjanzen Exp $ */
/* $NetBSD: machdep.c,v 1.95 1997/08/27 18:31:17 is Exp $ */
/*
*tvp = time;
tvp->tv_usec += clkread();
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
if (tvp->tv_sec == lasttime.tv_sec &&
tvp->tv_usec <= lasttime.tv_usec &&
- (tvp->tv_usec = lasttime.tv_usec + 1) > 1000000) {
+ (tvp->tv_usec = lasttime.tv_usec + 1) >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
-/* $OpenBSD: machdep.c,v 1.37 2000/03/23 09:59:53 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.38 2000/04/11 02:44:25 pjanzen Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1992, 1993
* SUCH DAMAGE.
*
* from: @(#)machdep.c 8.3 (Berkeley) 1/12/94
- * $Id: machdep.c,v 1.37 2000/03/23 09:59:53 art Exp $
+ * $Id: machdep.c,v 1.38 2000/04/11 02:44:25 pjanzen Exp $
*/
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
*tvp = time;
#ifdef notdef
tvp->tv_usec += clkread();
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
#endif
if (tvp->tv_sec == lasttime.tv_sec &&
tvp->tv_usec <= lasttime.tv_usec &&
- (tvp->tv_usec = lasttime.tv_usec + 1) > 1000000) {
+ (tvp->tv_usec = lasttime.tv_usec + 1) >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
/* Make sure the micro seconds don't overflow. */
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_usec -= 1000000;
++tvp->tv_sec;
}
if (tvp->tv_sec == oldtv.tv_sec &&
tvp->tv_usec <= oldtv.tv_usec) {
tvp->tv_usec = oldtv.tv_usec + 1;
- if (tvp->tv_usec > 1000000) {
+ if (tvp->tv_usec >= 1000000) {
tvp->tv_usec -= 1000000;
++tvp->tv_sec;
}
*tvp = time;
tvp->tv_usec += clkread();
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
if (tvp->tv_sec == lasttime.tv_sec &&
tvp->tv_usec <= lasttime.tv_usec &&
- (tvp->tv_usec = lasttime.tv_usec + 1) > 1000000) {
+ (tvp->tv_usec = lasttime.tv_usec + 1) >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
-/* $OpenBSD: machdep.c,v 1.129 2000/04/08 05:50:50 aaron Exp $ */
+/* $OpenBSD: machdep.c,v 1.130 2000/04/11 02:44:27 pjanzen Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
*tvp = time;
tvp->tv_usec += tick;
splx(s);
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
*tvp = time;
tvp->tv_usec += tick;
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
-/* $OpenBSD: machdep.c,v 1.66 2000/03/23 09:59:54 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.67 2000/04/11 02:44:28 pjanzen Exp $ */
/* $NetBSD: machdep.c,v 1.134 1997/02/14 06:15:30 scottr Exp $ */
/*
*tvp = time;
tvp->tv_usec += clkread();
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
if (tvp->tv_sec == lasttime.tv_sec &&
tvp->tv_usec <= lasttime.tv_usec &&
- (tvp->tv_usec = lasttime.tv_usec + 1) > 1000000) {
+ (tvp->tv_usec = lasttime.tv_usec + 1) >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
-/* $OpenBSD: nvram.c,v 1.5 1999/01/11 05:11:38 millert Exp $ */
+/* $OpenBSD: nvram.c,v 1.6 2000/04/11 02:44:29 pjanzen Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
*tvp = time;
tvp->tv_usec;
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
if (tvp->tv_sec == lasttime.tv_sec &&
tvp->tv_usec <= lasttime.tv_usec &&
- (tvp->tv_usec = lasttime.tv_usec + 1) > 1000000) {
+ (tvp->tv_usec = lasttime.tv_usec + 1) >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
-/* $OpenBSD: nvram.c,v 1.5 1999/09/27 18:43:24 smurph Exp $ */
+/* $OpenBSD: nvram.c,v 1.6 2000/04/11 02:44:29 pjanzen Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
*tvp = time;
tvp->tv_usec;
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
if (tvp->tv_sec == lasttime.tv_sec &&
tvp->tv_usec <= lasttime.tv_usec &&
- (tvp->tv_usec = lasttime.tv_usec + 1) > 1000000) {
+ (tvp->tv_usec = lasttime.tv_usec + 1) >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
*tvp = time;
tvp->tv_usec += tick;
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
-/* $OpenBSD: clock.c,v 1.7 2000/03/31 04:14:18 rahnds Exp $ */
+/* $OpenBSD: clock.c,v 1.8 2000/04/11 02:44:30 pjanzen Exp $ */
/* $NetBSD: clock.c,v 1.1 1996/09/30 16:34:40 ws Exp $ */
/*
asm volatile ("mtmsr %0" :: "r"(msr));
ticks /= 1000;
tvp->tv_usec += ticks;
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_usec -= 1000000;
tvp->tv_sec++;
}
-/* $OpenBSD: clock.c,v 1.7 1997/01/16 04:04:14 kstailey Exp $ */
+/* $OpenBSD: clock.c,v 1.8 2000/04/11 02:44:31 pjanzen Exp $ */
/* $NetBSD: clock.c,v 1.31 1996/10/30 00:24:42 gwr Exp $ */
/*
*tvp = time;
tvp->tv_usec++; /* XXX */
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
if (tvp->tv_sec == lasttime.tv_sec &&
tvp->tv_usec <= lasttime.tv_usec &&
- (tvp->tv_usec = lasttime.tv_usec + 1) > 1000000)
+ (tvp->tv_usec = lasttime.tv_usec + 1) >= 1000000)
{
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
-/* $OpenBSD: clock.c,v 1.8 1997/09/10 12:04:42 maja Exp $ */
+/* $OpenBSD: clock.c,v 1.9 2000/04/11 02:44:32 pjanzen Exp $ */
/* $NetBSD: clock.c,v 1.20 1997/04/18 18:49:37 ragge Exp $ */
/*
* Copyright (c) 1995 Ludd, University of Lule}, Sweden.
i = mfpr(PR_ICR) + tick; /* Get current interval count */
tvp->tv_usec += i;
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
if (tvp->tv_sec == lasttime.tv_sec &&
tvp->tv_usec <= lasttime.tv_usec &&
- (tvp->tv_usec = lasttime.tv_usec + 1) > 1000000) {
+ (tvp->tv_usec = lasttime.tv_usec + 1) >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
-/* $OpenBSD: machdep.c,v 1.6 2000/03/23 09:59:56 art Exp $ */
+/* $OpenBSD: machdep.c,v 1.7 2000/04/11 02:44:32 pjanzen Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1992, 1993
* SUCH DAMAGE.
*
* from: @(#)machdep.c 8.3 (Berkeley) 1/12/94
- * $Id: machdep.c,v 1.6 2000/03/23 09:59:56 art Exp $
+ * $Id: machdep.c,v 1.7 2000/04/11 02:44:32 pjanzen Exp $
*/
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
*tvp = time;
#ifdef notdef
tvp->tv_usec += clkread();
- while (tvp->tv_usec > 1000000) {
+ while (tvp->tv_usec >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
#endif
if (tvp->tv_sec == lasttime.tv_sec &&
tvp->tv_usec <= lasttime.tv_usec &&
- (tvp->tv_usec = lasttime.tv_usec + 1) > 1000000) {
+ (tvp->tv_usec = lasttime.tv_usec + 1) >= 1000000) {
tvp->tv_sec++;
tvp->tv_usec -= 1000000;
}
-/* $OpenBSD: sequencer.c,v 1.2 1999/07/23 13:18:04 niklas Exp $ */
+/* $OpenBSD: sequencer.c,v 1.3 2000/04/11 02:44:33 pjanzen Exp $ */
/* $NetBSD: sequencer.c,v 1.13 1998/11/25 22:17:07 augustss Exp $ */
/*
#define ADDTIMEVAL(a, b) ( \
(a)->tv_sec += (b)->tv_sec, \
(a)->tv_usec += (b)->tv_usec, \
- (a)->tv_usec > 1000000 ? ((a)->tv_sec++, (a)->tv_usec -= 1000000) : 0\
+ (a)->tv_usec >= 1000000 ? ((a)->tv_sec++, (a)->tv_usec -= 1000000) : 0\
)
#define SUBTIMEVAL(a, b) ( \