Source-Changes-HG archive

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

[src/trunk]: src/sys/sys add a cast (for _LP64), and mark a variable unused.



details:   https://anonhg.NetBSD.org/src/rev/bbdf44961cd1
branches:  trunk
changeset: 767787:bbdf44961cd1
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jul 30 16:35:58 2011 +0000

description:
add a cast (for _LP64), and mark a variable unused.

diffstat:

 sys/sys/bitops.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3b9af59adf7d -r bbdf44961cd1 sys/sys/bitops.h
--- a/sys/sys/bitops.h  Sat Jul 30 15:28:58 2011 +0000
+++ b/sys/sys/bitops.h  Sat Jul 30 16:35:58 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bitops.h,v 1.8 2011/05/03 21:36:59 jym Exp $   */
+/*     $NetBSD: bitops.h,v 1.9 2011/07/30 16:35:58 christos Exp $      */
 
 /*-
  * Copyright (c) 2007, 2010 The NetBSD Foundation, Inc.
@@ -266,7 +266,7 @@
        int _l;
 
        _l = fls32(_div - 1);
-       _mt = 0x100000000ULL * ((1ULL << _l) - _div);
+       _mt = (uint64_t)(0x100000000ULL * ((1ULL << _l) - _div));
        *_m = (uint32_t)(_mt / _div + 1);
        *_s1 = (_l > 1) ? 1 : _l;
        *_s2 = (_l == 0) ? 0 : _l - 1;
@@ -274,7 +274,7 @@
 
 /* ARGSUSED */
 static __inline uint32_t
-fast_divide32(uint32_t _v, uint32_t _div, uint32_t _m, uint8_t _s1,
+fast_divide32(uint32_t _v, uint32_t _div __unused, uint32_t _m, uint8_t _s1,
     uint8_t _s2)
 {
        uint32_t _t;



Home | Main Index | Thread Index | Old Index