Changeset 7f1c620 in mainline for generic/include/bitops.h
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/bitops.h
r991779c5 r7f1c620 43 43 * If number is zero, it returns 0 44 44 */ 45 static inline int fnzb32( __u32arg)45 static inline int fnzb32(uint32_t arg) 46 46 { 47 47 int n = 0; … … 55 55 } 56 56 57 static inline int fnzb64( __u64arg)57 static inline int fnzb64(uint64_t arg) 58 58 { 59 59 int n = 0; 60 60 61 61 if (arg >> 32) { arg >>= 32;n += 32;} 62 return n + fnzb32(( __u32) arg);62 return n + fnzb32((uint32_t) arg); 63 63 } 64 64
Note:
See TracChangeset
for help on using the changeset viewer.