Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm Avoid BITS_PER_LONG ...
details: https://anonhg.NetBSD.org/src/rev/39be40ee49de
branches: riastradh-drm2
changeset: 788001:39be40ee49de
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 00:50:03 2013 +0000
description:
Avoid BITS_PER_LONG in drm_bufs.c.
diffstat:
sys/external/bsd/drm2/dist/drm/drm_bufs.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diffs (19 lines):
diff -r 28ac18639e32 -r 39be40ee49de sys/external/bsd/drm2/dist/drm/drm_bufs.c
--- a/sys/external/bsd/drm2/dist/drm/drm_bufs.c Wed Jul 24 00:49:48 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_bufs.c Wed Jul 24 00:50:03 2013 +0000
@@ -83,14 +83,7 @@
int use_hashed_handle, shift;
unsigned long add;
-#if (BITS_PER_LONG == 64)
- use_hashed_handle = ((user_token & 0xFFFFFFFF00000000UL) || hashed_handle);
-#elif (BITS_PER_LONG == 32)
- use_hashed_handle = hashed_handle;
-#else
-#error Unsupported long size. Neither 64 nor 32 bits.
-#endif
-
+ use_hashed_handle = (user_token &~ 0xffffffffUL) || hashed_handle;
if (!use_hashed_handle) {
int ret;
hash->key = user_token >> PAGE_SHIFT;
Home |
Main Index |
Thread Index |
Old Index