Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pad Express BYTESTOSLEEP as an 64 bit integer.
details: https://anonhg.NetBSD.org/src/rev/7f9768cdb703
branches: trunk
changeset: 354172:7f9768cdb703
user: nat <nat%NetBSD.org@localhost>
date: Tue Jun 06 07:18:38 2017 +0000
description:
Express BYTESTOSLEEP as an 64 bit integer.
Use BYTESTOSLEEP in expresson of BYTES_PER_SEC.
diffstat:
sys/dev/pad/pad.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r d34a287f5e35 -r 7f9768cdb703 sys/dev/pad/pad.c
--- a/sys/dev/pad/pad.c Tue Jun 06 07:13:06 2017 +0000
+++ b/sys/dev/pad/pad.c Tue Jun 06 07:18:38 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pad.c,v 1.32 2017/06/01 09:44:30 pgoyette Exp $ */
+/* $NetBSD: pad.c,v 1.33 2017/06/06 07:18:38 nat Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.32 2017/06/01 09:44:30 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.33 2017/06/06 07:18:38 nat Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -345,8 +345,8 @@
}
#define PAD_BYTES_PER_SEC (44100 * sizeof(int16_t) * 2)
-#define TIMENEXTREAD (PAD_BLKSIZE * 1000000 / PAD_BYTES_PER_SEC)
-#define BYTESTOSLEEP (PAD_BLKSIZE)
+#define BYTESTOSLEEP (int64_t)(PAD_BLKSIZE)
+#define TIMENEXTREAD (int64_t)(BYTESTOSLEEP * 1000000 / PAD_BYTES_PER_SEC)
int
pad_read(dev_t dev, struct uio *uio, int flags)
Home |
Main Index |
Thread Index |
Old Index